]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/html_mail_functions.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / html_mail_functions.php
index d7273b06278f6f79ff695a1a15beccdad64e2c44..25c4a0102f4eda0dbe1fc16eab678e5df40ab125 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 
 //
 function HTML_ADD_VALID_TAGS() {
-       $OUT = "";
+       $OUT = '';
        if (!is_array($GLOBALS['html_tags'])) return "";
        foreach ($GLOBALS['html_tags'] as $tag) {
                $OUT .= ", ".strtoupper($tag);
@@ -57,7 +57,7 @@ function HTML_CHECK_TAGS ($html) {
        $test = stripslashes($html);
        while (ereg("<", $test) && ereg(">", $test)) {
                $check = strtolower(substr($test, strpos($test, "<") + 1, strpos($test, ">") - strpos($test, "<") - 1));
-               $check = str_replace("/", "", $check);
+               $check = str_replace("/", '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
                        // Invalid tag found!
                        return "";
@@ -142,7 +142,7 @@ function HTML_INSERT_URLS ($text) {
        }
 
        // Now put all parts together
-       $text = ""; $PARTS[] = $test;
+       $text = ''; $PARTS[] = $test;
        foreach ($PARTS as $part) {
                $text .= $part;
        }
@@ -153,7 +153,7 @@ function HTML_INSERT_URLS ($text) {
 
 //
 function SEND_HTML_EMAIL($to, $subject, $message, $FROM) {
-       if (EXT_IS_ACTIVE("html_mail")) {
+       if (EXT_IS_ACTIVE('html_mail')) {
                // Send mail away as HTML
                $FROM = "Content-Type: text/html\n".$FROM;
                SEND_EMAIL($to, $subject, $message, 'N', $FROM);