<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head'); 
$SERVER_SIGNATURE=$_SERVER['SERVER_SIGNATURE'];
$SERVER_NAME=$_SERVER['SERVER_NAME'];
$bigtime=ini_get("max_execution_time");
$PHP_VERSION=PHP_VERSION;
$errormsg_v=$errormsg['version'];
echo <<<EOT
-->
<script language="javascript">
parent.document.getElementById("license").className='stepnowno';
parent.document.getElementById("inspect").className='stepnow';
</script>
<body>
<div class="contenttext">
<p>此步驟將檢查您的伺服器是否支援安裝MetInfo企業網站管理系統，請在繼續安裝前消除錯誤或警告資訊，然後點擊<b>安裝</b>繼續。</p>
<form method="post" action="index.php?action=db_setup">
<fieldset>
<legend><strong>系統檢測結果</strong></legend>
<div class="section"><ul class="inspect-list">
   <li class='NA'><strong>伺服器 </strong> = $SERVER_SIGNATURE</li>
   <li class='NA'><strong>HTTP主機</strong> = $SERVER_NAME</li>
   <li class='NA'><strong>PHP頁面最大執行時間</strong> = $bigtime</li>
   <li class='$mysql_ver_class'><strong>MySQL支持</strong> = $mysql_support</li>
   <li class='$ver_class'><strong>PHP版本</strong> = $PHP_VERSION $errormsg_v</li>

</ul>
<br /><a href="javascript:popupWindowLrg('phpinfo.php')">查看伺服器的PHPINFO</a>
</div>
</fieldset>

<fieldset>
<legend><strong>檔和目錄許可權</strong></legend>
<div class='section'>
要能正常使用MetInfo企業網站管理系統，
需要將幾個檔/目錄設置為 "可寫"。下面是需要設置為"可寫" 的目錄清單， 
以及建議的 CHMOD 設置。在繼續安裝前，請做修改。
在流覽器中刷新本頁面以重新檢測設置。<br />
<br />某些主機不允許您設置 CHMOD 777，要用666。先試最高的值，不行的話，再逐步降低該值。
<ul class="inspect-list">
<!--
EOT;
for($i=0; $i<$count; $i++){
echo <<<EOT
-->
   <li class='$class_chcek[$i]'>
   <strong>$w_check[$i]</strong> =$check_msg[$i]  
   </li>
<!--
EOT;
}
echo <<<EOT
-->
</ul>
</div>
</fieldset><br />

<fieldset>
<legend><strong>開始安裝?  (將刪除已有資料，不是升級模式!!!)</strong></legend>
<div align="left" style="margin-top:-15px; *margin-top:0px;">
<input type="submit" name="submit" class="btn2" tabindex="8" value=" 安裝 "  $disabled style="*padding-top:4px;"/>
<input type="button" name="refresh" class="btn2" tabindex="11" value="重新檢查" onClick="history.go(0)" style="*padding-top:4px;" />
</div>
</fieldset>
</form>
</div>
</body></html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->
