X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=1928e664ad6094e149f46ac4aac4cfd0ba3046bd;hb=a6aaa866eff075c408f58cc0bc24f08562d51b7c;hp=e450f1cefb77e727bd3b7d9704c5aa6caf24c484;hpb=6b13c5c64eebedd56683c78d799879e0dc618b21;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index e450f1cefb..1928e664ad 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * 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 - 2012 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 * @@ -41,15 +41,17 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isFormSent()) { $result = SQL_QUERY("SELECT - `userid`, `email` + `userid`, + `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE - `status`='CONFIRMED' AND `nl_receive`='Y' + `status`='CONFIRMED' AND + `nl_receive`='Y' ORDER BY `userid` ASC", __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { @@ -59,26 +61,26 @@ ORDER BY $template = 'newsletter'; // Check for extension and sending-mode - if (!isExtensionActive('html_mail', true) && (postRequestParameter('mode') == 'html')) { + if (!isExtensionActive('html_mail', TRUE) && (postRequestElement('mail_mode') == 'html')) { // Set mode to text mode - postRequestParameter('mode') == 'text'; - } elseif (postRequestParameter('mode') == 'html') { + postRequestElement('mail_mode') == 'text'; + } elseif (postRequestElement('mail_mode') == 'html') { // Set HTML templates $template = 'newsletter_html'; } // Compile message - setPostRequestParameter('text', preCompileCode(postRequestParameter('text'))); + setPostRequestElement('text', preCompileCode(postRequestElement('text'))); // Load template - $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']); + $message = loadEmailTemplate($template, array('text' => postRequestElement('text')), $content['userid']); // ... and send it away! - sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode')); + sendNewsletter($content['email'], postRequestElement('subject'), $message, postRequestElement('mail_mode')); } // END - while // Output message - loadTemplate('admin_settings_saved', false, '{--ADMIN_NL_SEND_DONE--}'); + displayMessage('{--ADMIN_NL_SEND_DONE--}'); } // END - if // Free memory @@ -90,10 +92,10 @@ ORDER BY // Extension html_mail installed? if (isExtensionActive('html_mail')) { // Load template with HTML mode - loadTemplate('admin_newsletter', false, $content); + loadTemplate('admin_newsletter', FALSE, $content); } else { // Load template with only text mode - loadTemplate('admin_newsletter_nohtml', false, $content); + loadTemplate('admin_newsletter_nohtml', FALSE, $content); } }