diff options
Diffstat (limited to 'backend.php')
| -rw-r--r-- | backend.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/backend.php b/backend.php index 4589378..de308a7 100644 --- a/backend.php +++ b/backend.php @@ -1,7 +1,4 @@ <?php - set_include_path(__DIR__ ."/include" . PATH_SEPARATOR . - get_include_path()); - if (!isset($_COOKIE['epube_sid'])) { header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized"); echo "Unauthorized"; @@ -10,8 +7,8 @@ header("Content-type: text/json"); - require_once "common.php"; - require_once "sessions.php"; + require_once __DIR__ . "/include/common.php"; + require_once __DIR__ . "/include/sessions.php"; Config::sanity_check(); |
