Fix #34, now showing an error message
This commit is contained in:
parent
31d7ecfdf3
commit
4c4269c1fa
|
@ -18,6 +18,13 @@ if(file_exists("../config/config-user.php")) {
|
||||||
echo "Permission denied!";
|
echo "Permission denied!";
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!(is_writable("../config"))) {
|
||||||
|
$retval['status'] = "error";
|
||||||
|
$retval['message'] = "Can't write to the config directory, please check the file system permissions";
|
||||||
|
die(json_encode($retval));
|
||||||
|
}
|
||||||
|
|
||||||
//Get input
|
//Get input
|
||||||
$input = json_decode(file_get_contents('php://input'));
|
$input = json_decode(file_get_contents('php://input'));
|
||||||
//Database command
|
//Database command
|
||||||
|
|
Loading…
Reference in a new issue