]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_doubler.php
New wrapper function introduced, more EL rewrites:
[mailer.git] / inc / modules / admin / what-config_doubler.php
index 32f0624c54ec171e0822abde5232d312ff9ec5ec..1b3365b7db05db9fbdabf2dfcecda4675647a9e6 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,8 +47,8 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
        // Replace commata with decimal dot
-       setPostRequestParameter('doubler_charge', (convertCommaToDot(postRequestParameter('doubler_charge')) / 100));
-       setPostRequestParameter('doubler_ref'   , (convertCommaToDot(postRequestParameter('doubler_ref')) / 100));
+       setPostRequestParameter('doubler_charge', convertCommaToDot(postRequestParameter('doubler_charge')));
+       setPostRequestParameter('doubler_ref'   , convertCommaToDot(postRequestParameter('doubler_ref')));
        setPostRequestParameter('doubler_min'   , convertCommaToDot(postRequestParameter('doubler_min')));
        setPostRequestParameter('doubler_max'   , convertCommaToDot(postRequestParameter('doubler_max')));
        setPostRequestParameter('doubler_left'  , convertCommaToDot(postRequestParameter('doubler_left')));
@@ -55,18 +56,6 @@ if (isFormSent()) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare data for the template
-       // - Charge rate
-       $content['charge']  = translateComma((getConfig('doubler_charge') * 100), false);
-       // - Referal rate
-       $content['referal'] = translateComma((getConfig('doubler_ref') * 100), false);
-       // - Minimum points to double
-       $content['minimum'] = translateComma(getConfig('doubler_min'), false);
-       // - Maximum points to double
-       $content['maximum'] = translateComma(getConfig('doubler_max'), false);
-       // - Points left on users account after doubling
-       $content['left']    = translateComma(getConfig('doubler_left'), false);
-
        // Init all Y/N selections
        foreach (array('jackpot','own','sent_all') as $entry) {
                $content[$entry . '_y'] = '';