安装程序优化,阻止系统类型未知

feat/task1-c-wallet
gongfuxiang 2019-01-19 23:31:11 +08:00
parent 52845c6ab1
commit 8044cf8aa7
1 changed files with 3 additions and 3 deletions

View File

@ -13,11 +13,11 @@
<th width="25%">当前服务器</th>
<th width="25%">是否符合</th>
</tr>
<tr class="yes">
<tr class="<?php if(function_exists('php_uname')){ echo 'yes'; } else { echo 'am-danger'; } ?>">
<td>操作系统</td>
<td>无限制</td>
<td><?php echo php_uname('s'); ?></td>
<td></td>
<td><?php echo function_exists('php_uname') ? php_uname('s') : '未知'; ?></td>
<td><?php echo function_exists('php_uname') ? '' : '×'; ?></td>
</tr>
<?php $php_version = explode('.', PHP_VERSION); ?>