TaoLer/app/install/view/index/test.html

134 lines
4.8 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
{extend name="index/base" /}
{block name="body"}
<div class="inside2">
<div class="inwp cl">
<h2>环境检测:</h2>
<table width="100%">
<tr>
<th width="25%">坏境</th>
<th width="25%">最低配置</th>
<th width="25%">当前配置</th>
<th width="25%">是否符合</th>
</tr>
<tr>
<td>操作系统</td>
<td>不限</td>
<td>
<?php echo php_uname('s'); ?>
</td>
<td class="yes"></td>
</tr>
<tr>
<td>php版本</td>
2022-01-07 14:43:42 +08:00
<td>&gt;7.2.5</td>
2020-01-01 13:17:19 +08:00
<td>
<?php echo PHP_VERSION ?>
</td>
2022-01-07 14:43:42 +08:00
<td class="<?php if(version_compare(PHP_VERSION, '7.2.5', '>='))echo 'yes'; ?>">
<?php if (version_compare(PHP_VERSION, '7.2.5', '>=')): ?>
2020-01-01 13:17:19 +08:00
<?php else: ?> ×
<?php endif ?>
</td>
</tr>
</table>
<h2>目录权限:</h2>
<table width="100%">
<tr>
<th width="25%">坏境</th>
<th width="25%">最低配置</th>
<th width="25%">当前配置</th>
<th width="25%">是否符合</th>
</tr>
2021-07-22 13:04:54 +08:00
<tr>
<td>app</td>
2020-01-01 13:17:19 +08:00
<td>可写</td>
<td>
2021-07-22 13:04:54 +08:00
<?php if (is_writable('../app')): ?> 可写
2020-01-01 13:17:19 +08:00
<?php else: ?> 不可写
<?php endif ?>
</td>
2021-07-22 13:04:54 +08:00
<td class="<?php if(is_writable('../app'))echo 'yes'; ?>">
<?php if (is_writable('../app')): ?>
2020-01-01 13:17:19 +08:00
<?php else: ?> ×
<?php endif ?>
</td>
</tr>
<tr>
2021-07-22 13:04:54 +08:00
<td>config</td>
<td>可写</td>
<td>
<?php if (is_writable('../config')): ?> 可写
<?php else: ?> 不可写
<?php endif ?>
</td>
<td class="<?php if(is_writable('../config'))echo 'yes'; ?>">
<?php if (is_writable('../config')): ?>
<?php else: ?> ×
<?php endif ?>
</td>
</tr>
<tr>
2021-07-22 13:04:54 +08:00
<td>public</td>
<td>可写</td>
<td>
2021-07-22 13:04:54 +08:00
<?php if (is_writable('../public')): ?> 可写
<?php else: ?> 不可写
<?php endif ?>
</td>
2021-07-22 13:04:54 +08:00
<td class="<?php if(is_writable('../public'))echo 'yes'; ?>">
<?php if (is_writable('../public')): ?>
<?php else: ?> ×
<?php endif ?>
</td>
2020-01-01 13:17:19 +08:00
</tr>
<tr>
2021-07-22 13:04:54 +08:00
<td>runtime</td>
2020-01-01 13:17:19 +08:00
<td>可写</td>
<td>
2021-07-22 13:04:54 +08:00
<?php if (is_writable('../runtime')): ?> 可写
2020-01-01 13:17:19 +08:00
<?php else: ?> 不可写
<?php endif ?>
</td>
2021-07-22 13:04:54 +08:00
<td class="<?php if(is_writable('../runtime'))echo 'yes'; ?>">
<?php if (is_writable('../runtime')): ?>
2020-01-01 13:17:19 +08:00
<?php else: ?> ×
<?php endif ?>
</td>
</tr>
2021-07-22 13:04:54 +08:00
<tr>
<td>view</td>
2020-01-01 13:17:19 +08:00
<td>可写</td>
<td>
2021-07-22 13:04:54 +08:00
<?php if (is_writable('../view')): ?> 可写
2020-01-01 13:17:19 +08:00
<?php else: ?> 不可写
<?php endif ?>
</td>
2021-07-22 13:04:54 +08:00
<td class="<?php if(is_writable('../view'))echo 'yes'; ?>">
<?php if (is_writable('../view')): ?>
2020-01-01 13:17:19 +08:00
<?php else: ?> ×
<?php endif ?>
</td>
</tr>
</table>
<div class="inout1">
2020-02-19 20:42:01 +08:00
<a href="{:url('index/index')}">上一步</a>
2020-01-01 13:17:19 +08:00
</div>
<div class="inout2">
<a href="javascript:;" onclick="testClick()">下一步</a>
</div>
</div>
</div>
2022-08-02 21:13:36 +08:00
{/block}
{block name="script"}
<script>
function testClick() {
if ($('.yes').length != 7) {
alert('您的配置或权限不符合要求');
} else {
location.href = "{:url('index/create')}";
2020-01-01 13:17:19 +08:00
}
2022-08-02 21:13:36 +08:00
}
</script>
2020-01-01 13:17:19 +08:00
{/block}