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