summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php
index 1b9b15a..13b6779 100644
--- a/app/index.php
+++ b/app/index.php
@@ -60,6 +60,15 @@ function main(array $argv) : void
location("/");
break;
+ case "admin":
+ /* check permissions */
+ if ($user->admin == 0)
+ location("/");
+
+ setPageName("<i>Administration</i>");
+ require "view/administration.php";
+ break;
+
case "deleteaccount":
setPageName("<i>Leaving Scrott</i>");
require "view/deleteaccount.php";