* This a simple login screen. Some housekeeping is done to clean
* cookies and find language.
*
- * @copyright 1999-2010 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
$password_form_name = 'secretkey';
do_hook('login_cookie', $null);
-$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : '');
+$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? sm_encode_html_special_chars($loginname) : '');
//FIXME: should be part of the template, not the core!
/* Output the javascript onload function. */
$color[8] = '#000000'; /* black Normal text */
}
-displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );
+// if any plugin returns TRUE here, the standard page header will be skipped
+$temp = array($header);
+if (!boolean_hook_function('login_before_page_header', $temp, 1))
+ displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );