X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_beg.php;h=1bdd5295acefb7eec61396a49d810ff367774b66;hb=c72268213d4d4829d845d39c101bb08fbe4ed79a;hp=75542597049218dbc545a3630700c7877ad3b06e;hpb=c2f2d0e0c53b6b4878f5966cf954f2f4cf1dff86;p=mailer.git diff --git a/inc/monthly/monthly_beg.php b/inc/monthly/monthly_beg.php index 7554259704..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')) { @@ -49,10 +49,10 @@ if (!defined('__SECURITY')) { } // Get current month (2 digits) -$curr = date('m', time()); +$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 @@ -92,7 +92,7 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__); // Load email template and email it away $message = loadEmailTemplate('member_beg', $content, bigintval($content['userid'])); - sendEmail($content['email'], getMessage('BEG_MONTHLY_RALLYE'), $message); + sendEmail($content['email'], '{--BEG_MONTHLY_RALLYE--}', $message); } // END - while // Reset accounts