X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bonus.php;h=6a273ad932cef6662cbf60f95f631c90e46bb224;hb=22ba0c36c75ff989a6f48197c5a71524fb891b87;hp=318b75fb216eba7b19abc1c561b6201ec561c81f;hpb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b;p=mailer.git diff --git a/inc/modules/admin/what-list_bonus.php b/inc/modules/admin/what-list_bonus.php index 318b75fb21..6a273ad932 100644 --- a/inc/modules/admin/what-list_bonus.php +++ b/inc/modules/admin/what-list_bonus.php @@ -1,7 +1,7 @@ = '0.6.9') { + if (isExtensionInstalledAndNewer('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`"; + 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 ??? @@ -94,16 +95,16 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC", $WIN1 = ''; $WIN2 = ''; if ($cnt <= getConfig('bonus_ranks')) { // Maybe he can win his active bonus? - $WIN1 = ""; - $WIN2 = ""; - } + $WIN1 = ''; + $WIN2 = ''; + } // END - if // Prepare content - $content['userid'] = generateUserProfileLink($content['userid']); - $content['email'] = generateEmailLink($content['email'], 'user_data'); - $content['gender'] = translateGender($content['gender']); - $content['points'] = translateComma($content['points']); - $content['last_online'] = generateDateTime($content['last_online'], 2); + $content['userid'] = generateUserProfileLink($content['userid']); + $content['email'] = generateEmailLink($content['email'], 'user_data'); + $content['gender'] = translateGender($content['gender']); + $content['points'] = translateComma($content['points']); + $content['last_online'] = generateDateTime($content['last_online'], 2); $content['sw'] = $SW; $content['win1'] = $WIN1; $content['win2'] = $WIN2; @@ -123,14 +124,15 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC", $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', true); } else { // Display message "no manual withdraw possible" - $content['withdraw_form'] = loadTemplate('admin_settings_saved', true, "
{--ADMIN_BONUS_ALREADY_WITHDRAW--}
"); + $content['withdraw_form'] = loadTemplate('admin_settings_saved', true, '
{--ADMIN_BONUS_ALREADY_WITHDRAW--}
'); } // Prepare constant for timemark + // @TODO Can't this be moved into our expression language? if (isExtensionActive('autopurge')) { $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2); } else { - $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, sprintf(getMessage('EXTENSION_PROBLEM_NOT_INSTALLED'), 'autopurge')); + $content['autopurge_timeout'] = getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'autopurge'); } // Load final template