mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 10:59:47 +08:00
安装程序版本校验优化
This commit is contained in:
parent
03e35625c7
commit
38e0a50db7
@ -21,12 +21,12 @@
|
||||
</tr>
|
||||
|
||||
<?php $php_version = explode('.', PHP_VERSION); ?>
|
||||
<tr class="<?php if($php_version['0'] >=7 && $php_version['1'] >=2 && $php_version['2'] >=5){ echo 'yes'; } else { echo 'am-danger'; } ?>">
|
||||
<tr class="<?php if(($php_version[0] >=8) || ($php_version[0] >=7 && $php_version[1] >=3) || ($php_version[0] >=7 && $php_version[1] >=2 && $php_version[2] >=5)){ echo 'yes'; } else { echo 'am-danger'; } ?>">
|
||||
<td>PHP版本</td>
|
||||
<td>>=7.2.5</td>
|
||||
<td><?php echo PHP_VERSION ?></td>
|
||||
<td>
|
||||
<?php if($php_version['0'] >=7 && $php_version['1'] >=2 && $php_version['2'] >=5): ?>
|
||||
<?php if(($php_version[0] >=8) || ($php_version[0] >=7 && $php_version[1] >=3) || ($php_version[0] >=7 && $php_version[1] >=2 && $php_version[2] >=5)): ?>
|
||||
√
|
||||
<?php else: ?>
|
||||
×
|
||||
|
Loading…
Reference in New Issue
Block a user