Function __global->log_hack_attack_and_exit

Definitions

sources/global2.php

  • Log a hackattack, and depending on advanced banning settings might also notify the staff and/or exit with an error.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$reason ID_TEXT required parameter N/A N/A The reason for the hack-attack. This has to be a language string codename
$reason_param_a SHORT_TEXT Blank (empty string) N/A N/A A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
$reason_param_b SHORT_TEXT Blank (empty string) N/A N/A A more illustrative parameter, which may be anything (e.g. a title)
$risk_score integer 10 N/A N/A The default risk score for this hack attack; could be overridden by advanced banning

sources/minikernel.php

  • Log a hackattack, then displays an error message. It also attempts to send an e-mail to the staff alerting them of the hackattack.(In minikernel, this simply bails out with a generic message).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$reason ID_TEXT required parameter N/A N/A The reason for the hack-attack. This has to be a language string codename
$reason_param_a SHORT_TEXT Blank (empty string) N/A N/A A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
$reason_param_b SHORT_TEXT Blank (empty string) N/A N/A A more illustrative parameter, which may be anything (e.g. a title)
$risk integer 10 N/A N/A The default risk score for this hack attack; could be overridden by advanced banning