function _autoban_get_thresholds in Automatic IP ban (Autoban) 7
Get thresholds list.
Return value
array Thresholds list.
2 calls to _autoban_get_thresholds()
- autoban_analyze_form in ./
autoban.admin.inc - Set threshold for log analize table.
- autoban_form in ./
autoban.admin.inc - Defines the form for autoban rules.
File
- ./
autoban.module, line 638 - Main file for autoban module.
Code
function _autoban_get_thresholds() {
$autoban_thresholds = explode(',', variable_get('autoban_thresholds', '1,2,3,5,10,20,50,100,200,500,1000'));
return $autoban_thresholds ? array_map('trim', $autoban_thresholds) : array(
1,
2,
3,
5,
10,
20,
50,
100,
200,
500,
1000,
);
}