[pLog-svn] r7174 - plog/branches/lifetype-1.2/plugins/badbehavior

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Feb 28 01:05:46 EST 2012


Author: jondaley
Date: 2012-02-28 01:05:46 -0500 (Tue, 28 Feb 2012)
New Revision: 7174

Modified:
   plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php
   plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
Log:
updated configuration options to avoid php warnings

Modified: plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php
===================================================================
--- plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php	2012-02-22 05:11:29 UTC (rev 7173)
+++ plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php	2012-02-28 06:05:46 UTC (rev 7174)
@@ -105,6 +105,9 @@
 		$httpbl_key = $config->getValue( 'bb2_httpbl_key', '' );
 		$httpbl_threat = $config->getValue( 'bb2_httpbl_threat', '25' );
 		$httpbl_maxage = $config->getValue( 'bb2_httpbl_maxage', '30' );
+		$offsite_forms = $config->getValue( 'bb2_offsite_forms', false );
+		$reverse_proxy = $config->getValue( 'bb2_reverse_proxy', false );
+		$reverse_proxy_header = $config->getValue( 'bb2_reverse_proxy_header', 'X-Forwarded-For' );
 		
 		return array('log_table' => $prefix . $logTable, 
 					 'display_stats' => $displayStats,
@@ -114,6 +117,9 @@
 					 'httpbl_key' => $httpbl_key,
 					 'httpbl_threat' => $httpbl_threat,
 					 'httpbl_maxage' => $httpbl_maxage,
+                     'offsite_forms' => $offsite_forms,
+                     'reverse_proxy' => $reverse_proxy,
+                     'reverse_proxy_header' => $reverse_proxy_header,
 					 'is_installed' => $isInstalled );
 	}
 	
@@ -128,6 +134,9 @@
 		$config->setValue( 'bb2_httpbl_key', $settings['httpbl_key'] );
 		$config->setValue( 'bb2_httpbl_threat', $settings['httpbl_threat'] );
 		$config->setValue( 'bb2_httpbl_maxage', $settings['httpbl_maxage'] );
+		$config->setValue( 'bb2_offsite_forms', $settings['offsite_forms'] );
+		$config->setValue( 'bb2_reverse_proxy', $settings['reverse_proxy'] );
+		$config->setValue( 'bb2_reverse_proxy_header', $settings['reverse_proxy_header'] );
 		$config->setValue( 'bb2_installed', $settings['is_installed'] );
 		$config->save();
 	}

Modified: plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
===================================================================
--- plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2012-02-22 05:11:29 UTC (rev 7173)
+++ plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2012-02-28 06:05:46 UTC (rev 7174)
@@ -20,7 +20,7 @@
 			$this->desc = "Bad Behavior for LifeType";
 			$this->author = "The Lifetype Project";
 			$this->db =& Db::getDb();
-            $this->version = "20120222";
+            $this->version = "20120228";
 		
 			$config =& Config::getConfig();
 			$prefix = Db::getPrefix();



More information about the pLog-svn mailing list