<?php include('header.html');?>

<div class="main">
	<div class="pleft">
		<dl class="setpbox t1">
			<dt></dt>
			<dd>
				<ul>
					<li class="succeed">许可协议</li>
					<li class="now">环境检测</li>
					<li>参数配置</li>
					<li>正在安装</li>
					<li>安装完成</li>
				</ul>
			</dd>
		</dl>
	</div>
	<div class="pright">
		<div class="pr-title"><h3>服务器信息</h3></div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<th width="300" align="center"><strong>参数</strong></th>
				<th width="424"><strong>值</strong></th>
			</tr>
			<tr>
					<td><strong>服务器域名</strong></td>
					<td><?php echo $sp_name; ?></td>
			</tr>
			<tr>
					<td><strong>服务器操作系统</strong></td>
					<td><?php echo $sp_os; ?></td>
			</tr>
			<tr>
					<td><strong>服务器解译引擎</strong></td>
					<td><?php echo $sp_server; ?></td>
			</tr>
			<tr>
					<td><strong>PHP版本</strong></td>
					<td><?php echo $phpv; ?></td>
			</tr>
			<tr>
					<td><strong>系统安装目录</strong></td>
					<td><?php echo VIVI_ROOT; ?></td>
			</tr>
		</table>
		<div class="pr-title"><h3>系统环境检测</h3></div>
		<div style="padding:2px 8px 0px; line-height:33px; height:23px; overflow:hidden; color:red;">
			系统环境要求必须满足下列所有条件，否则系统或系统部份功能将无法使用。
		</div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<th width="200" align="center"><strong>变量或函数</strong></th>
				<th width="80"><strong>结果</strong></th>
				<th width="400"><strong>说明</strong></th>
			</tr>
			<tr>
					<td>Zend Optimizer</td>
					<td align="center"><?php echo $sp_zendoptimizer; ?></td>
					<td><small>(要求版本 3.3.x)</small></td>
			</tr>
			<tr>
					<td>allow_url_fopen</td>
					<td align="center"><?php echo $sp_allow_url_fopen; ?></td>
					<td> <small>(不符合要求将导致采集、远程资料本地化等功能无法使用)</small></td>
			</tr>
			<tr>
					<td>safe_mode</td>
					<td align="center"><?php echo $sp_safe_mode; ?></td>
					<td><small>(本系统不支持在<span class="STYLE2">非win主机的安全模式</span>下运行)</small></td>
			</tr>
			<tr>
					<td>mbstring</td>
					<td align="center"><?php echo $sp_mbstring; ?></td>
					<td> <small>(不符合要求将无法使用字符串截取功能)</small></td>
			</tr>
			<tr>
					<td>iconv</td>
					<td align="center"><?php echo $sp_iconv; ?></td>
					<td> <small>(不支持将导致系统中文出现乱码)</small></td>
			</tr>
		</table>
		
		
		<div class="pr-title"><h3>目录权限检测</h3></div>
		<div style="padding:2px 8px 0px; line-height:33px; height:23px; overflow:hidden; color:red;">
			系统要求必须满足下列所有的目录权限全部可读写的需求才能使用。
		</div>
		<table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
			<tr>
				<th width="300" align="center"><strong>目录名</strong></th>
				<th width="212"><strong>读取权限</strong></th>
				<th width="212"><strong>写入权限</strong></th>
			</tr>
			<?php
			foreach($sp_testdirs as $d)
			{
			?>
			<tr>
					<td><?php echo $d; ?></td>
					<?php
      		$fulld = VIVI_ROOT.'/'.str_replace('/*','',$d);
      		$rsta = (is_readable($fulld) ? '<font color=green>[√]读</font>' : '<font color=red>[×]读</font>');
	    		$wsta = (test_write($fulld) ? '<font color=green>[√]写</font>' : '<font color=red>[×]写</font>');
	    		echo "<td>$rsta</td><td>$wsta</td>\r\n";
      ?>
			</tr>
			<?php
			}
			?>
		</table>
		
		<div class="btn-box">
			<input type="button" class="btn-back" value="后退" onclick="window.location.href='install.php';" />
			<input type="button" class="btn-next" value="继续" onclick="window.location.href='?step=3';" />
		</div>
	</div>
</div>

<?php include('footer.html');?>
</body>
</html>
