Skip to content
Snippets Groups Projects
Commit 71ea4b86 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Merge pull request #1 from selabnayr/master

Look for the config file in the current directory instead of fixed path; TODO: Put a warning into README.md not to make that file accessible via HTTP
parents 01579c69 61e919fe
Branches master
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');
......
......@@ -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');
......
......@@ -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