Browse Source

检查是否有openssl的支持

tags/6.0.0
tianya 3 years ago
parent
commit
8ee8815cbe
2 changed files with 7 additions and 1 deletions
  1. +1
    -0
      src/install/index.php
  2. +6
    -1
      src/install/templates/step-2.html

+ 1
- 0
src/install/index.php View File

@@ -66,6 +66,7 @@ else if($step==2)
$sp_host = (empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_HOST'] : $_SERVER['REMOTE_ADDR']);
$sp_name = $_SERVER['SERVER_NAME'];
$sp_max_execution_time = ini_get('max_execution_time');
$sp_openssl = (extension_loaded("openssl") ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
$sp_allow_reference = (ini_get('allow_call_time_pass_reference') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
$sp_allow_url_fopen = (ini_get('allow_url_fopen') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>');
$sp_safe_mode = (ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>');


+ 6
- 1
src/install/templates/step-2.html View File

@@ -64,7 +64,7 @@
</tr>
<tr>
<td><strong>PHP版本</strong></td>
<td><?php echo $phpv; ?></td>
<td><?php echo $phpv; ?><small>(建议使用PHP7.0以上版本)</small></td>
</tr>
<tr>
<td><strong>系统安装目录</strong></td>
@@ -81,6 +81,11 @@
<th width="80"><strong>要求</strong></th>
<th width="400"><strong>实际状态及建议</strong></th>
</tr>
<tr>
<td>OpenSSL</td>
<td align="center">On </td>
<td><?php echo $sp_openssl; ?> <small>(不符合将无法完成<a href="https://www.dedebiz.com" target="_blank">Dede商业支持</a>)</small></td>
</tr>
<tr>
<td>allow_url_fopen</td>
<td align="center">On </td>


Loading…
Cancel
Save