diff options
author | Malf Furious <m@lfurio.us> | 2018-09-23 22:26:57 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-23 22:26:57 -0400 |
commit | dd499f3b42e760ed26b0be180274422ea3941158 (patch) | |
tree | fafde13308204e1edf3e55fcd45f05580b4aa78e /app/index.php | |
parent | fd58becfca433f125df70531f9bece88c8f14b71 (diff) | |
download | scrott-dd499f3b42e760ed26b0be180274422ea3941158.tar.gz scrott-dd499f3b42e760ed26b0be180274422ea3941158.zip |
admin: Add empty admin panel
Diffstat (limited to 'app/index.php')
-rw-r--r-- | app/index.php | 9 |
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"; |