//Smileys:
//str_replace("altes-zeichen","neues-zeichen","zeichenkette");
$post = str_replace(":-)","<img src=\"smile01.gif\"> ",$post);
$post = str_replace(";-)","<img src=\"smile02.gif\"> ",$post);
$post = str_replace(":O","<img src=\"smile03.gif\"> ",$post);
$post = str_replace(";-(","<img src=\"smile04.gif\"> ",$post);
$post = str_replace(":D","<img src=\"smile05.gif\"> ",$post);
$post = str_replace("8-)","<img src=\"smile06.gif\"> ",$post);
$post = str_replace(":-O","<img src=\"smile07.gif\"> ",$post);
$post = str_replace(":-(","<img src=\"smile08.gif\"> ",$post);
$post = str_replace("(?)","<img src=\"smile09.gif\"> ",$post);
$post = str_replace("(!)","<img src=\"smile10.gif\"> ",$post);
// URLS in HRC umwandeln:
$post=eregi_replace("([ \r\n])[ url]http://[/ url]([^ ,\r\n]*)","\\1[ url]http://\\2[/ url]",$post);
$post=eregi_replace("([ \r\n])[ url]https://[/ url]([^ ,\r\n]*)","\\1[ url]https://\\2[/ url]",$post);
$post=eregi_replace("([ \r\n])[ url]ftp://[/ url]([^ ,\r\n]*)","\\1[ url]ftp://\\2[/ url]",$post);
$post=eregi_replace("([ \r\n])www\\.([^ ,\r\n]*)","\\1[ url]http://www.\\2[/ url]",$post);
$post=eregi_replace("^[ url]http://[/ url]([^ ,\r\n]*)","[ url]http://\\1[/ url]",$post);
$post=eregi_replace("^[ url]https://[/ url]([^ ,\r\n]*)","[ url]https://\\1[/ url]",$post);
$post=eregi_replace("^[ url]ftp://[/ url]([^ ,\r\n]*)","[ url]ftp://\\1[/ url]",$post);
$post=eregi_replace("^www\\.([^ ,\r\n]*)","[ url]http://www.\\1[/ url]",$post);
// ######### HRC Codes:
$post = str_replace("[ hr]","<hr>",$post);
$post = str_replace("[ b ]","<b>",$post);
$post = str_replace("[ /b ]","</b>",$post);
$post = str_replace("[ i ]","<i>",$post);
$post = str_replace("[ /i ]","</i>",$post);
$post = str_replace("[ img]","<img border=0 src=",$post);
$post = str_replace("[ /img]",">",$post);
// [ URL]
$post=eregi_replace("\\[ url\\]www.([^\\[]*)\\[ /url\\]","<a href=\"http://www.\\1\" target=_blank>\\1</a>",$post);
$post=eregi_replace("\\[ url\\]([^\\[]*)\\[ /url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$post);
// [ URL=
$post=eregi_replace("\\[ url=\"([^\"]([^\\[]*)\\[\\ /url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$post);
$post=eregi_replace("\\[ url=([^\"]([^\\[]*)\\[\\ /url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$post);
$post=eregi_replace("\\[ email\\]([^\\[]*)\\[ /email\\]","<a href=\"mailto:\\1\">\\1</a>",$post);
// ########## Ende HRC Codes