diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-05-26 09:26:24 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-05-26 09:26:24 +0300 |
| commit | 704db45abb32fe2c8f0fa83de67541aa6668c8e8 (patch) | |
| tree | 7c0d36642bdb78442068a8dcb83d5af672a09ac6 /backend.php | |
| parent | bce655ba8a5ba4727f9c4ee11c5fefa07dd479fc (diff) | |
| download | the-epube-704db45abb32fe2c8f0fa83de67541aa6668c8e8.tar.gz the-epube-704db45abb32fe2c8f0fa83de67541aa6668c8e8.tar.xz | |
add support for public backend methods
Diffstat (limited to 'backend.php')
| -rw-r--r-- | backend.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/backend.php b/backend.php index 631c667..9d08e1a 100644 --- a/backend.php +++ b/backend.php @@ -1,10 +1,4 @@ <?php - if (!isset($_COOKIE['epube_sid'])) { - header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized"); - echo "Unauthorized"; - exit; - } - header("Content-type: text/json"); require_once __DIR__ . "/include/common.php"; @@ -15,12 +9,6 @@ define('STATIC_EXPIRES', 86400*14); define('PAGE_RESET_PROGRESS', -1); - if (!validate_session()) { - header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized"); - echo "Unauthorized"; - exit; - } - $op = $_REQUEST["op"] ?? ""; $router = new Router(); |
