mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Install] Check if directory exists if not exit install process
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user