about summary refs log tree commit diff stats
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-26 09:26:24 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-26 09:26:24 +0300
commit704db45abb32fe2c8f0fa83de67541aa6668c8e8 (patch)
tree7c0d36642bdb78442068a8dcb83d5af672a09ac6 /backend.php
parentbce655ba8a5ba4727f9c4ee11c5fefa07dd479fc (diff)
downloadthe-epube-704db45abb32fe2c8f0fa83de67541aa6668c8e8.tar.gz
the-epube-704db45abb32fe2c8f0fa83de67541aa6668c8e8.tar.xz
add support for public backend methods
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
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();