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.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $reason | ID_TEXT | No | No | 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 | No | No | 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 | No | No | Blank (empty string) | N/A | N/A | A more illustrative parameter, which may be anything (e.g. a title) |
| $risk_score | integer | No | No | 10 | N/A | N/A | The default risk score for this hack attack; could be overridden by advanced banning |
Preview
Code (PHP)
/**
* Log a hackattack, and depending on advanced banning settings might also notify the staff and/or exit with an error.
*
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @param integer $risk_score The default risk score for this hack attack; could be overridden by advanced banning
*/
function log_hack_attack_and_exit(string $reason, string $reason_param_a = '', string $reason_param_b = '', int $risk_score = 10)
* Log a hackattack, and depending on advanced banning settings might also notify the staff and/or exit with an error.
*
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @param integer $risk_score The default risk score for this hack attack; could be overridden by advanced banning
*/
function log_hack_attack_and_exit(string $reason, string $reason_param_a = '', string $reason_param_b = '', int $risk_score = 10)
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).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $reason | ID_TEXT | No | No | 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 | No | No | 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 | No | No | Blank (empty string) | N/A | N/A | A more illustrative parameter, which may be anything (e.g. a title) |
| $risk_score | integer | No | No | 10 | N/A | N/A | The default risk score for this hack attack; could be overridden by advanced banning |
Preview
Code (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).
*
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @param integer $risk_score The default risk score for this hack attack; could be overridden by advanced banning
*/
function log_hack_attack_and_exit(string $reason, string $reason_param_a = '', string $reason_param_b = '', int $risk_score = 10)
* 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).
*
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @param integer $risk_score The default risk score for this hack attack; could be overridden by advanced banning
*/
function log_hack_attack_and_exit(string $reason, string $reason_param_a = '', string $reason_param_b = '', int $risk_score = 10)

