mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10446] DRY X-AntiAbuse header addition.
PHPBB3-10446
This commit is contained in:
@@ -162,6 +162,18 @@ class messenger
|
||||
$this->extra_headers[] = trim($headers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds X-AntiAbuse headers
|
||||
*/
|
||||
function anti_abuse_headers($headers)
|
||||
{
|
||||
global $config, $user;
|
||||
$this->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
|
||||
$this->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
|
||||
$this->headers('X-AntiAbuse: Username - ' . $user->data['username']);
|
||||
$this->headers('X-AntiAbuse: User IP - ' . $user->ip);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the email priority
|
||||
*/
|
||||
|
Reference in New Issue
Block a user