X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Flogin.php;h=850f13d1e07621ddadb441b386c1a91d16c35cdc;hp=a1228d4b6c22d64941ce9175c86cf81669a9a145;hb=b86f98e4d616f433403a56bfee1baab637c977bc;hpb=84d108855167644226a82106c1d956db12f17e62 diff --git a/src/login.php b/src/login.php index a1228d4b..850f13d1 100644 --- a/src/login.php +++ b/src/login.php @@ -35,19 +35,12 @@ 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_* */ -/** - * PHP bug. http://bugs.php.net/11643 (warning, spammed bug tracker) and - * http://bugs.php.net/13834 - * SID constant is not destroyed in PHP 4.1.2, 4.2.3 and maybe other - * versions. Produces warning on login page. Bug should be fixed only in 4.3.0 - */ 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(); + @sqsession_is_active(); $_SESSION=array(); sqsession_register($sep, 'session_expired_post'); sqsession_register($sel, 'session_expired_location'); @@ -86,10 +79,11 @@ if($imap_auth_mech == 'login') { } } -do_hook('login_cookie'); +do_hook('login_cookie', $null); $loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : ''); +//FIXME: should be part of the template, not the core! /* Output the javascript onload function. */ $header = "