summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-23 22:26:57 -0400
committerMalf Furious <m@lfurio.us>2018-09-23 22:26:57 -0400
commitdd499f3b42e760ed26b0be180274422ea3941158 (patch)
treefafde13308204e1edf3e55fcd45f05580b4aa78e /app/index.php
parentfd58becfca433f125df70531f9bece88c8f14b71 (diff)
downloadscrott-dd499f3b42e760ed26b0be180274422ea3941158.tar.gz
scrott-dd499f3b42e760ed26b0be180274422ea3941158.zip
admin: Add empty admin panel
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";