summaryrefslogtreecommitdiff
path: root/pages/api/wakeup-real.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/wakeup-real.php')
-rw-r--r--pages/api/wakeup-real.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/api/wakeup-real.php b/pages/api/wakeup-real.php
index 0467f27..fd113ba 100644
--- a/pages/api/wakeup-real.php
+++ b/pages/api/wakeup-real.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"];