Skip to content

Commit

Permalink
Ignore some stuff, throw an error if location doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerothen committed Apr 8, 2017
1 parent 9eab05d commit 0437841
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,11 @@ homepageSettings.ini.php
loginLog.json
custom.css
_config.yml
test.php
test.php
users.db
config/config.php
config/users/
config/users
config/users.db


6 changes: 5 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
$_POST['database_Location'] = str_replace('//','/',$_POST['database_Location'].'/');
$_POST['USER_HOME'] = $_POST['database_Location'].'users/';
}
updateConfig($_POST);
if (file_exists($_POST['database_Location'])) {
updateConfig($_POST);
} else {
debug_out('Dir doesn\'t exist: '.$_POST['database_Location'],1); // Pretty Up
}
} else {
$configReady = "No";
$userpic = "";
Expand Down

0 comments on commit 0437841

Please sign in to comment.