summaryrefslogtreecommitdiff
path: root/api/token.php
blob: 81fe3d0c0006b430102f97ed8bab130c3426ac1f (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']);