X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bonus.php;h=581855e47a089e32c8032c4196269d1d145f0c81;hp=2605fa99e4bcb39782f32224b60b481caa67f95a;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/modules/admin/what-list_bonus.php b/inc/modules/admin/what-list_bonus.php index 2605fa99e4..581855e47a 100644 --- a/inc/modules/admin/what-list_bonus.php +++ b/inc/modules/admin/what-list_bonus.php @@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__); if (getConfig('bonus_active') == 'Y') { // Shall I withdraw now? - if (isPostRequestElementSet(('withdraw'))) { + if (isPostRequestParameterSet(('withdraw'))) { // Okay, let's prepare... $curr = date('m', time()) - 1; if (strlen($curr) == 1) $curr = '0' . $curr; @@ -57,11 +57,11 @@ if (getConfig('bonus_active') == 'Y') { if (getExtensionVersion('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 ??? @@ -123,14 +123,14 @@ 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 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'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'autopurge')); } // Load final template