Bladeren bron

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

sugar1569 3 jaren geleden
bovenliggende
commit
c1e4297659
3 gewijzigde bestanden met toevoegingen van 29 en 22 verwijderingen
  1. 5 2
      .gitignore
  2. 24 20
      crmeb/public/install/templates/step2.php
  3. 0 0
      crmeb/runtime/index.html

+ 5 - 2
.gitignore

@@ -1,11 +1,14 @@
 /.git
 /.idea
 /crmeb/.constant
-/crmeb/runtime
+/crmeb/runtime/cache
+/crmeb/runtime/log
+/crmeb/runtime/session
+/crmeb/runtime/temp
 /crmeb/public/uploads
 *.log
 /crmeb/public/install/install.lock
-/crmeb/.env
+#/crmeb/.env
 /crmeb/timer.pid
 /crmeb/workerman.pid
 /docker-compose/mysql/data/

+ 24 - 20
crmeb/public/install/templates/step2.php

@@ -147,28 +147,32 @@
                 foreach ($file as $dir) {
                     $Testdir = APP_DIR . $dir;
                      @unlink($Testdir);
-                }
-                $file_env = APP_DIR . ".env";
-                @fopen($file_env, "w");
-                if (testwrite($file_env)) {
-                    $w = '<span class="correct_span">&radic;</span>可写 ';
-                } else {
-                    $w = '<span class="correct_span error_span">&radic;</span>不可写 ';
-                    $err++;
-                }
-                if (is_readable($file_env)) {
-                    $r = '<span class="correct_span">&radic;</span>可读';
-                } else {
-                    $r = '<span class="correct_span error_span">&radic;</span>不可读';
-                    $err++;
+                    $file_env = APP_DIR . ".env";
+                    @fopen($file_env, "w");
+                    if (testwrite($file_env)) {
+                        $w = '<span class="correct_span">&radic;</span>可写 ';
+                    } else {
+                        $w = '<span class="correct_span error_span">&radic;</span>不可写 ';
+                        $err++;
+                    }
+                    if (is_readable($file_env)) {
+                        $r = '<span class="correct_span">&radic;</span>可读';
+                    } else {
+                        $r = '<span class="correct_span error_span">&radic;</span>不可读';
+                        $err++;
+                    }
+                    ?>
+
+                    <tr>
+                        <td><?php echo $dir; ?></td>
+                        <td>读写</td>
+                        <td><?php echo $w; ?></td>
+                        <td><?php echo $r; ?></td>
+                    </tr>
+                <?php
                 }
                 ?>
-                <tr>
-                    <td>/</td>
-                    <td>读写</td>
-                    <td><?php echo $w; ?></td>
-                    <td><?php echo $r; ?></td>
-                </tr>
+
 
             </table>
             <table width="100%">

+ 0 - 0
crmeb/runtime/index.html