]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/beg_mails.php
Reset scripts rewritten in header
[mailer.git] / inc / mails / beg_mails.php
index 824313d9bcbee1df05a9dfc66e5156fd7e172360..3247190093cd75d992717ee33ec1c86050b4b916 100644 (file)
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
-} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
+} elseif (!EXT_IS_ACTIVE("beg")) {
        return;
 }
 
 // Do not execute when script is in CSS mode
 global $CSS;
-if ($CSS == 1) return;
+if (($CSS == 1) || (!defined('__DAILY_RESET'))) return;
 
 // Create timemark from saved month
 $mark = mktime(0, 0, 0, $_CONFIG['last_month'], date("d", time()), date('Y', time()));