Made it so logged in people cant log in
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user