]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
Security line in all includes changed
[mailer.git] / inc / libs / newsletter_functions.php
index 184effff6c1278e6c31b9928eb6594b1243d5dc1..2a1553a3fc2a92f394f750f391e6824607004f4a 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()
 {
@@ -163,7 +163,7 @@ function SEND_NEWSLETTER($TO, $SUBJECT, $MSG, $MODE)
 {
        global $_POST;
        // Send mail away as HTML
-       if ($_POST['auto_urls'] == 'Y') {
+       if ($_POST['auto_urls'] == "Y") {
                // Automatically insert URLs into newsletter
                if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
                        // Send HTML mail