about summary refs log tree commit diff stats
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-24 17:16:05 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-24 17:16:05 +0300
commit6f660eedb640eaa31e75cfd2543692d7f494ddd6 (patch)
treebf5a6d43ae77daf7a63d5c1770ec5dac6af5bc06 /backend.php
parent8ca1fb36999b0e2eceed1388d1a1f7cc115a2f3c (diff)
downloadthe-epube-6f660eedb640eaa31e75cfd2543692d7f494ddd6.tar.gz
the-epube-6f660eedb640eaa31e75cfd2543692d7f494ddd6.tar.xz
fix phpstan issues
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
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();