X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fnewsletter_functions.php;h=2b03a73f11db3ee23eee893ff35f514d59b71bfc;hb=a0c37ca650d27d0aed672ebf34e1be4601a2e0e9;hp=5dcf9d87e28c1a9ec380d4743a786da46d398b00;hpb=307a4e11763f0914e73dc756b219356e1c29ab25;p=mailer.git diff --git a/inc/libs/newsletter_functions.php b/inc/libs/newsletter_functions.php index 5dcf9d87e2..2b03a73f11 100644 --- a/inc/libs/newsletter_functions.php +++ b/inc/libs/newsletter_functions.php @@ -32,11 +32,11 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } + // function NL_ADD_VALID_TAGS() { @@ -167,17 +167,17 @@ function SEND_NEWSLETTER($TO, $SUBJECT, $MSG, $MODE) // Automatically insert URLs into newsletter if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) { // Send HTML mail - SEND_EMAIL($TO, $SUBJECT, HTML_INSERT_URLS($MSG), 'Y'); + SEND_EMAIL($TO, $SUBJECT, HTML_INSERT_URLS($MSG), "Y"); } else { // Send normal mail - SEND_EMAIL($TO, $SUBJECT, NL_INSERT_URLS($MSG), 'N'); + SEND_EMAIL($TO, $SUBJECT, NL_INSERT_URLS($MSG), "N"); } } else { // Regular send-out if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) { - SEND_EMAIL($TO, $SUBJECT, $MSG, 'Y'); + SEND_EMAIL($TO, $SUBJECT, $MSG, "Y"); } else { - SEND_EMAIL($TO, $SUBJECT, $MSG); + SEND_EMAIL($TO, $SUBJECT, $MSG, "N"); } } }