]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
Further rewrites due to deprecated functions in 5.3.1
[mailer.git] / inc / libs / newsletter_functions.php
index fe1d990e5b603368b70ecc2aaa5c31bc043213af..8ecfe7373de5b24cc79bbf5ec5c23f05326b0b56 100644 (file)
@@ -47,12 +47,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...
@@ -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);