From: Roland Häder Date: Sat, 20 Dec 2008 11:01:47 +0000 (+0000) Subject: More places rewritten to use incrementConfigEntry() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ea6a32046f1c359405805dda77a48fbc82e6623;p=mailer.git More places rewritten to use incrementConfigEntry() --- diff --git a/doubler.php b/doubler.php index 333467cc25..d002ed7c28 100644 --- a/doubler.php +++ b/doubler.php @@ -159,7 +159,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { // Update usage counter UPDATE_CONFIG("doubler_counter", 1, "+"); - $_CONFIG['doubler_counter']++; + incrementCondigEntry('doubler_counter'); // Set constant define('__DOUBLER_MSG', LOAD_TEMPLATE("doubler_reflink", true, $_POST['userid'])); diff --git a/inc/databases.php b/inc/databases.php index 62ecf0d997..152df9806b 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "690"); +define('CURR_SVN_REVISION', "691"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 3d7f11ca3e..fe37cb6699 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -64,8 +64,7 @@ Query string:
$_CONFIG['db_last_query'] = $sql_string; // Count this query - if (getConfig('sql_count') == null) $_CONFIG['sql_count'] = 0; - $_CONFIG['sql_count']++; + incrementConfigEntry('sql_count'); // Debug output //* DEBUG: */ print "Query=
".$sql_string."
, affected=".SQL_AFFECTEDROWS().", numrows=".SQL_NUMROWS($result)."
\n"; diff --git a/inc/functions.php b/inc/functions.php index d26f28da5f..0ef88afef5 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -233,11 +233,7 @@ function LOAD_TEMPLATE($template, $return=false, $content=array()) { $template = strtolower($template); // Count the template load - if (getConfig('num_templates') == null) { - $_CONFIG['num_templates'] = 1; - } else { - $_CONFIG['num_templates']++; - } + incrementConfigEntry('num_templates'); // Prepare IP number and User Agent $REMOTE_ADDR = GET_REMOTE_ADDR();