[geeklog-hg] geeklog: Other fixes for changeset a1d813d30d1b

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Feb 1 21:38:19 EST 2014


changeset 9464:7e462a853874
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/7e462a853874
user: Kenji ITO <mystralkk at gmail.com>
date: Sun Feb 02 11:36:49 2014 +0900
description:
Other fixes for changeset a1d813d30d1b

diffstat:

 plugins/spamx/SFSbase.class.php    |  4 ++--
 plugins/spamx/install_defaults.php |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 1104eee5695b -r 7e462a853874 plugins/spamx/SFSbase.class.php
--- a/plugins/spamx/SFSbase.class.php	Sat Feb 01 17:47:28 2014 -0500
+++ b/plugins/spamx/SFSbase.class.php	Sun Feb 02 11:36:49 2014 +0900
@@ -47,7 +47,7 @@
     */
     function CheckForSpam ($post)
     {
-        global $_SPX_CONF, $REMOTE_ADDR;
+        global $_SPX_CONF;
         
         if (!isset($_SPX_CONF['sfs_enabled'])) {
             $_SPX_CONF['sfs_enabled'] = false;
@@ -66,7 +66,7 @@
         }        
 
         
-        $ip = $REMOTE_ADDR;
+        $ip = $_SERVER['REMOTE_ADDR'];
         $query = "http://www.stopforumspam.com/api?f=serial&ip=$ip";
 
         require_once 'HTTP/Request.php';
diff -r 1104eee5695b -r 7e462a853874 plugins/spamx/install_defaults.php
--- a/plugins/spamx/install_defaults.php	Sat Feb 01 17:47:28 2014 -0500
+++ b/plugins/spamx/install_defaults.php	Sun Feb 02 11:36:49 2014 +0900
@@ -75,7 +75,7 @@
 $_SPX_DEFAULT['sfs_enabled'] = false;
 
 // The threshold for the Stop Forum Spam confidence score (percentage) which is a reasonably good indicator that the field under test, would result in unwanted activity. 
-$_SPX_CONF['sfs_confidence'] = 25;
+$_SPX_DEFAULT['sfs_confidence'] = 25;
 
 // If the module Spam Number of Links is enabled
 $_SPX_DEFAULT['snl_enabled'] = false;



More information about the geeklog-cvs mailing list