// CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!)
define('DEBUG_MODE', false);
+// CFG: DEBUG-MAIL (turn this on if you need to debug mails, only affects if DEBUG_MODE is true)
+//define('DEBUG_MAIL', true);
+
+// CFG: DEBUG-RESET (comment in to test daily reset, comment out to not test)
+//define('DEBUG_RESET', true);
+
+// CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test)
+//define('DEBUG_MONTHLY', true);
+
+// CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test)
+//define('DEBUG_WEEKLY', true);
+
// When we are not installing
if (!defined('mxchange_installing')) define('mxchange_installing', false);
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "467");
+define('CURR_SVN_REVISION', "468");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Get more daily reset scripts
$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/reset/", "reset_");
+ // Update database
+ if (!defined('DEBUG_RESET')) UPDATE_CONFIG("last_update", time());
+
// Create current week mark
$currWeek = date("W", time());
$INC_POOL = array_merge($INC_POOL, GET_DIR_AS_ARRAY(PATH."inc/weekly/", "weekly_"));
// Update config
- UPDATE_CONFIG("last_week", $currWeek);
+ if (!defined('DEBUG_WEEKLY')) UPDATE_CONFIG("last_week", $currWeek);
} // END - if
// Create current month mark
$INC_POOL = array_merge($INC_POOL, GET_DIR_AS_ARRAY(PATH."inc/monthly/", "monthly_"));
// Update config
- UPDATE_CONFIG("last_month", $currMonth);
+ if (!defined('DEBUG_MONTHLY')) UPDATE_CONFIG("last_month", $currMonth);
} // END - if
// Return array
// Free memory
SQL_FREERESULT($result_daily);
-// Save config value for later references
-$_CONFIG['last_update'] = time();
-
-// Update database
-UPDATE_CONFIG("last_update", time());
-
//
?>