X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_wernis.php;h=f7f0d0aa4a9ecf7dce1eba474cadd289c2ff48b5;hb=a1ab2fa4296e58f66a15ac7b568a1454713a61ee;hp=f174499163d70f0290ccabca5cb6f3a5a91261bc;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;p=mailer.git diff --git a/inc/modules/admin/what-config_wernis.php b/inc/modules/admin/what-config_wernis.php index f174499163..f7f0d0aa4a 100644 --- a/inc/modules/admin/what-config_wernis.php +++ b/inc/modules/admin/what-config_wernis.php @@ -1,7 +1,7 @@ getConfig(('wernis_min_payout')), - 'min_withdraw' => getConfig(('wernis_min_withdraw')), - 'api_id' => getConfig(('wernis_api_id')), - 'api_md5' => getConfig('wernis_api_md5'), - 'api_url' => getConfig('wernis_api_url'), - 'refid' => getConfig(('wernis_refid')), - 'payout_factor' => TRANSLATE_COMMA(getConfig('wernis_payout_factor')), - 'withdraw_factor' => TRANSLATE_COMMA(getConfig('wernis_withdraw_factor')), - 'payout_fee_percent' => TRANSLATE_COMMA(getConfig('wernis_payout_fee_percent')), - 'withdraw_fee_percent' => TRANSLATE_COMMA(getConfig('wernis_withdraw_fee_percent')), - 'payout_fee_fix' => getConfig(('wernis_payout_fee_fix')), - 'withdraw_fee_fix' => getConfig(('wernis_withdraw_fee_fix')) + 'wernis_payout_active_y' => '', + 'wernis_payout_active_n' => '', + 'wernis_withdraw_active_y' => '', + 'wernis_withdraw_active_n' => '', ); // Prepare payout Y/N selection - if (getConfig('wernis_payout_active') == 'Y') { - // Payout allowed - define('__CFG_WERNIS_PAYOUT_ACTIVE_Y', ' chkecked="checked"'); - define('__CFG_WERNIS_PAYOUT_ACTIVE_N', ''); - } else { - // Payout disabled - define('__CFG_WERNIS_PAYOUT_ACTIVE_Y', ''); - define('__CFG_WERNIS_PAYOUT_ACTIVE_N', ' chkecked="checked"'); - } - - // Prepare withdraw Y/N selection - if (getConfig('wernis_withdraw_active') == 'Y') { - // Payout allowed - define('__CFG_WERNIS_WITHDRAW_ACTIVE_Y', ' chkecked="checked"'); - define('__CFG_WERNIS_WITHDRAW_ACTIVE_N', ''); - } else { - // Payout disabled - define('__CFG_WERNIS_WITHDRAW_ACTIVE_Y', ''); - define('__CFG_WERNIS_WITHDRAW_ACTIVE_N', ' chkecked="checked"'); - } + foreach (array('wernis_payout_active', 'wernis_withdraw_active') as $entry) { + $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; + } // END - foreach // Load template - LOAD_TEMPLATE("admin_config_wernis", false, $content); + loadTemplate('admin_config_wernis', false, $content); } -// +// [EOF] ?>