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

This commit is contained in:
sugar1569 2022-04-21 13:27:20 +08:00
parent b5019373ea
commit c1e4297659
3 changed files with 29 additions and 22 deletions

7
.gitignore vendored
View File

@ -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/

View File

@ -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
crmeb/runtime/index.html Normal file
View File