From 87ffa36c1bfa49259e48d94f09e64f83632f0071 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Thu, 13 Apr 2023 15:47:15 +0200 Subject: v1.0.0 --- consts.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 consts.php (limited to 'consts.php') diff --git a/consts.php b/consts.php new file mode 100644 index 0000000..0f5e44d --- /dev/null +++ b/consts.php @@ -0,0 +1,13 @@ + 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(); + } +} -- cgit v1.3.1