X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_surfbar.php;h=658444343921586f76d1703da3de1ad678814ae8;hb=a93190d186880b886fc0a41fd07deb06480cb641;hp=cdcf1606ec6e7d85516b6e96f9798331b4a46794;hpb=c67165a2e80230515a0c0897ee53bb177f7d88dd;p=mailer.git diff --git a/inc/monthly/monthly_surfbar.php b/inc/monthly/monthly_surfbar.php index cdcf1606ec..6584443439 100644 --- a/inc/monthly/monthly_surfbar.php +++ b/inc/monthly/monthly_surfbar.php @@ -32,16 +32,16 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { +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 (($CSS == 1) || (!defined('__DAILY_RESET'))) return; +//* DEBUG: */ echo basename(__FILE__)."
\n"; // Reset surfbar counter UPDATE_CONFIG("surfbar_monthly_counter", "0");