diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:58:00 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-08 20:58:00 +0100 |
commit | db763c929a8bc77da74fbb80f156842dc313295e (patch) | |
tree | cdd5a815536de1a76452b9e56748211fe2422369 /includes | |
parent | 7417e8956d12cd69463f741b905b6c77576501f5 (diff) | |
download | pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.gz pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.bz2 pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.zip |
Updated 3 files (automated)
Diffstat (limited to 'includes')
-rw-r--r-- | includes/init.inc | 6 | ||||
-rw-r--r-- | includes/pages.json | 7 |
2 files changed, 12 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 diff --git a/includes/pages.json b/includes/pages.json index 72a04e8..75dfdd6 100644 --- a/includes/pages.json +++ b/includes/pages.json @@ -76,6 +76,13 @@ "admin": true, "limited": true }, + "schedules": { + "name": { + "en": "Schedules" + }, + "admin": true, + "limited": true + }, "fronting": { "name": { "en": "Front planner [EOL]" |