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(); } }