]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/html_mail_functions.php
Missing SVN properties set
[mailer.git] / inc / libs / html_mail_functions.php
index f72b7d595579a5248d9aef1ca2e9daedb2226bf8..f7a34e0298c62265c4641fb115faea5957fa0644 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 04/25/2004 *
- * ================                             Last change: 04/29/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 04/25/2004 *
+ * ===================                          Last change: 04/29/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : html_mail_functions.php                          *
@@ -60,7 +60,7 @@ function checkHtmlTags ($html) {
                $check = str_replace('/', '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
                        // Invalid tag found!
-                       return "";
+                       return '';
                }
                $test = substr($test, strpos($test, '>') + 1);
        }
@@ -118,7 +118,7 @@ function insertUrlsIntoHtml ($text) {
                } // END - if
 
                // And now go forward...
-               $idx = 0;
+               $idx = '0';
                while ($idx < strlen($test)) {
                        $check = substr($test, $idx, 1);
                        if ((!in_array($check, $GLOBALS['valid_email_chars'])) && ($check != '@')) {
@@ -144,7 +144,7 @@ function insertUrlsIntoHtml ($text) {
        $text = ''; $PARTS[] = $test;
        foreach ($PARTS as $part) {
                $text .= $part;
-       }
+       } // END - foreach
 
        // Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
        return compileCode(str_replace("\n", "<br />\n", $text));
@@ -156,7 +156,7 @@ function sendHtmlEmail($to, $subject, $message, $FROM) {
                // Send mail away as HTML
                $FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM;
                sendEmail($to, $subject, $message, 'N', $FROM);
-       }
+       } // END - if
 }
 
 //