diff options
Diffstat (limited to 'consts.php')
| -rw-r--r-- | consts.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/consts.php b/consts.php new file mode 100644 index 0000000..0f5e44d --- /dev/null +++ b/consts.php @@ -0,0 +1,13 @@ +<?php +$UserType = [ + "admin" => 1, 1 => "admin", + "user" => 2, 2 => "user" +]; +function checkLoggedIn() +{ + if ($_SESSION["logged"] !== true) { + header("HTTP/1.0 403 Teapot not for you :'("); + header("Location: index.php"); + exit(); + } +} |
