Quote:
",$text);
$text = eregi_replace("\[quote=([[:alnum:]]+)\]","
Quote (\\1):
",$text);
$text = eregi_replace("\[/quote\]","
",$text);
return $text;
}
function smilies($string){
$search = array(
":(",
":)" ,
":-)" ,
":D",
":d",
";)",
":P",
":p",
":S",
":s",
"(b)",
":@",
"(8)",
"(-)",
"(!)",
":|",
"(?)",
":$",
"(b)",
"(c)",
"(e)",
"(n)",
"(v)",
"(r)",
"(l)",
"(k)",
"(slot)",
"(h)");
$replace = array(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
);
$string = str_replace($search, $replace, $string);
return $string;
}
function Scheldwoordenfilter($text){
$text = str_replace("bulletstar", "*SPAM*", $text);
$text = str_replace("BULLETSTAR", "*SPAM*", $text);
$text = str_replace(".net", "*SPAM*", $text);
$text = str_replace("real", "*SPAM*", $text);
$text = str_replace("REAL", "*SPAM*", $text);
$text = str_replace("http://www.members.lycos.nl", "*SPAM*", $text);
$text = str_replace("lycos", "*SPAM*", $text);
$text = str_replace("funpic.org", "*SPAM*", $text);
$text = str_replace("hosting-complete", "*SPAM*", $text);
$text = str_replace("http://figthers.fi.funpic.org/NL/", "*SPAM*", $text);
return $text;
}
function maakop($text) {
$text = eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$text);
$text = str_replace("[sup]", "", $text);
$text = str_replace("[/sup]", "", $text);
$text = str_replace("[s]","",$text);
$text = str_replace("[/s]","",$text);
$text = str_replace("[b]", "",$text);
$text = str_replace("[/b]","",$text);
$text = str_replace("[center]", "",$text);
$text = str_replace("[/center]","
",$text);
$text = str_replace("[left]", "",$text);
$text = str_replace("[/left]","
",$text);
$text = str_replace("[right]", "",$text);
$text = str_replace("[/right]","
",$text);
$text = str_replace("[i]","",$text);
$text = str_replace("[/i]","",$text);
$text = str_replace("[u]","",$text);
$text = str_replace("[/u]","",$text);
$text = eregi_replace("\[url\]www.([^\[]*)","\\1", $text);
$text = eregi_replace("\[url\]([^\[]*)","\\1", $text);
$text = eregi_replace("(\[url=)([A-Za-z0-9_~&=;\?:%@#./\-]+[A-Za-z0-9/])(\])", "", $text);
$text = eregi_replace("\[url](http://(.*))", "\\1", $text);
$text = eregi_replace("(\[/url\])", "", $text);
$text = str_replace("http://http://", "http://", $text);
//Youtube film
$text = preg_replace("#\[youtube\](.+?)\[/youtube\]#is","",$text);
$text = linken($text); // Colors enzo.
$text = smilies($text); //Hier worden de smillies omgezet
$text = scheldwoordenfilter($text); // Hier worden scheldwoorden er uit gefilterd
$text = nl2br($text);
return $text;
}?>