X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_bonus.php;h=765f304021b046571d392a135ce4db24d29752a0;hb=99536b45392c43b78029af7eefa176de3cc6cd4e;hp=b07579096c5bf8c3d2a346a3a7a50be148a37e2c;hpb=061d09696aff5e519597f77f4e91dc5dd4824a77;p=mailer.git diff --git a/inc/modules/admin/what-send_bonus.php b/inc/modules/admin/what-send_bonus.php index b07579096c..765f304021 100644 --- a/inc/modules/admin/what-send_bonus.php +++ b/inc/modules/admin/what-send_bonus.php @@ -14,12 +14,10 @@ * $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 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,28 +41,25 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (!isExtensionActive('order')) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=order%}'); return; } // END - if -// Set empty mode to "select" -if (!isGetRequestParameterSet('mode')) setGetRequestParameter('mode', 'select'); +// 'mode' is not set by default +if (!isGetRequestElementSet('mode')) { + // Set empty mode to "select" + setGetRequestElement('mode', 'select'); +} // END - if if (isFormSent()) { // Deliver bonus mail - addNewBonusMail(postRequestArray(), getRequestParameter('mode')); + addNewBonusMail(postRequestArray(), getRequestElement('mode')); } else { - // Get all available users - $content['all'] = translateComma(getTotalReceivers(getRequestParameter('mode'))); - - // Prepare option lines - $content['options_lines'] = generateCategoryOptionsList(getRequestParameter('mode')); - // Store send mode - $content['mode'] = getRequestParameter('mode'); + $content['mode'] = getRequestElement('mode'); $content['html_select'] = ''; if (isExtensionActive('html_mail')) { @@ -73,7 +68,7 @@ if (isFormSent()) { } // END - if // Select template - switch(getRequestParameter('mode')) { + switch(getRequestElement('mode')) { case 'html': // HTML mails case 'normal': // Normal mails $template = 'admin_send_bonus_form';