From a00198823d1147f0b1fa6309c1cfdc3cc6cf4aee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Oct 2018 16:01:44 +0300 Subject: remove 402 cookie-check code because it's no longer needed --- backend.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 9af5509..7fb610e 100644 --- a/backend.php +++ b/backend.php @@ -6,14 +6,6 @@ define('STATIC_EXPIRES', 86400*14); - // let's not start a session if there's no cookie, login is impossible - // via backend anyway - if (!isset($_COOKIE['epube_sid'])) { - header($_SERVER["SERVER_PROTOCOL"]." 402 Unauthorized"); - echo "Unauthorized"; - die; - } - require_once "sessions.php"; require_once "db.php"; -- cgit v1.2.3