X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fweekly%2Fweekly_surfbar.php;h=7ff1ff36593f8260ec67dfca9ccda89527f2a857;hb=f9cc6f432459393d1c3a220e5270705d341a350e;hp=74ce5f6aa6fcca3f57b67815d377b8d0ead1a829;hpb=c45b1827a16928c65ecc1aea6a9d7a504c4874d4;p=mailer.git diff --git a/inc/weekly/weekly_surfbar.php b/inc/weekly/weekly_surfbar.php index 74ce5f6aa6..7ff1ff3659 100644 --- a/inc/weekly/weekly_surfbar.php +++ b/inc/weekly/weekly_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; +//* DEBUG: */ echo basename(__FILE__)."
\n"; // Reset the surfbar counter UPDATE_CONFIG("surfbar_weekly_counter", "0");