X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=8e12bd96a15a3711247f6ce8b2e5e0923fb6828a;hb=bb26a0d30f5069bb00c65ac715cbf04b2ae672d9;hp=5f90fd230cdfa7c46155155c38d2ead26ef7bc69;hpb=6ccd99da05d2a9ea302b4c904bbdb2320724d42d;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index 5f90fd230c..8e12bd96a1 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -32,13 +32,13 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { +if ((!defined('__SECURITY')) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); if (isset($_POST['ok'])) { @@ -67,7 +67,7 @@ if (isset($_POST['ok'])) $_POST['text'] = COMPILE_CODE($_POST['text']); // Load template - $msg = LOAD_EMAIL_TEMPLATE($template, $_POST['text'], $id); + $msg = LOAD_EMAIL_TEMPLATE($template, array('text' => $_POST['text']), $id); // ... and send it away! SEND_NEWSLETTER($email, $_POST['subject'], $msg, $_POST['mode']);