summaryrefslogtreecommitdiff
path: root/includes
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
parent7417e8956d12cd69463f741b905b6c77576501f5 (diff)
downloadpluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.gz
pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.tar.bz2
pluralconnect-db763c929a8bc77da74fbb80f156842dc313295e.zip
Updated 3 files (automated)
Diffstat (limited to 'includes')
-rw-r--r--includes/init.inc6
-rw-r--r--includes/pages.json7
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]"