Polaroid
My own function for parsing texts to apply rich text formatting ----> And QuickLinks */ if(!function_exists('format')) { function format($text) { global $j21login,$mysid,$sessname,$j21sid,$masnun,$bst,$mytime,$today,$now,$site; /* ------> Filters */ $text = str_replace('$','$$',$text); $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("/\[color\=(.*?)\](.*?)\[\/color\]/is","$2",$text); $text=preg_replace("/\[move\](.*?)\[\/move\]/i","$1", $text); $text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","$2",$text); $text = preg_replace("/\[att\=(.*?)\](.*?)\[\/att\]/is","Attached:[$2]
Download
",$text); $text = preg_replace("/\[img\=(.*?)\]/is","\"$1\"/",$text); $text = preg_replace("/\[invite\=(.*?)\](.*?)\[\/invite\]/is","Dear ".$j21login.", Please visit my topic ::: $2",$text); $text = preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","$2",$text); $text = preg_replace("/\[gift\=(.*?)\](.*?)\[\/gift\]/is","$2",$text); $text = preg_replace("/\[forum\=(.*?)\](.*?)\[\/forum\]/is","$2",$text); $text = preg_replace("/\[user\=(.*?)\](.*?)\[\/user\]/is","$2",$text); $text = preg_replace("/\[help\=(.*?)\](.*?)\[\/help\]/is","$2",$text); $text = str_replace("[chat]","[Chat]",$text); $text = str_replace("[br/]","
",$text); $text = str_replace("[user]","$j21login",$text); $text = str_replace("[date]","$today",$text); $text = str_replace("[time]","$now",$text); $text = str_replace("[now]","$mytime",$text); $text = str_replace("[site]","$site",$text); $text = str_replace("[stats]","[Site Stats]",$text); $text = str_replace("[profile]","[My Profile]",$text); return $text ; }}?>