+ // Run daily reset
+ // 01 2 2 2 3321 1 2 21 1 2 21 1 2 21 1 2 21 1 10
+ if ((date("d", $_CONFIG['last_update']) != date("d", time())) && (!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (!isset($_GET['register'])) && ($CSS != 1)) {
+ // Do daily things in external PHP file but only when script is completely setup
+ $INC_POOL = array();
+ $INC_POOL[] = sprintf("%sinc/reset/reset_daily.php", PATH);
+
+ // Daily reset was run!
+ define('__DAILY_RESET', true);
+
+ // Add more includes
+ RESET_ADD_INCLUDES();
+
+ // Run the full reset scripts
+ foreach ($INC_POOL as $incFile) {
+ require_once($incFile);
+ } // END - foreach
+ } // END - if
+