]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_wernis.php
fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-config_wernis.php
index 51f3f158006be7c720109620d365db4cc2b6f772..9058c56944688461b3c9f7dd73ea71b7d7b19483 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 12/26/2007 *
- * ================                             Last change: 12/26/2007 *
+ * Mailer v0.2.1-FINAL                                Start: 12/26/2007 *
+ * ===================                          Last change: 12/26/2007 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_wernis.php                           *
@@ -39,7 +39,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -52,12 +52,12 @@ if (isFormSent()) {
        if (WERNIS_TEST_API()) {
                // Revert german commata
                foreach (array('payout_factor', 'withdraw_factor', 'payout_fee_percent', 'withdraw_fee_percent') as $revert) {
-                       setRequestPostElement('wernis_'.$revert, convertCommaToDot(postRequestElement('wernis_'.$revert)));
+                       setPostRequestParameter('wernis_' . $revert, postRequestParameter('wernis_' . $revert));
                } // END - if
 
                // Hash the password and remove clear-text
-               setRequestPostElement('wernis_pass_md5', md5(postRequestElement('wernis_pass')));
-               unsetPostRequestElement('wernis_pass');
+               setPostRequestParameter('wernis_pass_md5', md5(postRequestParameter('wernis_pass')));
+               unsetPostRequestParameter('wernis_pass');
 
                // Save settings
                adminSaveSettingsFromPostData();
@@ -68,10 +68,6 @@ if (isFormSent()) {
 }  else {
        // Prepare data for template output
        $content = array(
-               'payout_factor'            => translateComma(getConfig('wernis_payout_factor')),
-               'withdraw_factor'          => translateComma(getConfig('wernis_withdraw_factor')),
-               'payout_fee_percent'       => translateComma(getConfig('wernis_payout_fee_percent')),
-               'withdraw_fee_percent'     => translateComma(getConfig('wernis_withdraw_fee_percent')),
                'wernis_payout_active_y'   => '',
                'wernis_payout_active_n'   => '',
                'wernis_withdraw_active_y' => '',