X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=9cdac1d2a6aa64e1e4a722dff3662ba7e47bee51;hb=98077af43126dd7c274fe57f6ea0494e906e8943;hp=de748d4b1d2d95d37f59f0fa66db8aac1cbd458c;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index de748d4b1d..9cdac1d2a6 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Verwalten von HTML- oder Text-Newslettern * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,14 +38,14 @@ // 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()) { +if (isFormSent()) { $result = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' AND nl_receive='Y' @@ -54,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"; } @@ -79,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")) { + define('_DATESTAMP', generateDateTime(time(), '3')); + if (EXT_IS_ACTIVE('html_mail')) { // Load template with HTML mode LOAD_TEMPLATE("admin_newsletter"); } else {