<?php
    include('header.html');
?>
<div class="setup step1">
<h2>1.环境以及文件目录权限检查</h2>
</div>
<div class="stepstat">
<ul>
<li class="current">1</li>
<li class="unactivated">2</li>
<li class="unactivated">3</li>
<li class="unactivated last">4</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">灯鹭所需配置</th>
<th class="padleft">灯鹭最佳配置</th>
<th class="padleft">当前服务器</th>
</tr>

<tr>
<td>PHP版本</td>
<td class="padleft">5.x</td>
<td class="padleft">5.2+</td>
<td class="<?php echo $php_v['phpv']['sp'] ? 'w' : 'nw' ?> pdleft1"><?php echo $php_v['phpv']['val'];?></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>
<?php
foreach($file_info as $info){
?>
<tr>
<td><?php echo $info['path']?></td>
<td class="w pdleft1">可写</td>
<td class="<?php echo $info['value'] ? 'w' : 'nw' ?> pdleft1"><?php echo $info['value'] ? '可写' : '不可写'?></td>
</tr>
<?php
}
?>
</table>

<h2 class="title">所需函数支持</h2>
<table class="tb" style="margin:20px 0 20px 55px;width:90%;">
<tr>
<th>函数名称</th>
<th class="padleft">检查结果</th>
</tr>
<?php
foreach($function_info as $finfo){
?>
<tr>
<td><?php echo $finfo['name']?></td>
<td class="<?php echo $finfo['sp']==w ? 'w' : 'nw'?> pdleft1"><?php echo $finfo['sp']==w ? '支持' : '不支持'?></td>
</tr>
<?php
}
?>
</table>
<div class="btnbox marginbot">
<input type="button" onclick="history.back();" value="上一步" />
<input type="submit" value="下一步" onclick="javascript:window.location='?action=two';" />
</div>
</div>

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