]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-config_bonus.php
index 143885c6994b4bec08e5bb7845063f4574814829..0bc5676d6a78211c49bfb4e24f246f8886b639c4 100644 (file)
@@ -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 *
@@ -48,27 +48,27 @@ if (isFormSent()) {
        convertCommaToDotInPostDataArray(array('login_bonus', 'turbo_bonus', 'bonus_ref', 'bonus_order', 'bonus_notify_points'));
 
        // Generate string for saving ranks
-       setPostRequestParameter('turbo_rates', '');
+       setPostRequestElement('turbo_rates', '');
        $RATES = array();
-       foreach (postRequestParameter('rate') as $rate) {
+       foreach (postRequestElement('rate') as $rate) {
                $rate = trim(convertCommaToDot($rate));
                if (!empty($rate)) $RATES[] = $rate;
        } // END - foreach
-       setPostRequestParameter('turbo_rates', trim(implode(';', $RATES)));
-       unsetPostRequestParameter('rate');
+       setPostRequestElement('turbo_rates', trim(implode(';', $RATES)));
+       unsetPostRequestElement('rate');
 
        // Automatically calculate bonus points for ranks 2 and 3 when not set
-       if (!isPostRequestParameterSet('turbo_rates')) {
-               setPostRequestParameter('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
+       if (!isPostRequestElementSet('turbo_rates')) {
+               setPostRequestElement('turbo_rates', ''.round(getConfig('turbo_bonus') / 2).';'.round(getConfig('turbo_bonus') / 4).'');
        } // END - if
 
        // Save data
        adminSaveSettingsFromPostData();
 
        // Remember new settings
-       setConfigEntry('bonus_active'        , postRequestParameter('bonus_active'));
-       setConfigEntry('bonus_enable_notify' , postRequestParameter('bonus_enable_notify'));
-       setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
+       setConfigEntry('bonus_active'        , postRequestElement('bonus_active'));
+       setConfigEntry('bonus_enable_notify' , postRequestElement('bonus_enable_notify'));
+       setConfigEntry('bonus_disable_notify', postRequestElement('bonus_disable_notify'));
 } else {
        // Transfer options to template
        $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid');