Skip to content
Snippets Groups Projects
Commit e0de16df authored by selabnayr's avatar selabnayr
Browse files

Make it look in the current directory instead of a fixed path for the config file.

parent 01579c69
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
require_once('backend.php');
$backend = new Backend();
$backend->connect('/var/www/config.ini');
$backend->connect('config.ini');
if (!$backend->auth($_POST['username'], $_POST['password'])) {
header($_SERVER['SERVER_PROTOCOL'].' 403 Forbidden');
header('Status: 403 Forbidden');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment