X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=fde5d8c4ca804d7cb7d70a5ff531ca332f1dbf5e;hp=2113d74fa86d552d80e62fe39570da8cd1b18274;hb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32 diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index 2113d74fa8..fde5d8c4ca 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Verwalten von HTML- oder Text-Newslettern * * -------------------------------------------------------------------- * - * * + * $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,12 +38,12 @@ // 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); } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); if (IS_FORM_SENT()) { $result = SQL_QUERY("SELECT userid, email @@ -49,13 +54,13 @@ ORDER BY userid ASC", __FILE__, __LINE__); // Members are available so we can send out the newsletter! while ($content = SQL_FETCHARRAY($result)) { // Construct mail... - $template = "newsletter"; + $template = 'newsletter'; // Check for extension and sending-mode - if (!EXT_IS_ACTIVE("html_mail", true) && (REQUEST_POST('mode') == "html")) { + if (!EXT_IS_ACTIVE('html_mail', true) && (REQUEST_POST('mode') == 'html')) { // Set mode to text mode REQUEST_POST('mode') == "text"; - } elseif (REQUEST_POST('mode') == "html") { + } elseif (REQUEST_POST('mode') == 'html') { // Set HTML templates $template = "newsletter_html"; } @@ -74,13 +79,13 @@ ORDER BY userid ASC", __FILE__, __LINE__); SQL_FREERESULT($result); // Output message - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_NL_SEND_DONE')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_NL_SEND_DONE')); } } else { // Copy data into constants for the template and load it // @TODO Rewrite this constant define('_DATESTAMP', MAKE_DATETIME(time(), "3")); - if (EXT_IS_ACTIVE("html_mail")) { + if (EXT_IS_ACTIVE('html_mail')) { // Load template with HTML mode LOAD_TEMPLATE("admin_newsletter"); } else {