Przeglądaj źródła

【程序目录】修改安装文件权限检测

sugar1569 3 lat temu
rodzic
commit
9231d8f0c3
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      crmeb/public/install/templates/step2.php

+ 1 - 2
crmeb/public/install/templates/step2.php

@@ -146,8 +146,7 @@
                 <?php
                 foreach ($file as $filename) {
                     $filedir = APP_DIR . $filename;
-                    @fopen($filedir, "w");
-                    if (testwrite($filedir)) {
+                    if (is_writeable($filedir)) {
                         $w = '<span class="correct_span">&radic;</span>可写 ';
                     } else {
                         $w = '<span class="correct_span error_span">&radic;</span>不可写 ';