]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_doubler.php
Final fixes for SQL_ALTER_TABLE() wrapper, INSERT INTO queries are still not wrapped...
[mailer.git] / inc / modules / admin / what-config_doubler.php
index 185aae57c17c526635c7cf9574abac7b1d86c6ba..5b12bfe31c73a18844e222bebbe7f209b9448126 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Punkte verdoppeln                                *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -40,16 +45,16 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Replace commata with decimal dot
-       $_POST['doubler_charge'] = REVERT_COMMA(($_POST['doubler_charge'] / 100));
-       $_POST['doubler_ref']    = REVERT_COMMA(($_POST['doubler_ref'] / 100));
-       $_POST['doubler_min']    = REVERT_COMMA($_POST['doubler_min']);
-       $_POST['doubler_max']    = REVERT_COMMA($_POST['doubler_max']);
-       $_POST['doubler_left']   = REVERT_COMMA($_POST['doubler_left']);
+       REQUEST_SET_POST('doubler_charge', REVERT_COMMA((REQUEST_POST('doubler_charge') / 100)));
+       REQUEST_SET_POST('doubler_ref'   , REVERT_COMMA((REQUEST_POST('doubler_ref') / 100)));
+       REQUEST_SET_POST('doubler_min'   , REVERT_COMMA(REQUEST_POST('doubler_min')));
+       REQUEST_SET_POST('doubler_max'   , REVERT_COMMA(REQUEST_POST('doubler_max')));
+       REQUEST_SET_POST('doubler_left'  , REVERT_COMMA(REQUEST_POST('doubler_left')));
 
        // Save settings
-       ADMIN_SAVE_SETTINGS($_POST);
+       ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare data for the template
        // - Charge rate