if (GET_EXT_VERSION('bonus') >= '0.6.9') {
// Add more bonus points here
- $USE = "(0";
- if (getConfig('bonus_click_yn') == 'Y') $USE .= " + turbo_bonus";
- if (getConfig('bonus_login_yn') == 'Y') $USE .= " + login_bonus";
- if (getConfig('bonus_order_yn') == 'Y') $USE .= " + bonus_order";
- if (getConfig('bonus_stats_yn') == 'Y') $USE .= " + bonus_stats";
- if (getConfig('bonus_ref_yn') == 'Y') $USE .= " + bonus_ref";
- $USE .= ")";
+ $USE = '(0';
+ if (getConfig('bonus_click_yn') == 'Y') $USE .= " + `turbo_bonus`";
+ if (getConfig('bonus_login_yn') == 'Y') $USE .= " + `login_bonus`";
+ if (getConfig('bonus_order_yn') == 'Y') $USE .= " + `bonus_order`";
+ if (getConfig('bonus_stats_yn') == 'Y') $USE .= " + `bonus_stats`";
+ if (getConfig('bonus_ref_yn') == 'Y') $USE .= " + `bonus_ref`";
+ $USE .= ')';
} else {
// Old version ???
- $USE = "turbo_bonus";
+ $USE = 'turbo_bonus';
}
// Autopurge installed?
$content['email'] = generateMemberEmailLink($content['email'], "user_data");
$content['gender'] = translateGender($content['gender']);
$content['points'] = translateComma($content['points']);
- $content['last'] = generateDateTime($content['last'], "2");
+ $content['last'] = generateDateTime($content['last'], '2');
$content['sw'] = $SW;
$content['win1'] = $WIN1;
$content['win2'] = $WIN2;
// Prepare constant for timemark
if (EXT_IS_ACTIVE('autopurge')) {
- define('__AUTOPURGE_TIMEOUT', generateDateTime(time() - getConfig('ap_inactive_since'), "2"));
+ define('__AUTOPURGE_TIMEOUT', generateDateTime(time() - getConfig('ap_inactive_since'), '2'));
} else {
define('__AUTOPURGE_TIMEOUT', sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge'));
}