summaryrefslogtreecommitdiff
path: root/api/token.php
blob: 8c18c304abb669d21b184cff7c5d8a15a3c34905 (plain)
1
2
3
4
5
6
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']);