X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_beg.php;h=1bdd5295acefb7eec61396a49d810ff367774b66;hb=c72268213d4d4829d845d39c101bb08fbe4ed79a;hp=63440b567a33a198e2963cc3f88b5777ded38934;hpb=8d4176053d397a86baca20b4d7ab7ed526355be8;p=mailer.git diff --git a/inc/monthly/monthly_beg.php b/inc/monthly/monthly_beg.php index 63440b567a..1bdd5295ac 100644 --- a/inc/monthly/monthly_beg.php +++ b/inc/monthly/monthly_beg.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) { +} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) { // Do not execute when script is in CSS mode or no daily reset return; } elseif ((!isExtensionActive('beg')) || (getConfig('beg_rallye') != 'Y')) { @@ -52,7 +52,7 @@ if (!defined('__SECURITY')) { $curr = getMonth(); // Check if month is done -if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && (getOutputMode() != 1)) { +if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && (getScriptOutputMode() != 1)) { // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated $whereStatement1 = ''; @@ -65,7 +65,7 @@ if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getC // Let's check if there are some points left we can 'pay'... if (isExtensionActive('autopurge')) { // Use last online stamp only when autopurge for inactive members is activated - if ((getConfig('ap_inactive_since') > 0) && (getConfig('beg_active') == 'Y')) { + if ((getApInactiveSince() > 0) && (getConfig('beg_active') == 'Y')) { // Okay, include last online timestamp $whereStatement1 .= " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})"; } // END - if