// 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']));
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);
$_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=<pre>".$sql_string."</pre>, affected=<b>".SQL_AFFECTEDROWS()."</b>, numrows=<b>".SQL_NUMROWS($result)."</b><br />\n";
$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();