summaryrefslogtreecommitdiff
path: root/pages/api/emergency.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/emergency.php')
-rw-r--r--pages/api/emergency.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/api/emergency.php b/pages/api/emergency.php
index a8a6e20..e682598 100644
--- a/pages/api/emergency.php
+++ b/pages/api/emergency.php
@@ -1,7 +1,6 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE;
-if ($_PROFILE["login"] === "cloudburst") die();
if (!$isLoggedIn && !$isLowerLoggedIn) {
header("Location: /-/login");
@@ -15,6 +14,7 @@ $channels = [];
if (isset($_GET["raindrops"])) $channels[] = "emergency-raindrops";
if (isset($_GET["moonglow"])) $channels[] = "emergency-moonglow";
+if (isset($_GET["hailstorm"])) $channels[] = "emergency-hailstorm";
if (isset($_GET[$GLOBALS["ColdHazeApp"]["other"]["slug"]])) $channels[] = "emergency";
$context = stream_context_create([