Function __global->syndicate_spammer_report

Definitions

sources/failure_spammers.php

  • Syndicate a spammer report out to wherever we can.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ip_addr IP No No required parameter N/A N/A IP address to report
$username ID_TEXT No No required parameter N/A N/A Username address to report
$email EMAIL No No required parameter N/A N/A Email address to report
$reason string No No required parameter N/A N/A The reason for the report (blank: none)
$trigger_error boolean No No False N/A N/A Whether to emit a software error, on error. Should not be 'true' for automatic spammer reports, as the spammer should not see the submission process in action!

Returns

  • Whether it was successful
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Syndicate a spammer report out to wherever we can.
 *
 * @param  IP $ip_addr IP address to report
 * @param  ID_TEXT $username Username address to report
 * @param  EMAIL $email Email address to report
 * @param  string $reason The reason for the report (blank: none)
 * @param  boolean $trigger_error Whether to emit a software error, on error. Should not be 'true' for automatic spammer reports, as the spammer should not see the submission process in action!
 * @return boolean Whether it was successful
 */

function syndicate_spammer_report(string $ip_addr, string $username, string $email, string $reason, bool $trigger_error = false) : bool