<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--<?php
print <<<EOT
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>126cms 安装向导</title>
<link rel="stylesheet" href="images/style.css" type="text/css" media="all" />
<script type="text/javascript">
	function $(id) {
		return document.getElementById(id);
	}

	function showmessage(message) {
		document.getElementById('notice').innerHTML += message + '<br />';
	}
</script>
<meta content="126CMS" name="Copyright" />
</head>
<div class="container">
	<div class="header">
		<h1>126CMS 安装向导</h1>
		<span>126CMS 简体中文版 20111010</span>	<div class="setup step1">
		<h2>开始安装</h2>
		<p>环境以及文件目录权限检查</p>
	</div>
	<div class="stepstat">
		<ul>
			<li class="current">检查安装环境</li>
			<li class="unactivated">创建数据库</li>
			<li class="unactivated last">安装</li>
		</ul>
		<div class="stepstatbg stepstat1"></div>
	</div>
</div>
<div class="main"><h2 class="title">环境检查</h2>
<table class="tb" style="margin:20px 0 20px 55px;">
<tr>
	<th>项目</th>
	<th class="padleft">126CMS 所需配置</th>
	<th class="padleft">126CMS 最佳</th>
	<th class="padleft">当前服务器</th>
</tr>
<tr>
<td>操作系统</td>
<td class="padleft">不限制</td>
<td class="padleft">类Unix</td>
<td class="w pdleft1">$sp_os</td>
</tr>
<tr>
<td>PHP 版本</td>
<td class="padleft">4.3</td>
<td class="padleft">5.0</td>
<td class="w pdleft1">$phpv</td>
</tr>
<tr>
<td>附件上传</td>
<td class="padleft">不限制</td>
<td class="padleft">2M</td>
<td class="w pdleft1">$max</td>
</tr>
<tr>
<td>GD 库</td>
<td class="padleft">1.0</td>
<td class="padleft">2.0</td>
<td class="w pdleft1">$sp_gd</td>
</tr>
<tr>
<td>磁盘空间</td>
<td class="padleft">10M</td>
<td class="padleft">不限制</td>
<td class="w pdleft1">$current</td>
</tr>
</table>
<h2 class="title">目录、文件权限检查</h2>
<table class="tb" style="margin:20px 0 20px 55px;width:90%;">
	<tr>
	<th>目录文件</th>
	<th class="padleft">所需状态</th>
	<th class="padleft">当前状态</th>
</tr>

<!--
EOT;
$i = 0;
foreach($sp_testdirs AS $f){
$fulld = ROOT126CMS.str_replace('/*','',$d);
$wsta = (TestWrite($fulld) ? '<font color=green>[√]写</font>' : '<font color=red>[×]写</font>');
if(TestWrite($fulld)){
$rsta = '可写';
$rsta_style = 'w';
}else{
$rsta = '不可写';
$rsta_style = 'nw';
}
print <<<EOT
-->
		<A href="$rs[linkurl]"><span class="{$menu_style}">$rs[name]</span></A>
<tr>
<td>$f</td><td class="w pdleft1">可写</td>

<td class="$rsta_style pdleft1">$rsta</td>
</tr>
<!--
EOT;
$i++;
}print <<<EOT
-->

</table>
<h2 class="title">函数依赖性检查</h2>
<table class="tb" style="margin:20px 0 20px 55px;width:90%;">
<tr>
	<th>函数名称</th>
	<th class="padleft">检查结果</th>
	<th class="padleft">建议</th>
</tr>
<tr>
<td>mysql_connect()</td>
<td class="$sp_mysql_style pdleft1">$sp_mysql</td>
<td class="padleft">无</td>
<tr>
<td>fsockopen()</td>
<td class="$sp_fsockopen_style pdleft1">$sp_fsockopen</td>
<td class="padleft">无</td>
<tr>
<td>gethostbyname()</td>
<td class="$sp_gethostbyname_style pdleft1">$sp_gethostbyname</td>
<td class="padleft">无</td>
<tr>
<td>file_get_contents()</td>
<td class="$sp_fgc_style pdleft1">$sp_fgc</td>
<td class="padleft">无</td>
<tr>
<td>xml_parser_create()</td>
<td class="$sp_xpc_style pdleft1">$sp_xpc</td>
<td class="padleft">无</td>
</table>
<form action="index.php" method="post">
<input type="hidden" name="step" value="3" /><div class="btnbox marginbot"><input type="button" onclick="history.back();" value="上一步">
  <input type="submit" value="下一步" />
</div>
</form>
	<div class="footer">&copy;2011 <a href="http://www.126CMS.com/">126CMS</a></div>
	</div>
</div>
</body>
</html>
<!--
EOT;
?>
-->