aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_register.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-11-20 04:15:44 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-11-20 04:15:44 -0500
commit64d62038cd8e2e69eb101c5256ea458cff98ae10 (patch)
tree604188118275a8519a0e2eeea051e8086e30271d /phpBB/includes/ucp/ucp_register.php
parent615570707109d139b1c85643bee6bf7ad200850b (diff)
downloadforums-64d62038cd8e2e69eb101c5256ea458cff98ae10.tar
forums-64d62038cd8e2e69eb101c5256ea458cff98ae10.tar.gz
forums-64d62038cd8e2e69eb101c5256ea458cff98ae10.tar.bz2
forums-64d62038cd8e2e69eb101c5256ea458cff98ae10.tar.xz
forums-64d62038cd8e2e69eb101c5256ea458cff98ae10.zip
[ticket/10446] DRY X-AntiAbuse header addition.
PHPBB3-10446
Diffstat (limited to 'phpBB/includes/ucp/ucp_register.php')
-rw-r--r--phpBB/includes/ucp/ucp_register.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 13b9945851..e3e719d63c 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -155,8 +155,8 @@ class ucp_register
$this->tpl_name = 'ucp_agreement';
return;
}
-
-
+
+
// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
if ($config['enable_confirm'])
{
@@ -366,10 +366,7 @@ class ucp_register
$messenger->to($data['email'], $data['username']);
- $messenger->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
- $messenger->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
- $messenger->headers('X-AntiAbuse: Username - ' . $user->data['username']);
- $messenger->headers('X-AntiAbuse: User IP - ' . $user->ip);
+ $messenger->anti_abuse_headers();
$messenger->assign_vars(array(
'WELCOME_MSG' => htmlspecialchars_decode(sprintf($user->lang['WELCOME_SUBJECT'], $config['sitename'])),