projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use PDO for database access if available (adds PHP 7 compatibility)
[squirrelmail.git]
/
src
/
login.php
diff --git
a/src/login.php
b/src/login.php
index 9a7a68149981284530d7eb40e34f12c82435c8bb..5bb549fcdfedfe1eaba481d73f0768d3b6bd6bb1 100644
(file)
--- a/
src/login.php
+++ b/
src/login.php
@@
-6,7
+6,7
@@
* This a simple login screen. Some housekeeping is done to clean
* cookies and find language.
*
* This a simple login screen. Some housekeeping is done to clean
* cookies and find language.
*
- * @copyright 1999-201
2
The SquirrelMail Project Team
+ * @copyright 1999-201
6
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@
-63,7
+63,7
@@
$username_form_name = 'login_username';
$password_form_name = 'secretkey';
do_hook('login_cookie', $null);
$password_form_name = 'secretkey';
do_hook('login_cookie', $null);
-$loginname_value = (sqGetGlobalVar('loginname', $loginname) ?
htmlspecial
chars($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. */
//FIXME: should be part of the template, not the core!
/* Output the javascript onload function. */
@@
-100,7
+100,10
@@
if (! isset($color) || ! is_array($color)) {
$color[8] = '#000000'; /* black Normal text */
}
$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 );