diff options
Diffstat (limited to 'pages/api/wakeup.php')
-rw-r--r-- | pages/api/wakeup.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/api/wakeup.php b/pages/api/wakeup.php index c338b9a..e4603ef 100644 --- a/pages/api/wakeup.php +++ b/pages/api/wakeup.php @@ -1,7 +1,12 @@ <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; -if (!$isLoggedIn) header("Location: /-/login") and die(); + +if (!$isLoggedIn) { + header("Location: /-/login"); + die(); +} + global $_PROFILE; $frontCloudburst = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc/fronters.json"), true)["members"]; |