-<?
+<?php
$strings_php = true;
$text = str_replace(" ", "", $text);
$text = str_replace(",", ";", $text);
$array = explode(";", $text);
+ for ($i = 0; $i < count ($array); $i++) {
+ $array[$i] = eregi_replace ("^.*\<", "", $array[$i]);
+ $array[$i] = eregi_replace ("\>.*$", "", $array[$i]);
+ }
return $array;
}
}
function translateText($body, $wrap_at, $charset) {
+ include ("../functions/url_parser.php");
/** Add any parsing you want to in here */
$body = trim($body);
$body_ary = explode("\n", $body);
$line = "<TT><FONT COLOR=000000>$line</FONT></TT><BR>\n";
}
+ $line = parseEmail ($line);
+ $line = parseUrl ($line);
$new_body[$i] = "$line";
}
$bdy = implode("\n", $new_body);
function replace_escaped_spaces ($string) {
return str_replace(" ", " ", $string);
}
-
- function count_chars($string) {
- for ($i = 0; $i < strlen($string); $i++) {
- $ch = substr($string, $i, 1);
- $size++;
- if ($ch == "\\") {
- $i++;
- $ch = substr($string, $i, 1);
- if ($ch == "n")
- $i--;
- if ($ch == "r")
- $i--;
- }
- }
- return $size;
- }
?>