From 0b62ee37e4c536dec7324966ee8d4376286f4786 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 5 Oct 2010 11:43:54 +0000 Subject: [PATCH] Configuration entry 'ctracker_debug' renamed to 'ctracker_debug_enabled' to make clear this is a boolean config --- config/db_config.php.dist | 16 ++++++++-------- libs/lib_general.php | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/db_config.php.dist b/config/db_config.php.dist index e3c93b3..f17b2ca 100644 --- a/config/db_config.php.dist +++ b/config/db_config.php.dist @@ -22,20 +22,20 @@ * along with this program. If not, see . */ -// Host name -$GLOBALS['ctracker_host'] = 'localhost'; +// Host name (e.g. localhost) +$GLOBALS['ctracker_host'] = ''; -// Database name -$GLOBALS['ctracker_dbname'] = 'ctracker'; +// Database name (e.g. ctracker) +$GLOBALS['ctracker_dbname'] = ''; -// User -$GLOBALS['ctracker_user'] = 'ctracker'; +// User (e.g. ctracker) +$GLOBALS['ctracker_user'] = ''; -// Password +// Password (e.g. secret) $GLOBALS['ctracker_password'] = ''; // Debugging should be disabled by default -// $GLOBALS['ctracker_debug'] = true; +$GLOBALS['ctracker_debug_enabled'] = false; // Email recipient for all emails $GLOBALS['ctracker_email'] = 'you@domain.invalid'; diff --git a/libs/lib_general.php b/libs/lib_general.php index 0738f41..6e7fc62 100644 --- a/libs/lib_general.php +++ b/libs/lib_general.php @@ -73,10 +73,10 @@ if (!function_exists('implode_secure')) { } // END - function } // END - if -// Getter for ctracker_debug +// Getter for ctracker_debug_enabled function isCrackerTrackerDebug () { // Is it set? - return ((isset($GLOBALS['ctracker_debug'])) && ($GLOBALS['ctracker_debug'] === true)); + return ((isset($GLOBALS['ctracker_debug_enabled'])) && ($GLOBALS['ctracker_debug_enabled'] === true)); } // Determines the real remote address -- 2.39.5