///////////////////////////////////parse bbcode
function getbbcode($text, $sid="")
{
$text=preg_replace("/[b](.?)[/b]/i","\1", $text);
$text=preg_replace("/[i](.?)[/i]/i","\1", $text);
$text=preg_replace("/[u](.?)[/u]/i","\1", $text);
$text=preg_replace("/[big](.?)[/big]/i","\1", $text);
$text=preg_replace("/[small](.?)[/small]/i","\1", $text);
$text = preg_replace("/[url=(.?)](.?)[/url]/is","<a href="$1">$2</a>",$text);
$text = preg_replace("/[topic=(.?)](.?)[/topic]/is","<a href="index.php?action=viewtpc&tid=$1&sid=$sid">$2</a>",$text);
$text = preg_replace("/[club=(.?)](.?)[/club]/is","<a href="index.php?action=gocl&clid=$1&sid=$sid">$2</a>",$text);
$text = preg_replace("/[blog=(.?)](.*?)[/blog]/is","<a href="index.php?action=viewblog&bid=$1&sid=$sid">$2</a>",$text);
//$text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\"></a>", $text);
if(substr_count($text,"[br/]")<=3){
$text = str_replace("[br/]","
",$text);
}
$text = str_replace(".co.Uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".co.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".CO.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.UK","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.Uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cO.uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".co.uk","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BiZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".bIZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".biZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BIZ","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".BIz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Biz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".biz","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cOm","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".c0m","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".CoM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".cOM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".coM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".COM","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".COm","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".com","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uNi.cC","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.CC","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.Cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNI.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".UNi.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".uni.cc","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".OrG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".orG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".ORG","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".ORg","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".org","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NeT","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".net","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".nEt","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".neT","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NET","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".NEt","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".Net","admin warning. you will be ban for sending links.",$text);
$text = str_replace(".net","admin warning. you will be ban for sending links.",$text);
$text = str_replace("wapx","gay-site",$text);
$text = str_replace("wapX","gay-site",$text);
$text = str_replace("Wapx","gay-site",$text);
$text = str_replace("WApx","gay-site",$text);
$text = str_replace("WAPx","gay-site",$text);
$text = str_replace("WAPX","gay-site",$text);
$text = str_replace("WapX","gay-site",$text);
$text = str_replace("wApx","gay-site",$text);
$text = str_replace("waPx","gay-site",$text);
$text = str_replace("WaPx","gay-site",$text);
$text = str_replace("wapX","gay-site",$text);
$text = str_replace("waPX","gay-site",$text);
$text = str_replace("WApX","gay-site",$text);
$text = str_replace("hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("hiphopwap","mhiphop4wap-gay",$text);
$text = str_replace("Hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("4Shizzle","4gay",$text);
$text = str_replace("4shizzle","4gay",$text);
$text = str_replace("hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("Hiphop4shizzle","hiphop4gay",$text);
$text = str_replace("hiphopwap.tittat","hiphop4wap-gay",$text);
$text = str_replace("hiphopwap","mhiphop4wap-gay",$text);
$text = str_replace("Hiphopwap","hiphop4wap-gay",$text);
$text = str_replace("fimifOrum","madonez",$text);
$text = str_replace("fimiforum","madonez",$text);
$text = str_replace("Fimiforum","madonez",$text);
$text = str_replace("FimiForum","madonez",$text);
$text = str_replace("fimizone","if u spam, u will be ban",$text);
$text = str_replace("Fimizone","if u spam, u will be ban",$text);
$text = str_replace("fimizone","if u spam, u will be ban",$text);
$text = str_replace("2wap","2crapforwap",$text);
$text = str_replace("2WAP","2crapforwap",$text);
$text = str_replace("2wAp","2crapforwap",$text);
$text = str_replace("2w4p","2crapforwap",$text);
$text = str_replace("2waP","2crapforwap",$text);
$text = str_replace("2Wap","2crapforwap",$text);
$text = str_replace("hiphop4u","britneyspears",$text);
$text = str_replace("HIPHOP4U","britneyspears",$text);
$text = str_replace("HiPhOp4U","britneyspears",$text);
$text = str_replace("hIpHoP4u","britneyspears",$text);
$text = str_replace("Hiphop4U","britneyspears",$text);
$text = str_replace("Hiphop4u","britneyspears",$text);
$text = str_replace("HipHop4u","britneyspears",$text);
$text = str_replace("hh4u","britneyspears",$text);
$text = str_replace("HH4U","britneyspears",$text);
$text = str_replace("Hh4u","britneyspears",$text);
$text = str_replace("hH4U","britneyspears",$text);
$text = str_replace("HH4u","britneyspears",$text);
$text = str_replace("hh4U","britneyspears",$text);
return $text;
GOT ONE BUT THANKS ANY WAYS I RIP IT FROM THE OLD LAVALAIR