]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_surfbar.php
Reset scripts rewritten in header
[mailer.git] / inc / monthly / monthly_surfbar.php
index cdcf1606ec6e7d85516b6e96f9798331b4a46794..35de46718f5b33598e28467369bf898c3fd53cf9 100644 (file)
  ************************************************************************/
 
 // 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;
 
 // Reset surfbar counter
 UPDATE_CONFIG("surfbar_monthly_counter", "0");