/**
* login.php -- simple login screen
*
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* This a simple login screen. Some housekeeping is done to clean
* cookies and find language.
*
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*/
*/
sqsession_destroy();
-
+/**
+ * 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
+ */
+@sqsession_start();
header('Pragma: no-cache');
/**
/* Output the javascript onload function. */
-$header = "<script language=\"JavaScript\" type=\"text/javascript\">\n" .
+$header = "<script type=\"text/javascript\">\n" .
"<!--\n".
" function squirrelmail_loginpage_onload() {\n".
" var textElements = 0;\n".
$color[8] = '#000000'; /* black Normal text */
}
-displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );
+displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE, FALSE, FALSE );
echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\" onLoad=\"squirrelmail_loginpage_onload()\">" .
"\n" . '<form action="redirect.php" method="post" onSubmit="document.forms[0].js_autodetect_results.value=\'' . SMPREF_JS_ON .'\';">' . "\n";
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- '<center>'.
+ '<div style="text-align: center;">'.
( isset($org_logo) && $org_logo
? '<img src="' . $org_logo . '" alt="' .
sprintf(_("%s Logo"), $org_name) .'"' . $width_and_height .
) .
html_tag( 'tr',
html_tag( 'td',
- '<center>'. addSubmit(_("Login")) .'</center>',
+ '<div style="text-align: center;">'. addSubmit(_("Login")) .'</div>',
'left' )
),
- '', $color[4], 'border="0" width="350"' ) . '</center>',
+ '', $color[4], 'border="0" width="350" align="center"' ) . '</div>',
'center' )
) ,
'', $color[4], 'border="0" cellspacing="0" cellpadding="0" width="100%"' );