]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
More usage of wrapper functions
[mailer.git] / inc / libs / newsletter_functions.php
index fe1d990e5b603368b70ecc2aaa5c31bc043213af..1cb6390749e8ad16c4cbc38ba3d61736ae86f332 100644 (file)
  * $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 *
@@ -47,12 +45,14 @@ 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 - if
                } // END - foreach
 
                // Now replace the URL against anchor container and pray...
@@ -70,7 +70,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);
 
@@ -121,8 +121,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