X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_beg.php;h=7d6f26b65fd2e50b2654bb342294fd6852a474d8;hp=d243864380b7c7ac61d1988e9511158d0d5a89e6;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/monthly/monthly_beg.php b/inc/monthly/monthly_beg.php index d243864380..7d6f26b65f 100644 --- a/inc/monthly/monthly_beg.php +++ b/inc/monthly/monthly_beg.php @@ -40,7 +40,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif (!EXT_IS_ACTIVE("beg")) { +} elseif (!EXT_IS_ACTIVE('beg')) { return; } @@ -53,8 +53,8 @@ $curr = date("m", time()); // Check if month is done if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) { - // Extension "autopurge" is inactive or purging of inactive accounts is deactivated - $whereStatement1 = ""; + // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated + $whereStatement1 = ''; $whereStatement2 = getConfig(('beg_ranks')); // Shall we exclude webmaster's own userid? @@ -64,9 +64,9 @@ if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getC } // END - if // Let's check if there are some points left we can "pay"... - if (EXT_IS_ACTIVE("autopurge")) { + if (EXT_IS_ACTIVE('autopurge')) { // Use last online stamp only when autopurge for inactive members is activated - if ((getConfig('ap_inactive_since') > 0) && (getConfig('beg_active') == "Y")) { + if ((getConfig('ap_inactive_since') > 0) && (getConfig('beg_active') == 'Y')) { // Okay, include last online timestamp $whereStatement1 .= sprintf(" AND last_online >= (UNIX_TIMESTAMP() - %s)", getConfig(('ap_inactive_since')));; } // END - if