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

This commit is contained in:
sugar1569 2022-08-23 18:26:18 +08:00
parent bbee3ef7bc
commit 9231d8f0c3

View File

@ -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>不可写 ';