2014-07-30 03:00:17
function parse_html($Text)
	{
		$Text=htmlspecialchars($Text);
		$Text=str_replace("\r","",$Text);
		$Text=str_replace("\n","<br>",$Text);
		//$Text=str_replace("  ","&nbsp;&nbsp;",$Text);
		$Text=preg_replace("/\r\n/","<br>",$Text);
		$Text=preg_replace("/\r/","<br>",$Text);
		$Text=preg_replace("/\\t/is","  ",$Text);
		$Text=str_replace("\n","<br>",$Text);
		$Text=preg_replace("/\[img\](.+?)\[\/img\]/is","<img src=\\1>",$Text);
		$Text=preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/is","<font color=\\1>\\2</font>",$Text);
		$Text=preg_replace("/\[size=(.+?)\](.+?)\[\/size\]/is","<font size=\\1>\\2</font>",$Text);
		$Text=preg_replace("/\[i\](.+?)\[\/i\]/is","<i>\\1</i>",$Text);
		$Text=preg_replace("/\[b\](.+?)\[\/b\]/is","<b>\\1</b>",$Text);
		$Text=preg_replace("/\[u\](.+?)\[\/u\]/is","<u>\\1</u>",$Text);
		$Text= preg_replace ("/\[center\](.*)\[\/center\]/siU", "<center>\\1</center>", $Text);
		$Text=preg_replace("/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/esiU","check_url('\\5', '\\7')",$Text);
		$Text=preg_replace("/(\[)(url)(])([^\"]*)(\[\/url\])/esiU","check_url('\\4')",$Text);
 
		//$Text=preg_replace("/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4)(.*)(\[\/url\])/siU","<a href=\"http://www.\\6\" target=\"_blank\">\\8</a>",$Text);
		//$Text=preg_replace("/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU","<a href=\"\\5\" target=\"_blank\">\\7</a>",$Text);
		//$Text=preg_replace("/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU","<a href=\"http://www.\\5\" target=\"_blank\">\\5</a>",$Text);
		//$Text=preg_replace("/(\[)(url)(])([^\"]*)(\[\/url\])/siU","<a href=\"\\4\" target=\"_blank\">\\4</a>",$Text);
		$Text=preg_replace("/\[quote\](.+?)\[\/quote\]/is","<blockquote>Quote:</font><hr>\\1<hr></blockquote>", $Text);
		$Text=preg_replace("/\[code\](.+?)\[\/code\]/is","<blockquote><font size='1' face='Times New Roman'>code:</font><hr color='lightblue'><i>\\1</i><hr color='lightblue'></blockquote>", $Text);
		$Text=preg_replace("/\[say:(.+?)\](.+?)\[\/say:(.+?)\]/is","<img src='?m=function/text-image/say=\\2/color=\\1/type=\\3' border='0'>",$Text);
		return $Text;
	}
Invalid Email or Password