<!DOCTYPE html>
<html class="u-forget">

<head>
    <meta charset="UTF-8">
    <title>环境检测 - 觅分类信息系统</title>
    <meta name="renderer" content="webkit" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <script src="/public/js/jquery-3.4.1.min.js"></script>
</head>
<style>
.u-forget .title_forget{line-height: 40px; margin: 0px auto; height: 41px; margin-top: 109px; overflow: hidden; text-align: center; font-size: 26px; color: #333;}
.u-forget .step{margin: 0px auto; height: 70px; margin-top: 108px; margin-bottom: 60px; overflow: hidden; background: url('../install/img/hjjc.jpg') no-repeat; background-size: 100% auto;}
.u-forget .forget_next{width: 200px; margin-top: 22px; background: #5298ff;}
.p{font-size: 15px; line-height: 30px; color: #333; padding: 20px; border: 10px solid #5298ff; border-radius: 5px;}
.layui-container{width: 750px;}
</style>
<body>
    <div class="layui-container">
        <h3 class="title_forget">环境检测 - 觅分类信息系统</h3>
        <div class="step visible-lg visible-md"></div>
        <div class="p">
            <table class="layui-table" lay-size="lg">
                <colgroup>
                    <col width="150">
                        <col width="200">
                            <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>坏境</th>
                        <th>最低配置</th>
                        <th>当前配置</th>
                        <th>是否符合</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>操作系统</td>
                        <td>不限</td>
                        <td>
                            <?php echo php_uname( 's'); ?>
                        </td>
                        <td class="yes">√</td>
                    </tr>
                    <tr>
                        <td>php版本</td>
                        <td>&gt;5.6</td>
                        <td>
                            <?php echo PHP_VERSION ?>
                        </td>
                        <?php $php_version=explode( '.', PHP_VERSION); ?>
                        <td class="<?php if(($php_version['0']>=7) || ($php_version['0']>=5 && $php_version['1']>=3))echo 'yes'; ?>">
                            <?php if (($php_version[ '0']>=7) || ($php_version['0']>=5 && $php_version['1']>=6)): ?> √
                            <?php else: ?>×
                            <?php endif ?>
                        </td>
                    </tr>
                    <tr>
                        <td>./Uploads</td>
                        <td>可写</td>
                        <td>
                            <?php if (is_writable( '../uploads')): ?>可写
                            <?php else: ?>不可写
                            <?php endif ?>
                        </td>
                        <td class="<?php if(is_writable('../uploads'))echo 'yes'; ?>">
                            <?php if (is_writable( '../uploads')): ?>√
                            <?php else: ?>×
                            <?php endif ?>
                        </td>
                    </tr>
                    <tr>
                        <td>./Runtime</td>
                        <td>可写</td>
                        <td>
                            <?php if (is_writable( '../runtime')): ?>可写
                            <?php else: ?>不可写
                            <?php endif ?>
                        </td>
                        <td class="<?php if(is_writable('../runtime'))echo 'yes'; ?>">
                            <?php if (is_writable( '../runtime')): ?>√
                            <?php else: ?>×
                            <?php endif ?>
                        </td>
                    </tr>
                    <tr>
                        <td>./install</td>
                        <td>可写</td>
                        <td>
                            <?php if (is_writable( '../install')): ?>可写
                            <?php else: ?>不可写
                            <?php endif ?>
                        </td>
                        <td class="<?php if(is_writable('../install'))echo 'yes'; ?>">
                            <?php if (is_writable( '../install')): ?>√
                            <?php else: ?>×
                            <?php endif ?>
                        </td>
                    </tr>
                    <tr>
                        <td>./mifenlei</td>
                        <td>可写</td>
                        <td>
                            <?php if (is_writable( '../mifenlei')): ?>可写
                            <?php else: ?>不可写
                            <?php endif ?>
                        </td>
                        <td class="<?php if(is_writable('../mifenlei'))echo 'yes'; ?>">
                            <?php if (is_writable( '../mifenlei')): ?>√
                            <?php else: ?>×
                            <?php endif ?>
                        </td>
                    </tr>
                </tbody>
            </table>
    		<div align="center">
    		    <a class="forget_next layui-btn" href="./index.php?c=agreement">上一步</a>
    		    <a href="javascript:;" onclick="testClick()" class="forget_next layui-btn">下一步</a>
    		</div>
		</div>
    </div>
</body>
</html>
<script>
function testClick(){
    if($('.yes').length!=6){
        alert('您的配置或权限不符合要求');
    }else{
        location.href='./index.php?c=create';
    }
}
</script>