summaryrefslogtreecommitdiffstats
path: root/consts.php
blob: 0f5e44d7fe9971307ada0c6dad0abacbd1a710f9 (plain) (blame)
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();
    }
}