]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
Cache class rewritten to better convention
[mailer.git] / inc / libs / newsletter_functions.php
index aa75f75f36dbe65949030e3950a160160005344c..2b03a73f11db3ee23eee893ff35f514d59b71bfc 100644 (file)
  ************************************************************************/
 
 // 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()
 {
@@ -177,7 +177,7 @@ function SEND_NEWSLETTER($TO, $SUBJECT, $MSG, $MODE)
                if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
                        SEND_EMAIL($TO, $SUBJECT, $MSG, "Y");
                } else {
-                       SEND_EMAIL($TO, $SUBJECT, $MSG);
+                       SEND_EMAIL($TO, $SUBJECT, $MSG, "N");
                }
        }
 }