diff options
Diffstat (limited to 'api/token.php')
-rw-r--r-- | api/token.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/token.php b/api/token.php new file mode 100644 index 0000000..81fe3d0 --- /dev/null +++ b/api/token.php @@ -0,0 +1,7 @@ +<?php + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; +if (!$isLoggedIn) header("Location: /login") and die(); + +header("Content-Type: text/plain"); +die($_COOKIE['PEH2_SESSION_TOKEN']);
\ No newline at end of file |