summaryrefslogtreecommitdiff
path: root/includes/init.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-10-10 20:51:39 +0200
committerMinteck <contact@minteck.org>2022-10-10 20:51:39 +0200
commit108525534c28013cfe1897c30e4565f9893f3766 (patch)
treedd3e5132971f96ab5f05e7f3f8f6dbbf379a19bd /includes/init.php
parent2162eaa06f7e4764eb3dcfe130ec2c711d0c62ab (diff)
downloadpluralconnect-108525534c28013cfe1897c30e4565f9893f3766.tar.gz
pluralconnect-108525534c28013cfe1897c30e4565f9893f3766.tar.bz2
pluralconnect-108525534c28013cfe1897c30e4565f9893f3766.zip
Update
Diffstat (limited to 'includes/init.php')
-rw-r--r--includes/init.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/includes/init.php b/includes/init.php
deleted file mode 100644
index 71d7def..0000000
--- a/includes/init.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-global $title;
-global $toplevel;
-global $pages;
-
-$pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true);
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn;
-
-if (in_array($toplevel, array_keys($pages))) {
- $title = $pages[$toplevel]["name"];
-
- if ($pages[$toplevel]["admin"]) {
- if (!$isLoggedIn) header("Location: /-/login/?return=$toplevel") and die();
- }
-} else {
- $title = $toplevel;
-} \ No newline at end of file