summaryrefslogtreecommitdiff
path: root/includes/init.inc
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-08 20:58:00 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-08 20:58:00 +0100
commitdb763c929a8bc77da74fbb80f156842dc313295e (patch)
treecdd5a815536de1a76452b9e56748211fe2422369 /includes/init.inc
parent7417e8956d12cd69463f741b905b6c77576501f5 (diff)
downloadpluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.gz
pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.bz2
pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.zip
Updated 3 files (automated)
Diffstat (limited to 'includes/init.inc')
-rw-r--r--includes/init.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/init.inc b/includes/init.inc
index ba523aa..8773ba4 100644
--- a/includes/init.inc
+++ b/includes/init.inc
@@ -22,6 +22,10 @@ if (in_array($toplevel, array_keys($pages))) {
$readOnly = true;
}
+ if (!isset($emergencyHeader)) {
+ $emergencyHeader = false;
+ }
+
if ($pages[$toplevel]["limited"]) {
if ((!$isLoggedIn && !$isLowerLoggedIn) || ($readOnly && !$emergencyHeader)) header("Location: /-/login/?return=/-/$toplevel") and die();
} else {
@@ -30,4 +34,4 @@ if (in_array($toplevel, array_keys($pages))) {
}
} else {
$title = $toplevel;
-}
+} \ No newline at end of file