summaryrefslogtreecommitdiff
path: root/pages/api/token.php
blob: 99b9158d9b755c3ad082c1a4e991fe52afed94fc (plain)
1
2
3
4
5
6
7
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn;
if (!$isLoggedIn) header("Location: /-/login") and die();

header("Content-Type: text/plain");
die($_COOKIE['PEH2_SESSION_TOKEN']);