fixed "force user to logout"
parent
8e3f669e85
commit
9a9aac0148
|
@ -2,6 +2,11 @@
|
||||||
session_start();
|
session_start();
|
||||||
%PLEAZE_NO_CACHE%
|
%PLEAZE_NO_CACHE%
|
||||||
$navbar = "login";
|
$navbar = "login";
|
||||||
|
if (isset($_SESSION['user_id'])){
|
||||||
|
$login = true;
|
||||||
|
} else {
|
||||||
|
$login = false;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -10,6 +15,10 @@ $navbar = "login";
|
||||||
%STYLESHEET%
|
%STYLESHEET%
|
||||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<?php
|
||||||
|
if($login){
|
||||||
|
echo "<meta http-equiv='refresh' content='0;%CONTENT_DIR%/userhome' />"
|
||||||
|
}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
%NAVBAR%
|
%NAVBAR%
|
||||||
|
|
Loading…
Reference in New Issue