X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=1c3e65772937102c2fa509d3546889d2e6328411;hb=bfbf712685680761babfd9ea059a224a4aa244bf;hp=ce48a033e29bffa47376def25142399d1f0f3647;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git
diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php
index ce48a033e2..1c3e657729 100644
--- a/inc/libs/html_mail_functions.php
+++ b/inc/libs/html_mail_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 HTML_ADD_VALID_TAGS()
{
@@ -86,7 +86,7 @@ function HTML_INSERT_URLS($text)
}
// Now replace the URL against anchor container and pray...
- $text = substr($text, 0, strpos($text, $check2))."".$check."".substr($text, strpos($text, $check2) + strlen($check));
+ $text = substr($text, 0, strpos($text, $check2))."".$check."".substr($text, strpos($text, $check2) + strlen($check));
// Finally remove the url from testing string (or we have a loop and maybe server overload!)
$test = substr($test, strpos($test, $check) + strlen($check));
@@ -143,7 +143,7 @@ function HTML_INSERT_URLS($text)
}
// Now replace the email against anchor with mailto and pray...
- $PARTS[] = $check2."".$check."";
+ $PARTS[] = $check2."".$check."";
// Remove email from testing string (see above why...)
$test = substr($test, strlen($check));
@@ -155,8 +155,8 @@ function HTML_INSERT_URLS($text)
$text .= $part;
}
- // Replace new-lines agains
-s and finally compile possible own HTML tags out...
- return COMPILE_CODE(str_replace("\n", "
\n", $text));
+ // Replace new-lines agains
-s and finally compile possible own HTML tags out...
+ return COMPILE_CODE(str_replace("\n", "
\n", $text));
}
//
function SEND_HTML_EMAIL($TO, $SUBJECT, $MSG, $FROM)
@@ -165,7 +165,7 @@ function SEND_HTML_EMAIL($TO, $SUBJECT, $MSG, $FROM)
{
// Send mail away as HTML
$FROM = "Content-Type: text/html\n".$FROM;
- SEND_EMAIL($TO, $SUBJECT, $MSG, "N", $FROM);
+ SEND_EMAIL($TO, $SUBJECT, $MSG, 'N', $FROM);
}
}
//