X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_surfbar.php;h=fc73f486c36762a17be662088c5470930269f60a;hb=59bd8a9805c51c895a92cc12825f4cbdfd792597;hp=9c9f0a1e216f81e259d2cf721c7e8feb7bc6d8c8;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/reset/reset_surfbar.php b/inc/reset/reset_surfbar.php index 9c9f0a1e21..fc73f486c3 100644 --- a/inc/reset/reset_surfbar.php +++ b/inc/reset/reset_surfbar.php @@ -35,18 +35,18 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); +} elseif (!EXT_IS_ACTIVE("surfbar")) { return; } // Do not execute when script is in CSS mode or no daily reset -if (($CSS == 1) || (defined('__DAILY_RESET'))) return; +if (($GLOBALS['output_mode'] == 1) || (!defined('__DAILY_RESET'))) return; +//* DEBUG: */ echo basename(__FILE__)."
\n"; // Reset surfbar counter -UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter`"), array(0, $_CONFIG['surfbar_daily_counter'])); -$_CONFIG['surfbar_yester_counter'] = $_CONFIG['surfbar_daily_counter']; -$_CONFIG['surfbar_daily_counter'] = 0; +UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter"), array(0, getConfig('surfbar_daily_counter'))); +setConfigEntry('surfbar_yester_counter', getConfig('surfbar_daily_counter')); +setConfigEntry('surfbar_daily_counter' , 0); // ?>