Просмотр исходного кода

【程序目录】简化安装程序

吴昊天 3 лет назад
Родитель
Сommit
80df22986d
2 измененных файлов с 0 добавлено и 84 удалено
  1. 0 52
      crmeb/public/install/index.php
  2. 0 32
      crmeb/public/install/templates/step2.php

+ 0 - 52
crmeb/public/install/index.php

@@ -148,58 +148,6 @@ switch ($step) {
             '.version',
             '.constant',
         );
-        //必须开启函数
-        $disabled = explode(',', ini_get('disable_functions'));
-
-
-        if (function_exists('file_put_contents')) {
-            $file_put_contents = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $file_put_contents = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (function_exists('imagettftext')) {
-            $imagettftext = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $imagettftext = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('proc_open', $disabled)) {
-            $proc_open = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $proc_open = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('pcntl_signal', $disabled)) {
-            $pcntl_signal = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $pcntl_signal = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('pcntl_signal_dispatch', $disabled)) {
-            $pcntl_signal_dispatch = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $pcntl_signal_dispatch = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('pcntl_fork', $disabled)) {
-            $pcntl_fork = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $pcntl_fork = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('pcntl_wait', $disabled)) {
-            $pcntl_wait = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $pcntl_wait = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
-        if (!in_array('pcntl_alarm', $disabled)) {
-            $pcntl_alarm = '<span class="correct_span">&radic;</span> 启用';
-        } else {
-            $pcntl_alarm = '<span class="correct_span error_span">&radic;</span> 禁用';
-            $err++;
-        }
         include_once("./templates/step2.php");
         exit();
 

+ 0 - 32
crmeb/public/install/templates/step2.php

@@ -172,38 +172,6 @@
 
 
             </table>
-            <table width="100%">
-                <tr>
-                  <td class="td1" width="25%">函数检测必须开启</td>
-                  <td class="td1" width="25%">当前状态</td>
-                  <td class="td1" width="25%">函数检测必须开启</td>
-                  <td class="td1" width="25%">当前状态</td>
-                </tr>
-              <tr>
-                    <td>file_put_contents</td>
-                    <td><?php echo $file_put_contents; ?></td>
-                <td>imagettftext</td>
-                <td><?php echo $imagettftext; ?></td>
-                </tr>
-                <tr>
-                    <td>proc_open</td>
-                    <td><?php echo $proc_open; ?></td>
-                    <td>pcntl_signal</td>
-                    <td><?php echo $pcntl_signal; ?></td>
-                </tr>
-                <tr>
-                    <td>pcntl_signal_dispatch</td>
-                    <td><?php echo $pcntl_signal_dispatch; ?></td>
-                    <td>pcntl_fork</td>
-                    <td><?php echo $pcntl_fork; ?></td>
-                </tr>
-                <tr>
-                    <td>pcntl_wait</td>
-                    <td><?php echo $pcntl_wait; ?></td>
-                    <td>pcntl_alarm</td>
-                    <td><?php echo $pcntl_alarm; ?></td>
-                </tr>
-            </table>
         </div>
         <div class="bottom tac">
             <a href="<?php echo $_SERVER['PHP_SELF']; ?>?step=2" class="btn">重新检测</a>