X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_wernis.php;h=8bfd67aeb15fcf17156a6355e0bf2d48c4836e8d;hb=f99fabc783c022ddc5ca1f3e9c0d3ab89170dcf5;hp=7d5a3ece21568cf7795fa176cf85e81c800ad938;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e;p=mailer.git diff --git a/inc/modules/admin/what-config_wernis.php b/inc/modules/admin/what-config_wernis.php index 7d5a3ece21..8bfd67aeb1 100644 --- a/inc/modules/admin/what-config_wernis.php +++ b/inc/modules/admin/what-config_wernis.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -51,12 +51,12 @@ if (isFormSent()) { if (WERNIS_TEST_API()) { // Revert german commata foreach (array('payout_factor', 'withdraw_factor', 'payout_fee_percent', 'withdraw_fee_percent') as $revert) { - setPostRequestParameter('wernis_' . $revert, postRequestParameter('wernis_' . $revert)); + setPostRequestElement('wernis_' . $revert, postRequestElement('wernis_' . $revert)); } // END - if // Hash the password and remove clear-text - setPostRequestParameter('wernis_pass_md5', md5(postRequestParameter('wernis_pass'))); - unsetPostRequestParameter('wernis_pass'); + setPostRequestElement('wernis_pass_md5', md5(postRequestElement('wernis_pass'))); + unsetPostRequestElement('wernis_pass'); // Save settings adminSaveSettingsFromPostData(); @@ -65,21 +65,8 @@ if (isFormSent()) { displayMessage(GET_WERNIS_ERROR_MESSAGE()); } } else { - // Prepare data for template output - $content = array( - 'wernis_payout_active_y' => '', - 'wernis_payout_active_n' => '', - 'wernis_withdraw_active_y' => '', - 'wernis_withdraw_active_n' => '', - ); - - // Prepare payout Y/N selection - foreach (array('wernis_payout_active', 'wernis_withdraw_active') as $entry) { - $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; - } // END - foreach - // Load template - loadTemplate('admin_config_wernis', false, $content); + loadTemplate('admin_config_wernis'); } // [EOF]