X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=c8db16ae1b0c760084e77d1f6a8d25f272b18cce;hb=4cf6094cc3cbebfda691fa797e00fe674bbb329c;hp=0ca2f48b0402d0357f9cfcb221930476f9afce82;hpb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e;p=mailer.git diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php index 0ca2f48b04..c8db16ae1b 100644 --- a/inc/libs/html_mail_functions.php +++ b/inc/libs/html_mail_functions.php @@ -14,12 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -40,14 +38,14 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // function addValidHtmlTags() { $OUT = ''; if (!is_array($GLOBALS['html_tags'])) return ""; foreach ($GLOBALS['html_tags'] as $tag) { - $OUT .= ", ".strtoupper($tag); + $OUT .= ', ' . strtoupper($tag); } $OUT = substr($OUT, 2); return $OUT; @@ -60,11 +58,12 @@ function checkHtmlTags ($html) { $check = strtolower(substr($test, strpos($test, '<') + 1, strpos($test, '>') - strpos($test, '<') - 1)); $check = str_replace('/', '', $check); if (!in_array($check, $GLOBALS['html_tags'])) { - // Invalid tag found! + // Invalid tag found return ''; - } + } // END - if $test = substr($test, strpos($test, '>') + 1); - } + } // END - while + // Return tested code return $html; } @@ -151,14 +150,5 @@ function insertUrlsIntoHtml ($text) { return preCompileCode(str_replace("\n", "
\n", $text)); } -// Sends a HTML mail to the user -function sendHtmlEmail($to, $subject, $message, $FROM) { - if (isExtensionActive('html_mail')) { - // Send mail away as HTML - $FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM; - sendEmail($to, $subject, $message, 'N', $FROM); - } // END - if -} - -// +// [EOF] ?>