diff options
author | RaindropsSys <contact@minteck.org> | 2023-07-07 22:09:19 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-07-07 22:09:19 +0200 |
commit | a5c8dce987df2f59f4605c8a34033b120b449db5 (patch) | |
tree | b1e3e839ba15423bfbd047bc6f323575b1de5831 /pages/api/session.php | |
parent | 7da33614f1a8708bebcb4f04ee99224c5d6db1d3 (diff) | |
download | pluralconnect-a5c8dce987df2f59f4605c8a34033b120b449db5.tar.gz pluralconnect-a5c8dce987df2f59f4605c8a34033b120b449db5.tar.bz2 pluralconnect-a5c8dce987df2f59f4605c8a34033b120b449db5.zip |
Updated 6 files (automated)
Diffstat (limited to 'pages/api/session.php')
-rw-r--r-- | pages/api/session.php | 6 |
1 files changed, 3 insertions, 3 deletions
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"], |