X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_wernis.php;h=db31390b5cd75432aa09119ca9e5b2148e4e3fea;hp=c5478c8ce7692c00fec710d9cf2de05ca10a7aef;hb=4cec044b57773e28423261c71f918f3e22ca8a75;hpb=82d53dfb7f59fa1e37bd500e3db3d10a9d4a78da diff --git a/inc/modules/admin/what-config_wernis.php b/inc/modules/admin/what-config_wernis.php index c5478c8ce7..db31390b5c 100644 --- a/inc/modules/admin/what-config_wernis.php +++ b/inc/modules/admin/what-config_wernis.php @@ -1,7 +1,7 @@ bigintval($_CONFIG['wernis_min_payout']), - 'min_withdraw' => bigintval($_CONFIG['wernis_min_withdraw']), - 'api_id' => bigintval($_CONFIG['wernis_api_id']), - 'api_md5' => $_CONFIG['wernis_api_md5'], - 'api_url' => $_CONFIG['wernis_api_url'], - 'refid' => bigintval($_CONFIG['wernis_refid']), - 'payout_factor' => TRANSLATE_COMMA($_CONFIG['wernis_payout_factor']), - 'withdraw_factor' => TRANSLATE_COMMA($_CONFIG['wernis_withdraw_factor']), - 'payout_fee_percent' => TRANSLATE_COMMA($_CONFIG['wernis_payout_fee_percent']), - 'withdraw_fee_percent' => TRANSLATE_COMMA($_CONFIG['wernis_withdraw_fee_percent']), - 'payout_fee_fix' => bigintval($_CONFIG['wernis_payout_fee_fix']), - 'withdraw_fee_fix' => bigintval($_CONFIG['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 ($_CONFIG['wernis_payout_active'] == "Y") { - // Payout allowed - define('__CFG_WERNIS_PAYOUT_ACTIVE_Y', " checked=\"checked\""); - define('__CFG_WERNIS_PAYOUT_ACTIVE_N', ""); - } else { - // Payout disabled - define('__CFG_WERNIS_PAYOUT_ACTIVE_Y', ""); - define('__CFG_WERNIS_PAYOUT_ACTIVE_N', " checked=\"checked\""); - } - - // Prepare withdraw Y/N selection - if ($_CONFIG['wernis_withdraw_active'] == "Y") { - // Payout allowed - define('__CFG_WERNIS_WITHDRAW_ACTIVE_Y', " checked=\"checked\""); - define('__CFG_WERNIS_WITHDRAW_ACTIVE_N', ""); - } else { - // Payout disabled - define('__CFG_WERNIS_WITHDRAW_ACTIVE_Y', ""); - define('__CFG_WERNIS_WITHDRAW_ACTIVE_N', " checked=\"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] ?>