]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_wernis.php
Fixes + asserts
[mailer.git] / inc / modules / admin / what-config_wernis.php
index 437d1b23196e4d45a378386a5988ab8f3c8eddd7..74770402dc4b7b16bc3ddcebafa981a62558597b 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * 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 *
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // First merge temporarily the new API data into the current config
        mergeConfig(postRequestArray());
 
@@ -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', hashSha256(postRequestElement('wernis_pass')));
+               unsetPostRequestElement('wernis_pass');
 
                // Save settings
                adminSaveSettingsFromPostData();