mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-27 14:10:35 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录
This commit is contained in:
parent
4912532f0d
commit
82eafc98ff
@ -336,7 +336,13 @@ switch ($step) {
|
||||
}
|
||||
|
||||
function testwrite($d) {
|
||||
if(is_dir($d)){
|
||||
if(is_file($d)){
|
||||
if(is_writeable($d)){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
}else{
|
||||
$tfile = "_test.txt";
|
||||
$fp = @fopen($d . "/" . $tfile, "w");
|
||||
if (!$fp) {
|
||||
@ -348,11 +354,6 @@ function testwrite($d) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}else{
|
||||
if(is_writeable($d)){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user