X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fnewsletter_functions.php;h=adf423906f6ce039bb95220db0d6993bab58fafd;hb=0485696cfa583e48444a8c98a9eb0537b0cb33b1;hp=5dae6a1419aeba69feb4c362eac403011400e874;hpb=0fe94791af05018868398d3c6c87d2b16f9557a2;p=mailer.git diff --git a/inc/libs/newsletter_functions.php b/inc/libs/newsletter_functions.php index 5dae6a1419..adf423906f 100644 --- a/inc/libs/newsletter_functions.php +++ b/inc/libs/newsletter_functions.php @@ -14,10 +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 * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,12 +45,12 @@ function insertNewsletterUrls ($text) { $test = $text; // First replace URLs... - while (ereg('http://', $test)) { + while (isInString('http://', $test)) { $check = substr($test, strpos($test, 'http://')); $check2 = $check; // See ext-html.php if you want to add more URL ends... foreach ($GLOBALS['url_ends'] as $end) { - if (ereg($end, $check)) $check = substr($check, 0, strpos($check, $end)); + if (isInString($end, $check)) $check = substr($check, 0, strpos($check, $end)); } // END - foreach // Now replace the URL against anchor container and pray... @@ -69,7 +68,7 @@ function insertNewsletterUrls ($text) { // ... what will the email address be out the @... ;-) $PARTS = array(); - while (ereg('@', $test)) { + while (isInString('@', $test)) { $pos = strpos($test, '@'); $test2 = substr($test, 0, $pos); @@ -120,8 +119,8 @@ function insertNewsletterUrls ($text) { $text .= $part; } - // Compile possible own HTML tags out... - return compileCode($text); + // Pre-ompile possible own HTML tags out... + return preCompileCode($text); } // Wrapper for sending newsletter and wrapping URLs / HTML mail