\\1@\\2\\3", $text); $text = eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","\\2",$text); $text = eregi_replace("\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]","\\2",$text); $text = eregi_replace("\\[font=([^\\[]*)\\]([^\\[]*)\\[/font\\]","\\2",$text); $text = eregi_replace("\\[align=([^\\[]*)\\]([^\\[]*)\\[/align\\]","
Quote:
",$text); $text = eregi_replace("\[quote=([[:alnum:]]+)\]","Quote (\\1):",$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 opmaak($text) { $text = eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$text); $text = str_replace("[sup]", "", $text); $text = str_replace("[/sup]", "", $text); $text = str_replace("[s]","
",$text); $text = eregi_replace("\[/quote\]","",$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); $text = str_replace("\r", "
", $text); $text = nl2br($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; } function opmaak_oud($text) { $text = nl2br($text); // Geef enters weer //$text = stripslashes($text); $text = str_replace("", "[php]", $text); $text = str_replace("?>", "?>[/php]", $text); $text = linken($text); //deze moet hier staan $text = ubb($text); //deze moet hier staan $text = smillies($text); //Hier worden de smillies omgezet $text = scheldwoordenfilter($text); // Hier worden scheldwoorden er uit gefilterd return $text; } ?>