summaryrefslogtreecommitdiff
path: root/pages/api/session.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/session.php')
-rw-r--r--pages/api/session.php6
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"],