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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Jun 18 13:46:27 EDT 2008


Author: jondaley
Date: 2008-06-18 13:46:27 -0400 (Wed, 18 Jun 2008)
New Revision: 6574

Modified:
   plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php
   plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
Log:
added new logging setting for 2.0.16, and default to true

Modified: plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php
===================================================================
--- plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php	2008-06-18 17:26:25 UTC (rev 6573)
+++ plog/branches/lifetype-1.2/plugins/badbehavior/index.inc.php	2008-06-18 17:46:27 UTC (rev 6574)
@@ -101,11 +101,13 @@
 		$strict = $config->getValue( 'bb2_strict', false );
 		$verbose = $config->getValue( 'bb2_verbose', false );
 		$isInstalled = $config->getValue( 'bb2_installed', false );
+		$logging = $config->getValue( 'bb2_logging', true );
 		
 		return array('log_table' => $prefix . $logTable, 
 					 'display_stats' => $displayStats,
 					 'strict' => $strict,
 					 'verbose' => $verbose,
+					 'logging' => $logging,
 					 'is_installed' => $isInstalled );
 	}
 	
@@ -124,7 +126,7 @@
 	// installation
 	function bb2_install() {
 		$settings = bb2_read_settings();
-		if( $settings['is_installed'] == false )
+        if( $settings['is_installed'] == false && $settings['logging'] )
 		{
 			bb2_db_query(bb2_table_structure($settings['log_table']));
 			$settings['is_installed'] = true;

Modified: plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
===================================================================
--- plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2008-06-18 17:26:25 UTC (rev 6573)
+++ plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2008-06-18 17:46:27 UTC (rev 6574)
@@ -20,7 +20,7 @@
 			$this->desc = "Bad Behavior for LifeType";
 			$this->author = "The Lifetype Project";
 			$this->db =& Db::getDb();
-            		$this->version = "20080228";
+            $this->version = "20080618";
 		
 			$config =& Config::getConfig();
 			$prefix = Db::getPrefix();



More information about the pLog-svn mailing list