<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/28/2003 *
- * =============== Last change: 08/05/2004 *
+ * Mailer v0.2.1-FINAL Start: 09/28/2003 *
+ * =================== Last change: 08/05/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-send_bonus.php *
* 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 *
} // END - if
// Set empty mode to "select"
-if (!isGetRequestElementSet('mode')) setRequestGetElement('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')) {
} // END - if
// Select template
- switch(getRequestElement('mode')) {
+ switch(getRequestParameter('mode')) {
case 'html': // HTML mails
case 'normal': // Normal mails
$template = 'admin_send_bonus_form';
case 'select': // Selection
$template = 'admin_send_bonus_select';
break;
- } // END - if
+ } // END - switch
// Load template
loadTemplate($template, false, $content);