]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_bonus.php
Old, lost function sendHtmlMail() removed, this is now handled by sendEmail() and...
[mailer.git] / inc / modules / admin / what-send_bonus.php
index affb36f43e98fa4c17759a9f8e4d062c00a78614..b07579096c5bf8c3d2a346a3a7a50be148a37e2c 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';
@@ -81,7 +82,7 @@ if (isFormSent()) {
                case 'select': // Selection
                        $template = 'admin_send_bonus_select';
                        break;
-       } // END - if
+       } // END - switch
 
        // Load template
        loadTemplate($template, false, $content);