}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
if (IS_FORM_SENT()) {
$result = SQL_QUERY("SELECT userid, email
// 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";
}
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 {