force users to log out where they should not be logged in

master
BodgeMaster 2020-03-07 21:12:08 +01:00
parent 14aea7dbe4
commit ddbe70654e
1 changed files with 5 additions and 6 deletions

View File

@ -1,9 +1,8 @@
<?php
if (isset($_SESSION['user_id'])){
$login = true;
} else {
$login = false;
}
if (!isset($login)){
$login=false;
%FORCE_LOGOUT%
}
?>
<ul class="topnav">