- function tag ($x) {
- $x = ereg_replace('\[puce\]','<font color="#464E5D"><strong>•</strong></font>',$x);
- $x = preg_replace("/\[b\](.+)\[\/b\]/","<b>\\1</b>",$x);
- $x = preg_replace("/\[u\](.+)\[\/u\]/","<u>\\1</u>",$x);
- $x = preg_replace("/\[i\](.+)\[\/i\]/","<i>\\1</i>",$x);
- $x = preg_replace("/\[center\](.+)\[\/center\]/","<center>\\1</center>",$x);
- $x = preg_replace("/\[left\](.+)\[\/left\]/","<div align=\"left\">\\1</div>",$x);
- $x = preg_replace("/\[right\](.+)\[\/right\]/","<div align=\"right\">\\1</div>",$x);
- $x = preg_replace("/\[url=([^]]+)?\](.+)\[\/url\]/Ui","<a href=\"http://\\1\">\\2</a>",$x);
- $x = preg_replace("/\[url=([^]]+)?\]/Ui","<a href=\"http://\\1\">\\1</a>",$x);
- $x = preg_replace("/\[img=([^]]+)?\]/","<img scr=\\1>",$x);
- $x = preg_replace("/\[urlblank=([^]]+)?\](.+)\[\/url\]/Ui","<a href=\"http://\\1\" target=\"_blank\">\\2</a>",$x);
- $x = preg_replace("/\[urlblank=([^]]+)?\]/Ui","<a href=\"http://\\1\" target=\"_blank\">\\1</a>",$x);
- $x = preg_replace("/\[mail=([^]]+)?\](.+)\[\/mail\]/Ui","<a href=\"mailto:\\1\">\\2</a>",$x);
- $x = preg_replace("/\[mail=([^]]+)?\]/Ui","<a href=\"mailto:\\1\">\\1</a>",$x);
- $x = preg_replace("/\[hr=([^]]+)?\]/Ui","<hr width=\"\\1\">",$x);
- $x = preg_replace("/\[hr]/","<hr>",$x);
- $x = preg_replace("/\[color=([^]]+)?\](.+)\[\/c\]/Ui","<font color=\"\\1\">\\2</font>",$x);
- return $x;
- }
function tag ($x) {
$x = ereg_replace('\[puce\]','<font color="#464E5D"><strong>•</strong></font>',$x);
$x = preg_replace("/\[b\](.+)\[\/b\]/","<b>\\1</b>",$x);
$x = preg_replace("/\[u\](.+)\[\/u\]/","<u>\\1</u>",$x);
$x = preg_replace("/\[i\](.+)\[\/i\]/","<i>\\1</i>",$x);
$x = preg_replace("/\[center\](.+)\[\/center\]/","<center>\\1</center>",$x);
$x = preg_replace("/\[left\](.+)\[\/left\]/","<div align=\"left\">\\1</div>",$x);
$x = preg_replace("/\[right\](.+)\[\/right\]/","<div align=\"right\">\\1</div>",$x);
$x = preg_replace("/\[url=([^]]+)?\](.+)\[\/url\]/Ui","<a href=\"http://\\1\">\\2</a>",$x);
$x = preg_replace("/\[url=([^]]+)?\]/Ui","<a href=\"http://\\1\">\\1</a>",$x);
$x = preg_replace("/\[img=([^]]+)?\]/","<img scr=\\1>",$x);
$x = preg_replace("/\[urlblank=([^]]+)?\](.+)\[\/url\]/Ui","<a href=\"http://\\1\" target=\"_blank\">\\2</a>",$x);
$x = preg_replace("/\[urlblank=([^]]+)?\]/Ui","<a href=\"http://\\1\" target=\"_blank\">\\1</a>",$x);
$x = preg_replace("/\[mail=([^]]+)?\](.+)\[\/mail\]/Ui","<a href=\"mailto:\\1\">\\2</a>",$x);
$x = preg_replace("/\[mail=([^]]+)?\]/Ui","<a href=\"mailto:\\1\">\\1</a>",$x);
$x = preg_replace("/\[hr=([^]]+)?\]/Ui","<hr width=\"\\1\">",$x);
$x = preg_replace("/\[hr]/","<hr>",$x);
$x = preg_replace("/\[color=([^]]+)?\](.+)\[\/c\]/Ui","<font color=\"\\1\">\\2</font>",$x);
return $x;
}