This commit is contained in:
吴昊天 2022-08-23 17:39:15 +08:00
commit bbee3ef7bc
4 changed files with 15 additions and 9 deletions

1
crmeb/.env Executable file
View File

@ -0,0 +1 @@
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai [DATABASE] TYPE = mysql HOSTNAME = HOSTPORT = 3306 USERNAME = PASSWORD = DATABASE = PREFIX = eb_ CHARSET = utf8 DEBUG = true [LANG] default_lang = zh-cn [REDIS] REDIS_HOSTNAME = PORT = 6379 REDIS_PASSWORD = SELECT = 0 [QUEUE] QUEUE_NAME = 62b265633562c

View File

@ -144,7 +144,9 @@ switch ($step) {
'runtime',
);
$file = array(
'.env'
'.env',
'.version',
'.constant',
);
//必须开启函数
$disabled = explode(',', ini_get('disable_functions'));

View File

@ -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">&radic;</span>可写 ';
} else {
$w = '<span class="correct_span error_span">&radic;</span>不可写 ';
$err++;
}
if (is_readable($file_env)) {
if (is_readable($filedir)) {
$r = '<span class="correct_span">&radic;</span>可读';
} else {
$r = '<span class="correct_span error_span">&radic;</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>

5
crmeb/runtime/readme.md Normal file
View File

@ -0,0 +1,5 @@
# 换成目录
log 日志目录
session session目录
cache 换成目录
temp 临时目录