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

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

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