X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=eb205ec7345e7edd84dadf394b85ac0e42a1614f;hp=0ca2f48b0402d0357f9cfcb221930476f9afce82;hb=ec9f020e34a9f2029a2ea0969564dda015beca8a;hpb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php index 0ca2f48b04..eb205ec734 100644 --- a/inc/libs/html_mail_functions.php +++ b/inc/libs/html_mail_functions.php @@ -14,11 +14,9 @@ * $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 * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -40,7 +38,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // function addValidHtmlTags() { @@ -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] ?>