$dbnow, 'occurrences' => $blocked['occurrences']+1), array('id' => $blocked['id']) ); return false; } // file_put_contents('/tmp/sfs.log', "==== ".date('c')." ".__FUNCTION__.' : '.$ip."\n", FILE_APPEND); include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); $sfs_url = 'http://www.stopforumspam.com/api?ip='.$ip.'&f=serial&confidence'; fetchRemote($sfs_url, $result); $result = unserialize($result); if (isset($result['ip']['confidence'])) { if ($result['ip']['confidence'] > $conf['stop_spammers_sfs_threshold']) { single_insert( STOP_SPAMMERS_TABLE, array( 'ip' => $ip, 'blocker' => 'stopforumspam', 'since' => $dbnow, 'last_update' => $dbnow, 'occurrences' => 1, ) ); return false; } } return true; } ?>