Allow to logout even if the session has already timed out

This commit is contained in:
james 2009-11-30 20:15:00 +00:00
parent fc394ba683
commit 0854c50f4e

View File

@ -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")