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;
}
// 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?
} // 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