From db763c929a8bc77da74fbb80f156842dc313295e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Wed, 8 Nov 2023 20:58:00 +0100 Subject: Updated 3 files (automated) --- includes/init.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes/init.inc') 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 -- cgit