]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_bonus.php
Rewrites/fixes for handling config entries in SQLs
[mailer.git] / inc / modules / admin / what-send_bonus.php
index affb36f43e98fa4c17759a9f8e4d062c00a78614..bd198c04de9e5f1e8126f9781bbcd7cddaa13715 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 *
@@ -50,20 +51,20 @@ if (!isExtensionActive('order')) {
 } // END - if
 
 // Set empty mode to "select"
-if (!isGetRequestElementSet('mode')) setGetRequestElement('mode', "select");
+if (!isGetRequestParameterSet('mode')) setGetRequestParameter('mode', "select");
 
 if (isFormSent()) {
        // Deliver bonus mail
-       addNewBonusMail(postRequestArray(), getRequestElement('mode'));
+       addNewBonusMail(postRequestArray(), getRequestParameter('mode'));
 } else {
        // Get all available users
-       $content['all'] = translateComma(getTotalReceivers(getRequestElement('mode')));
+       $content['all'] = translateComma(getTotalReceivers(getRequestParameter('mode')));
 
        // Prepare option lines
-       $content['options_lines'] = generateCategoryOptionsList(getRequestElement('mode'));
+       $content['options_lines'] = generateCategoryOptionsList(getRequestParameter('mode'));
 
        // Store send mode
-       $content['mode'] = getRequestElement('mode');
+       $content['mode'] = getRequestParameter('mode');
 
        $content['html_select'] = '';
        if (isExtensionActive('html_mail')) {
@@ -72,7 +73,7 @@ if (isFormSent()) {
        } // END - if
 
        // Select template
-       switch(getRequestElement('mode')) {
+       switch(getRequestParameter('mode')) {
                case 'html':   // HTML mails
                case 'normal': // Normal mails
                        $template = 'admin_send_bonus_form';