mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
【程序目录】优化安装程序
This commit is contained in:
parent
b5019373ea
commit
c1e4297659
7
.gitignore
vendored
7
.gitignore
vendored
@ -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/
|
||||
|
||||
@ -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">√</span>可写 ';
|
||||
} else {
|
||||
$w = '<span class="correct_span error_span">√</span>不可写 ';
|
||||
$err++;
|
||||
}
|
||||
if (is_readable($file_env)) {
|
||||
$r = '<span class="correct_span">√</span>可读';
|
||||
} else {
|
||||
$r = '<span class="correct_span error_span">√</span>不可读';
|
||||
$err++;
|
||||
$file_env = APP_DIR . ".env";
|
||||
@fopen($file_env, "w");
|
||||
if (testwrite($file_env)) {
|
||||
$w = '<span class="correct_span">√</span>可写 ';
|
||||
} else {
|
||||
$w = '<span class="correct_span error_span">√</span>不可写 ';
|
||||
$err++;
|
||||
}
|
||||
if (is_readable($file_env)) {
|
||||
$r = '<span class="correct_span">√</span>可读';
|
||||
} else {
|
||||
$r = '<span class="correct_span error_span">√</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
0
crmeb/runtime/index.html
Normal file
Loading…
x
Reference in New Issue
Block a user