<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>yonglicmsV1.0</title>
</head>

<body>
<div class="top">
	<div class="top-logo">
		<h1></h1>

	</div>
    <div class="top-shades">
	</div>
	<div class="top-link">
		<ul>
			<li><a href="http://www.yonglliol.com" target="_blank"></a></li>
			<li><a href="http://bbs.yongliol.com" target="_blank"></a></li>
		</ul>
	</div>
	<div class="top-version">
		
		<h2></h2>
	</div>
</div>
<div class="main">
	<div class="pr">

		<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="pl">
		<div class="pr-title"><h3>服务器信息</h3></div>

		<table width="726" style="float:left" border="0" align="left" 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 $_SERVER['SERVER_NAME']?></td>
			</tr>
			<tr>
					<td><strong>服务器操作系统</strong></td>
					<td><?php echo PHP_OS ?></td>
			</tr>
            <tr>
					<td><strong>服务器解译引擎</strong></td>
					<td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
			</tr>
			<tr>
					<td><strong>PHP版本</strong></td>
					<td><?php echo PHP_VERSION; ?></td>
			</tr>
		
			<tr>
					<td><strong>系统安装目录</strong></td>
					<td><?php echo $_SERVER['DOCUMENT_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:#666;">

			系统环境要求必须满足下列所有条件，否则系统或系统部份功能将无法使用。
		</div>
		<table style="float:left" 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>PHP版本</td>
					<td align="center">5+</td>
					<td><?php if (substr(PHP_VERSION,0,1) >= 5) {echo "<font color=#0588c1>[√]".PHP_VERSION."</font>" ;} else { echo "<font color='red'>[×]".PHP_VERSION."</font>" ;}?></font><small>(不符合要求将导致系统部分功能无法应用)</small></td>
			</tr>
			<tr>
					<td>safe_mode</td>

					<td align="center">Off</td>
					<td><font color=#0588c1><?php if (ini_get('safe_mode')) {echo "<font color=#0588c1>[√]On</font>";} else { echo "<font color='red'>[×]Off</font>";} ?></font> <small>(本系统不支持在<span class="STYLE2">非win主机的安全模式</span>下运行)</small></td>
			</tr>
			
			<tr>
					<td>GD 支持 </td>

					<td align="center">On</td>
					<td><?php if (function_exists('imagecreate')) {echo "<font color=#0588c1>[√]On</font>";} else { echo "<font color='red'>[×]Off</font>";}?> <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:#666;">

			系统要求必须满足下列所有的目录权限全部可读写的需求才能使用。
		</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>

						<tr>
					<td>/install/install.php</td>
					<td><?php if (is_readable("../install/install.php")) {echo "<font color=#0588c1>[√]读</font>";} else { echo "<font color='red'>[×]不可读</font>";}?></td><td><?php if (is_writable("../install/install.php")) {echo "<font color=#0588c1>[√]写</font>";} else { echo "<font color='red'>[×]不可写</font>";}?></td>
			</tr>
			<tr>
					<td>/admin/product/p_del.php</td>
					<td><?php if (is_readable("../admin/product/p_del.php")) {echo "<font color=#0588c1>[√]读</font>";} else { echo "<font color='red'>[×]不可读</font>";}?></td><td><?php if (is_writable("../install/install.php")) {echo "<font color=#0588c1>[√]写</font>";} else { echo "<font color='red'>[×]不可写</font>";}?></td>

			</tr>
			<tr>
					<td>/admin/news/news_del.php</td>
					<td><?php if (is_writable("../admin/news/news_del.php")) {echo "<font color=#0588c1>[√]读</font>";} else { echo "<font color='red'>[×]不可读</font>";}?></td><td><?php if (is_writable("../install/install.php")) {echo "<font color=#0588c1>[√]写</font>";} else { echo "<font color='red'>[×]不可写</font>";}?></td>

			</tr>
		
					</table>
		
		<div class="btn-box">
			<input type="button" class="btn-back" value="后退" onclick="window.location.href='index.php';" />
			<input type="button" class="btn-next" value="继续" onclick="window.location.href='step3.php';" />
		</div>
	</div>
</div>

<div class="foot">

</div>

</body>
</html>
