X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Flogin.php;h=ef769f85585b3f3e1c71f58e3e75ff5c0636142d;hp=88bb4a65e7ecc4092fb12b07199778dc1ff0ff36;hb=e208b883b638d3e2aae1db7602d281825293cdd1;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d;ds=sidebyside diff --git a/src/login.php b/src/login.php index 88bb4a65..ef769f85 100644 --- a/src/login.php +++ b/src/login.php @@ -12,15 +12,14 @@ * @package squirrelmail */ -// reduces the files included in init.php -$sInitLocation = 'login'; +/** This is the login page */ +define('PAGE_NAME', 'login'); /** * Include the SquirrelMail initialization file. */ require('../include/init.php'); - /* SquirrelMail required files. */ require_once(SM_PATH . 'functions/imap_general.php'); require_once(SM_PATH . 'functions/forms.php'); @@ -31,25 +30,6 @@ require_once(SM_PATH . 'functions/forms.php'); */ set_up_language($squirrelmail_language, TRUE, TRUE); -/** - * In case the last session was not terminated properly, make sure - * we get a new one, but make sure we preserve session_expired_* - */ -if ( !empty($_SESSION['session_expired_post']) && !empty($_SESSION['session_expired_location']) ) { - $sep = $_SESSION['session_expired_post']; - $sel = $_SESSION['session_expired_location']; - - sqsession_destroy(); - @sqsession_is_active(); - $_SESSION=array(); - sqsession_register($sep, 'session_expired_post'); - sqsession_register($sel, 'session_expired_location'); -} else { - sqsession_destroy(); - @sqsession_is_active(); - $_SESSION=array(); -} - /** * This detects if the IMAP server has logins disabled, and if so, * squelches the display of the login form and puts up a message @@ -87,13 +67,15 @@ $loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($ /* Output the javascript onload function. */ $header = "