<!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=utf-8" />
<title><?php echo $_LANG['step1_title'];?></title>
<link rel="stylesheet" media="screen"  href="css/style.css"/>
</head>

<body id="step1">
   <div id="wrap">
     <div id="main" >
     
        <?php include_once 'templates/header.php';?>
        
        <div id="content">
          <div class="content-inner">
            <?php include_once 'templates/nav.php';?>
            <div class="middle">
              <div class="pad1">
                
                <h3 class="normal"><?php echo $_LANG['env_check'];?></h3>
                <table class="env-table" cellpadding="0" cellspacing="0">
                  <tr>
                    <th style="width:107px;"><?php echo $_LANG['project'];?></th>
                    <th style="width:142px;"><?php echo $_LANG['xweibo_required'];?></th>
                    <th style="width:142px;"><?php echo $_LANG['xweibo_best'];?></th>
                    <th style="width:206px;"><?php echo $_LANG['curr_server'];?></th>
                    <th><?php echo $_LANG['check_result'];?></th>
                  </tr>
				  <?php if ($env_vars):?>
                  <?php foreach ($env_vars as $key => $item):?>
                  <tr>
                    <td><?php echo $_LANG[$key];?></td>
                    <td><?php echo $item['required'];?></td>
                    <td><?php echo $item['best'];?></td>
                    <td class="<?php echo $item['state'] ? $item['state'] : 'false';?>"><?php echo $item['curr'];?> </td>
                    <td>
						<?php if ($item['state'] == true):?>
						<img src="img/true.gif" />
						<?php else:?>
						<img src="img/false.gif" />
						<?php endif;?>
					</td>
                  </tr>
                  <?php endforeach;?>
				  <?php endif;?>                  
                </table>
                
                <h3 class="normal"><?php echo $_LANG['priv_check'];?></h3>
                
                <table class="env-table" cellpadding="0" cellspacing="0">
                  <tr>
                    <th style="width:240px;"><?php echo $_LANG['dir_file'];?></th>
                    <th style="width:118px;"><?php echo $_LANG['status'];?></th>
                    <th><?php echo $_LANG['check_result'];?></th>
                  </tr>
				  <?php if ($dir_file_vars):?>
				  <?php foreach ($dir_file_vars as $key => $item):?>
                  <tr>
                    <td><?php echo $key;?>  </td>
                    <td class="<?php echo $item['state'] ? $item['state'] : 'false';?>"><?php echo $_LANG[$item['w']];?></td>
                    <td>
					<?php if ($item['state'] == true):?>
					<img src="img/true.gif" />
					<?php else:?>
					<img src="img/false.gif" />
					<?php endif;?>
					</td>
                  </tr>
				  <?php endforeach;?>
				  <?php endif;?>
                </table>
                
                <h3 class="normal"><?php echo $_LANG['func_depend'];?></h3>
                <table class="env-table" cellpadding="0" cellspacing="0">
                  <tr>
                    <th style="width:240px;"><?php echo $_LANG['func_name'];?></th>
                    <th style="width:118px;"><?php echo $_LANG['status'];?></th>
                    <th><?php echo $_LANG['check_result'];?></th>
                  </tr>
				  <?php if ($func_vars):?>
				  <?php foreach ($func_vars as $key => $item):?>
                  <tr>
                    <td><?php echo $key;?>  </td>
                    <td class="<?php echo $item['state'] ? $item['state'] : 'false';?>"><?php echo $_LANG[$item['s']];?></td>
                    <td>
					<?php if ($item['state'] == true):?>
					<img src="img/true.gif" />
					<?php else:?>
					<img src="img/false.gif" />
					<?php endif;?>
					</td>
                  </tr>
				  <?php endforeach;?>
				  <?php endif;?>
                  
                </table>
              </div>
              
              <p class="tips" style="padding-top:30px">
			  <a href="index.php?step=1"><img src="img/btn3.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			  <?php if ($disabled == true):?>
			  <a href="index.php?step=2"><img src="img/btn4.gif" /></a>
			  <?php else:?>
			  <img src="img/btn6.gif" /></p>
			  <?php endif;?>
			  </p>
            </div>
            
            <div class="bottom"></div>
            
          </div>
          
          
          
        </div>
     </div>
   </div>
</body>
</html>

