X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_surfbar.php;h=025d04875b372ad291b1e966e3ce3e5652b161e0;hb=ee71bda9cc7d75f090ae2e1a2d05d4903523e112;hp=4b23ca9f79a86da2978d16de26c7d438d3d28280;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/monthly/monthly_surfbar.php b/inc/monthly/monthly_surfbar.php index 4b23ca9f79..025d04875b 100644 --- a/inc/monthly/monthly_surfbar.php +++ b/inc/monthly/monthly_surfbar.php @@ -35,17 +35,16 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!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) || (!isResetModeEnabled())) return; +//* DEBUG: */ echo basename(__FILE__)."
\n"; // Reset surfbar counter UPDATE_CONFIG("surfbar_monthly_counter", "0"); -$_CONFIG['surfbar_monthly_counter'] = 0; // ?>