summaryrefslogtreecommitdiff
path: root/pages/api/wakeup.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-22 09:08:33 +0100
committerRaindropsSys <contact@minteck.org>2023-03-22 09:08:33 +0100
commit6298bb850af8101ae90db6c1c16efb92109c60cf (patch)
treeec361f5ac33d45ace8e4e786f26e28b6d4f10b1f /pages/api/wakeup.php
parent88adbb0f4cc16791e2479ec4e669ffe03e019881 (diff)
downloadpluralconnect-6298bb850af8101ae90db6c1c16efb92109c60cf.tar.gz
pluralconnect-6298bb850af8101ae90db6c1c16efb92109c60cf.tar.bz2
pluralconnect-6298bb850af8101ae90db6c1c16efb92109c60cf.zip
Updated 6 files (automated)
Diffstat (limited to 'pages/api/wakeup.php')
-rw-r--r--pages/api/wakeup.php7
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"];