forked from science-ation/science-ation
Allow to logout even if the session has already timed out
This commit is contained in:
parent
fc394ba683
commit
0854c50f4e
@ -120,11 +120,11 @@
|
||||
break;
|
||||
case 'student':
|
||||
default:
|
||||
exit;
|
||||
if($_GET['action']!="logout")
|
||||
exit;
|
||||
$reg_open = 'closed';
|
||||
break;
|
||||
}
|
||||
|
||||
if($_POST['action']=="login" )
|
||||
{
|
||||
if($_POST['pass'] && $_POST['user'])
|
||||
@ -259,7 +259,9 @@
|
||||
|
||||
message_push(notice(i18n("You have been successfully logged out")));
|
||||
if($type != '')
|
||||
header("location: user_login.php?type=$type$redirect_url");
|
||||
header("Location: user_login.php?type={$type}{$redirect_url}");
|
||||
else
|
||||
header("Location: user_login.php{$redirect_url}");
|
||||
exit;
|
||||
}
|
||||
else if($_GET['action']=="recover")
|
||||
|
Loading…
x
Reference in New Issue
Block a user