if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("bonus")) {
+} elseif (!EXT_IS_ACTIVE('bonus')) {
return;
}
$curr = date("m", time());
if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) {
- // Extension "autopurge" is inactive or purging of inactive accounts is deactivated
+ // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
$whereStatement1 = "WHERE `status`='CONFIRMED'";
$whereStatement2 = getConfig(('bonus_ranks'));
// Shall I keep inactive members away from here? (mostly wanted in an "active-rallye" ...)
- 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) {
// Okay, include last online timestamp
} // END - if
// Add more bonus points here
- $add = "";
- if (getConfig('bonus_click_yn') == "Y") $add .= " + turbo_bonus";
- if (getConfig('bonus_login_yn') == "Y") $add .= " + login_bonus";
- if (getConfig('bonus_order_yn') == "Y") $add .= " + bonus_order";
- if (getConfig('bonus_stats_yn') == "Y") $add .= " + bonus_stats";
- if (getConfig('bonus_ref_yn') == "Y") $add .= " + bonus_ref";
+ $add = '';
+ if (getConfig('bonus_click_yn') == 'Y') $add .= " + turbo_bonus";
+ if (getConfig('bonus_login_yn') == 'Y') $add .= " + login_bonus";
+ if (getConfig('bonus_order_yn') == 'Y') $add .= " + bonus_order";
+ if (getConfig('bonus_stats_yn') == 'Y') $add .= " + bonus_stats";
+ if (getConfig('bonus_ref_yn') == 'Y') $add .= " + bonus_ref";
// Shall we add some entries?
if (!empty($add)) {