1 2 3 4 5 6 7 8 9 10 11 12 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(); } }