<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title[2]; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
</head>
<body>
<div class="wrap">
  <?php require './templates/header.php';?>
  <section class="section">
    <div class="step">
      <ul>
        <li class="current"><em>1</em>检测环境</li>
        <li><em>2</em>创建数据</li>
        <li><em>3</em>完成安装</li>
      </ul>
    </div>
    <div class="server">
      <table width="100%">
        <tr>
          <td class="td1">环境检测</td>
          <td class="td1" width="25%">推荐配置</td>
          <td class="td1" width="25%">当前状态</td>
          <td class="td1" width="25%">最低要求</td>
        </tr>
        <tr>
          <td>操作系统</td>
          <td>类UNIX</td>
          <td><span class="correct_span">&radic;</span> <?php echo $os; ?></td>
          <td>不限制</td>
        </tr>
        <tr>
          <td>PHP版本</td>
          <td>5.3</td>
          <td><?php echo $gd; ?></td>
          <td>5.3</td>
        </tr>
        <tr>
          <td>Mysql</td>
          <td>>5.x.x</td>
          <td><?php echo $mysql; ?></td>
          <td>4.2</td>
        </tr>
        <tr>
          <td>PDO_Mysql</td>
          <td>必须</td>
          <td><?php echo $pdo_mysql; ?></td>
          <td>必须</td>
        </tr>
        <tr>
          <td>Zend Guard Loader</td>
          <td>必须</td>
          <td><?php echo $zend_guard_loader; ?></td>
          <td>必须</td>
        </tr>
        <tr>
          <td>附件上传</td>
          <td>>2M</td>
          <td><?php echo $uploadSize; ?></td>
          <td>不限制</td>
        </tr>
        <tr>
          <td>session</td>
          <td>开启</td>
          <td><?php echo $session; ?></td>
          <td>开启</td>
        </tr>
      </table>
      <table width="100%">
        <tr>
          <td class="td1">目录、文件权限检查</td>
          <td class="td1" width="25%">写入</td>
          <td class="td1" width="25%">读取</td>
        </tr>

        <tr>
          <td><?php echo $dir1; ?></td>
          <td><?php echo $w1; ?></td>
          <td><?php echo $r1; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir2; ?></td>
          <td><?php echo $w2; ?></td>
          <td><?php echo $r2; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir3; ?></td>
          <td><?php echo $w3; ?></td>
          <td><?php echo $r3; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir4; ?></td>
          <td><?php echo $w4; ?></td>
          <td><?php echo $r4; ?></td>
        </tr>
       <tr>
          <td><?php echo $dir5; ?></td>
          <td><?php echo $w5; ?></td>
          <td><?php echo $r5; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir6; ?></td>
          <td><?php echo $w6; ?></td>
          <td><?php echo $r6; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir7; ?></td>
          <td><?php echo $w7; ?></td>
          <td><?php echo $r7; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir8; ?></td>
          <td><?php echo $w8; ?></td>
          <td><?php echo $r8; ?></td>
        </tr>
        <tr>
          <td><?php echo $dir9; ?></td>
          <td><?php echo $w9; ?></td>
          <td><?php echo $r9; ?></td>
        </tr>
      </table>
    </div>
    <div class="bottom tac">
    <a href="<?php echo $_SERVER['PHP_SELF']; ?>?step=2" class="btn">重新检测</a>
    <a href="<?php echo $_SERVER['PHP_SELF']; ?>?step=3" class="btn next">下一步</a>
    </div>
  </section>
  <div  style="width:0;height:0;overflow:hidden;"> <img src="./images/install/pop_loading.gif"> </div>
  <script src="./js/jquery.js?v=9.0"></script> 
  <script src="./js/validate.js?v=9.0"></script> 
  <script src="./js/ajaxForm.js?v=9.0"></script>
<script>
$(function(){
	var errSum = <?php echo $err; ?>;
	if(errSum){
		$('a.next').addClass('btn_old').click(function(){
			alert('环境检测不通过，无法进行下一步！');
			return false;
		});
	}
});
</script>
</div>
<?php require './templates/footer.php';?>
</body>
</html>