Made it so logged in people cant log in

This commit is contained in:
Richard Mikloš 2024-01-26 17:45:38 +01:00
parent 8accaa58f4
commit 0397365958

@ -57,6 +57,15 @@ if(empty($page)){
}
}
if($page == 'login') {
if(isset($_SESSION["user_id"])){
$page = 'index';
}
else{
$page = 'login';
}
}
// Check if the user is logged in
if (isset($_SESSION['user_id'])) {
if ($_SESSION['user_isAdmin'] == 1) {