[Install] Check if directory exists if not exit install process
这个提交包含在:
父节点
e93884a367
当前提交
431122d22e
共有 1 个文件被更改,包括 11 次插入 和 1 次删除
|
|
@ -25,8 +25,18 @@ class Core {
|
|||
$counter++;
|
||||
}
|
||||
|
||||
if($data['directory'] != "") {
|
||||
if (file_exists("../".$data['directory'])) {
|
||||
//pass folders real
|
||||
$counter++;
|
||||
} else {
|
||||
echo "Directory ".$data['directory']." cannot be found";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// Check if all the required fields have been entered
|
||||
if($counter == '3') {
|
||||
if($counter == '4') {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
正在加载…
在新工单中引用