[geeklog-cvs] geeklog-1.3/plugins/spamx BlackList.Examine.class.php,1.1,1.2 MTBlackList.Examine.class.php,1.1,1.2

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Oct 2 09:35:25 EDT 2004


Update of /var/cvs/geeklog-1.3/plugins/spamx
In directory www:/tmp/cvs-serv1247/plugins/spamx

Modified Files:
	BlackList.Examine.class.php MTBlackList.Examine.class.php 
Log Message:
Replaced $REMOTE_ADDR with $HTTP_SERVER_VARS['REMOTE_ADDR']


Index: BlackList.Examine.class.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/spamx/BlackList.Examine.class.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** BlackList.Examine.class.php	3 Sep 2004 19:59:55 -0000	1.1
--- BlackList.Examine.class.php	2 Oct 2004 13:35:23 -0000	1.2
***************
*** 37,41 ****
  	function execute()
  	{
! 		global $_CONF, $result, $comment, $_USER, $_TABLES, $REMOTE_ADDR, $LANG_SX00;
  		
  		/**
--- 37,41 ----
  	function execute()
  	{
! 		global $_CONF, $result, $comment, $_USER, $_TABLES, $LANG_SX00, $HTTP_SERVER_VARS;
  		
  		/**
***************
*** 52,56 ****
  			if (preg_match("#$val#",$comment['comment'])) {
  				$ans=1;  // quit on first positive match
! 				SPAMX_log($LANG_SX00['foundspam'] . $val .$LANG_SX00['foundspam2'] . $_USER['uid'] . $LANG_SX00['foundspam3'] . $REMOTE_ADDR);
  				break;
  			}
--- 52,56 ----
  			if (preg_match("#$val#",$comment['comment'])) {
  				$ans=1;  // quit on first positive match
! 				SPAMX_log($LANG_SX00['foundspam'] . $val .$LANG_SX00['foundspam2'] . $_USER['uid'] . $LANG_SX00['foundspam3'] . $HTTP_SERVER_VARS['REMOTE_ADDR']);
  				break;
  			}
***************
*** 60,62 ****
  }
  
! ?>
\ No newline at end of file
--- 60,62 ----
  }
  
! ?>

Index: MTBlackList.Examine.class.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/spamx/MTBlackList.Examine.class.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** MTBlackList.Examine.class.php	3 Sep 2004 19:59:55 -0000	1.1
--- MTBlackList.Examine.class.php	2 Oct 2004 13:35:23 -0000	1.2
***************
*** 40,44 ****
  	function execute()
  	{
! 		global $_CONF, $comment, $_USER, $_TABLES, $REMOTE_ADDR, $LANG_SX00;
  		
  		/**
--- 40,44 ----
  	function execute()
  	{
! 		global $_CONF, $comment, $_USER, $_TABLES, $LANG_SX00, $HTTP_SERVER_VARS;
  		
  		/**
***************
*** 55,59 ****
  			if (@preg_match("#$val#",$comment['comment'])) {
  				$ans=1;  // quit on first positive match
! 				SPAMX_log($LANG_SX00['fsc'] . $val . $LANG_SX00['fsc1'] . $_USER['uid'] . $LANG_SX00['fsc2'] . $REMOTE_ADDR);
  				break;
  			}
--- 55,59 ----
  			if (@preg_match("#$val#",$comment['comment'])) {
  				$ans=1;  // quit on first positive match
! 				SPAMX_log($LANG_SX00['fsc'] . $val . $LANG_SX00['fsc1'] . $_USER['uid'] . $LANG_SX00['fsc2'] . $HTTP_SERVER_VARS['REMOTE_ADDR']);
  				break;
  			}
***************
*** 63,65 ****
  }
  
! ?>
\ No newline at end of file
--- 63,65 ----
  }
  
! ?>




More information about the geeklog-cvs mailing list