|
|
@@ -144,18 +144,16 @@
|
|
|
}
|
|
|
?>
|
|
|
<?php
|
|
|
- foreach ($file as $dir) {
|
|
|
- $Testdir = APP_DIR . $dir;
|
|
|
- @unlink($Testdir);
|
|
|
- $file_env = APP_DIR . ".env";
|
|
|
- @fopen($file_env, "w");
|
|
|
- if (testwrite($file_env)) {
|
|
|
+ foreach ($file as $filename) {
|
|
|
+ $filedir = APP_DIR . $filename;
|
|
|
+ @fopen($filedir, "w");
|
|
|
+ if (testwrite($filedir)) {
|
|
|
$w = '<span class="correct_span">√</span>可写 ';
|
|
|
} else {
|
|
|
$w = '<span class="correct_span error_span">√</span>不可写 ';
|
|
|
$err++;
|
|
|
}
|
|
|
- if (is_readable($file_env)) {
|
|
|
+ if (is_readable($filedir)) {
|
|
|
$r = '<span class="correct_span">√</span>可读';
|
|
|
} else {
|
|
|
$r = '<span class="correct_span error_span">√</span>不可读';
|
|
|
@@ -164,7 +162,7 @@
|
|
|
?>
|
|
|
|
|
|
<tr>
|
|
|
- <td><?php echo $dir; ?></td>
|
|
|
+ <td><?php echo $filename; ?></td>
|
|
|
<td>读写</td>
|
|
|
<td><?php echo $w; ?></td>
|
|
|
<td><?php echo $r; ?></td>
|