From a5c8dce987df2f59f4605c8a34033b120b449db5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 7 Jul 2023 22:09:19 +0200 Subject: Updated 6 files (automated) --- pages/api/session.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/api/session.php') diff --git a/pages/api/session.php b/pages/api/session.php index d410c10..25d833d 100644 --- a/pages/api/session.php +++ b/pages/api/session.php @@ -7,9 +7,9 @@ header("Content-Type: application/json"); global $token; if (isset($_GET["raw"])) { - die(json_encode(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . str_replace("/", "", $token)), true), JSON_PRETTY_PRINT)); + die(json_encode(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . str_replace("/", "", $token)), true), JSON_PRETTY_PRINT)); } else { - if (!$isLoggedIn || $isLowerLoggedIn) { + if (!$isLoggedIn || $isLowerLoggedIn) { die(json_encode([ "name" => null, "created" => null, @@ -18,7 +18,7 @@ if (isset($_GET["raw"])) { ], JSON_PRETTY_PRINT)); } - $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . str_replace("/", "", $token)), true); + $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . str_replace("/", "", $token)), true); die(json_encode([ "name" => $data["name"], -- cgit