Ignore:
Timestamp:
Mar 10, 2014, 10:02:46 AM (10 years ago)
Author:
plg
Message:

ability to configure stop_spammers_sfs_threshold (local configuration)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stop_spammers/main.inc.php

    r26522 r27641  
    7575function stop_spammers_check_stopforumspam()
    7676{
     77  global $conf;
     78
     79  if (!isset($conf['stop_spammers_sfs_threshold']))
     80  {
     81    $conf['stop_spammers_sfs_threshold'] = 50;
     82  }
     83 
    7784  $ip = $_SERVER['REMOTE_ADDR'];
    7885
     
    106113  if (isset($result['ip']['confidence']))
    107114  {
    108     if ($result['ip']['confidence'] > 50)
     115    if ($result['ip']['confidence'] > $conf['stop_spammers_sfs_threshold'])
    109116    {
    110117      single_insert(
Note: See TracChangeset for help on using the changeset viewer.