X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_bonus.php;h=837cf5eb9fade3a12bc818a6accec75ebac4c5d7;hp=0d4a1f6058e16173ed5cbeceaf7e5fc117946aef;hb=ccc4a69ce9b17aa8d7b1554a3b2b017db091821b;hpb=357b2ca133fc1f89db74097955c366cb4bee6996 diff --git a/inc/modules/admin/what-send_bonus.php b/inc/modules/admin/what-send_bonus.php index 0d4a1f6058..837cf5eb9f 100644 --- a/inc/modules/admin/what-send_bonus.php +++ b/inc/modules/admin/what-send_bonus.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : An alle Mitglieder Bonus-Mails verschicken * * -------------------------------------------------------------------- * - * * + * $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 * @@ -33,44 +38,44 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} elseif (!EXT_IS_ACTIVE("order")) { - ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "order")); +} elseif (!EXT_IS_ACTIVE('order')) { + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('order')); return; } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Set empty mode to "select" -if (empty($_GET['mode'])) $_GET['mode'] = "select"; +if (!REQUEST_ISSET_GET('mode')) REQUEST_SET_GET('mode', "select"); -if (isset($_POST['ok'])) { +if (isFormSent()) { // Deliver bonus mail - ADD_NEW_BONUS_MAIL($_POST, $_GET['mode']); + addNewBonusMail(REQUEST_POST_ARRAY(), REQUEST_GET('mode')); } else { // Get all available users - define('__ALL_VALUE', TRANSLATE_COMMA(GET_TOTAL_RECEIVERS($_GET['mode']))); + define('__ALL_VALUE', translateComma(getTotalReceivers(REQUEST_GET('mode')))); // Prepare option lines - define('__OPTION_LINES', ADD_CATEGORY_OPTIONS($_GET['mode'])); + define('__OPTION_LINES', generateCategoryOptionsList(REQUEST_GET('mode'))); // Store send mode - define('__MODE', SQL_ESCAPE($_GET['mode'])); + define('__MODE', REQUEST_GET(('mode'))); - if (EXT_IS_ACTIVE("html_mail")) { + if (EXT_IS_ACTIVE('html_mail')) { // If HTML extension is active define('__HTML_SELECT', LOAD_TEMPLATE("admin_send_bonus_html", true)); } else { // And if not - define('__HTML_SELECT', ""); + define('__HTML_SELECT', ''); } // Select template - switch($_GET['mode']) { - case "html": // HTML mails - case "normal": // Normal mails + switch(REQUEST_GET('mode')) { + case 'html': // HTML mails + case 'normal': // Normal mails $template = "admin_send_bonus_form"; break;