}
// Do not execute when script is in CSS mode
-if (($GLOBALS['output_mode'] == 1) || (!defined('__DAILY_RESET'))) return;
+if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return;
// Get current day (01 to 31), month (01 to 12) and year (4-digits year)
$DAY = date("d", time());