aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-05-31 07:56:05 +0200
committerMarc Alexander <admin@m-a-styles.de>2018-05-31 09:31:33 +0200
commitc6a35237a23d8d1e2ca7af72c5f31a42cad6df41 (patch)
tree383f4b9157c433006d01c73d50f01a837e6aa5ca /phpBB/includes
parent929bd2ac3c3abbec6c75100834725770f5eb0b44 (diff)
downloadforums-c6a35237a23d8d1e2ca7af72c5f31a42cad6df41.tar
forums-c6a35237a23d8d1e2ca7af72c5f31a42cad6df41.tar.gz
forums-c6a35237a23d8d1e2ca7af72c5f31a42cad6df41.tar.bz2
forums-c6a35237a23d8d1e2ca7af72c5f31a42cad6df41.tar.xz
forums-c6a35237a23d8d1e2ca7af72c5f31a42cad6df41.zip
[ticket/15676] Display privacy notice in footer & allow overriding U_PRIVACY
PHPBB3-15676
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 4aae84705b..aeba5b74c0 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2463,7 +2463,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
- $template->assign_vars(array(
+ $login_box_template_data = array(
'LOGIN_ERROR' => $err,
'LOGIN_EXPLAIN' => $l_explain,
@@ -2480,7 +2480,29 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
'USERNAME_CREDENTIAL' => 'username',
'PASSWORD_CREDENTIAL' => ($admin) ? 'password_' . $credential : 'password',
- ));
+ );
+
+ /**
+ * Event to add/modify login box template data
+ *
+ * @event core.login_box_modify_template_data
+ * @var int admin Flag whether user is admin
+ * @var string username User name
+ * @var int autologin Flag whether autologin is enabled
+ * @var string redirect Redirect URL
+ * @var array login_box_template_data Array with the login box template data
+ * @since 3.2.3-RC2
+ */
+ $vars = array(
+ 'admin',
+ 'username',
+ 'autologin',
+ 'redirect',
+ 'login_box_template_data',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.login_box_modify_template_data', compact($vars)));
+
+ $template->assign_vars($login_box_template_data);
page_header($user->lang['LOGIN']);