Function __global->_check_stopforumspam
Definitions
sources/antispam.php
- Check the stopforumspam service to see if we need to block this user (lower level, doesn't handle result).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $user_ip | string | No | No | required parameter | N/A | N/A | Check this IP address |
| $username | ?string | No | No | Null | N/A | N/A | Check this particular username that has just been supplied (null: none) |
| No | No | Null | N/A | N/A | Check this particular e-mail address that has just been supplied (null: none) |
Returns
- Listed for potential blocking as a ANTISPAM_RESPONSE_* constant, confidence level if attainable (0.0 to 1.0) (else null), array of criteria matched to relevant confidence level for each (0.0 to 1.0)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check the stopforumspam service to see if we need to block this user (lower level, doesn't handle result).
*
* @param string $user_ip Check this IP address
* @param ?string $username Check this particular username that has just been supplied (null: none)
* @param ?EMAIL $email Check this particular e-mail address that has just been supplied (null: none)
* @return array Listed for potential blocking as a ANTISPAM_RESPONSE_* constant, confidence level if attainable (0.0 to 1.0) (else null), array of criteria matched to relevant confidence level for each (0.0 to 1.0)
*/
function _check_stopforumspam(string $user_ip, ?string $username = null, ?string $email = null) : array
* Check the stopforumspam service to see if we need to block this user (lower level, doesn't handle result).
*
* @param string $user_ip Check this IP address
* @param ?string $username Check this particular username that has just been supplied (null: none)
* @param ?EMAIL $email Check this particular e-mail address that has just been supplied (null: none)
* @return array Listed for potential blocking as a ANTISPAM_RESPONSE_* constant, confidence level if attainable (0.0 to 1.0) (else null), array of criteria matched to relevant confidence level for each (0.0 to 1.0)
*/
function _check_stopforumspam(string $user_ip, ?string $username = null, ?string $email = null) : array

