[pLog-svn] r3822 - plugins/trunk
mark at devel.lifetype.net
mark at devel.lifetype.net
Sat Jul 29 03:10:34 GMT 2006
Author: mark
Date: 2006-07-29 03:10:29 +0000 (Sat, 29 Jul 2006)
New Revision: 3822
Modified:
plugins/trunk/bad-behavior-lifetype.php
Log:
Add a new definition BB2_DEFAULT_LOG_TABLE for user to change the table easily.
Modified: plugins/trunk/bad-behavior-lifetype.php
===================================================================
--- plugins/trunk/bad-behavior-lifetype.php 2006-07-28 19:03:02 UTC (rev 3821)
+++ plugins/trunk/bad-behavior-lifetype.php 2006-07-29 03:10:29 UTC (rev 3822)
@@ -23,13 +23,14 @@
// This file is the entry point for Bad Behavior in LifeType.
if (!defined('PLOG_CLASS_PATH')) die('No cheating!');
-
+
// Timer start
$bb2_mtime = explode(" ", microtime());
$bb2_timer_start = $bb2_mtime[1] + $bb2_mtime[0];
define('BB2_CWD', PLOG_CLASS_PATH . "plugins/badbehavior/" );
define('BB2_EMERGENCY_EMAIL', "admin at yourblog.com" );
+ define('BB2_DEFAULT_LOG_TABLE', "bad_behavior" );
// Bad Behavior callback functions.
@@ -95,7 +96,7 @@
include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
$config =& Config::getConfig();
$prefix = Db::getPrefix();
- $logTable = $config->getValue( 'bb2_log_table', 'bad_behavior' );
+ $logTable = $config->getValue( 'bb2_log_table', BB2_DEFAULT_LOG_TABLE );
$displayStats = $config->getValue( 'bb2_display_stats', true );
$strict = $config->getValue( 'bb2_strict', false );
$verbose = $config->getValue( 'bb2_verbose', false );
@@ -112,7 +113,7 @@
function bb2_write_settings($settings) {
include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
$config =& Config::getConfig();
- $config->setValue( 'bb2_log_table', $settings['log_table'] );
+ $config->setValue( 'bb2_log_table', BB2_DEFAULT_LOG_TABLE );
$config->setValue( 'bb2_display_stats', $settings['display_stats'] );
$config->setValue( 'bb2_strict', $settings['strict'] );
$config->setValue( 'bb2_verbose', $settings['verbose'] );
More information about the pLog-svn
mailing list