volledige-ubb-parser
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
function parseubb($bericht,$quote_color){
$bericht = str_replace ("[br]","\n",$bericht);
$bericht = str_replace ("\n","<br>",$bericht);
$bericht = str_replace ("","<b>Code:</b><br><table bgcolor=\"#000000\" cellspacing=\"1\" width=\"90%\"><tr><td><table cellpadding=2 cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\"><tr><td><font face=Courier size=\"1\" color=\"#000000\">", $bericht);
$bericht = str_replace ("", "</font></td></tr></table></td></tr></table>", $bericht);
$bericht = str_replace ("[b ]", "<b>", $bericht); // [b ] zonder spatie
$bericht = str_replace ("[i ]", "<i>", $bericht); // [i ] zonder spatie
$bericht = str_replace ("[u ]", "<u>", $bericht); // [u ] zonder spatie
$bericht = str_replace ("[s]", "<s>", $bericht);
$bericht = str_replace ("[/b ]", "</b>", $bericht); // [/b ] zonder spatie
$bericht = str_replace ("[/i ]", "</i>", $bericht); // [/i ] zonder spatie
$bericht = str_replace ("[/u ]", "</u>", $bericht); // [/u ] zonder spatie
$bericht = str_replace ("[/s]", "</s>", $bericht);
$bericht = str_replace ("[move]", "<div align=\"center\"><marquee width=\"90%\">", $bericht);
$bericht = str_replace ("[/move]", "</marquee></div>", $bericht);
$bericht = preg_replace ("/\[glow(.*)\](.*)\[\/glow\]/",">> GLOW <<",$bericht);
$bericht = preg_replace ("[/glow]","", $bericht);
$bericht = preg_replace ("/\[shadow(.*)\](.*)\[\/shadow\]/", ">> SHADOW <<", $bericht);
$bericht = preg_replace ("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "<font color=\"\\1\">\\2</font>", $bericht);
$bericht = preg_replace ("/\[font=(.*)\](.*)\[\/font\]/", "<font face=\"$1\">$2</font>", $bericht);
$bericht = preg_replace ("/\[size=(.*)\](.*)\[\/size\]/", "<font size=\"$1\">$2</font>", $bericht);
$bericht = preg_replace("/\[img\](.*?)\[\/img\]/si", "<img src=\"\\1\" border=\"0\">",$bericht);
$bericht = str_replace ("[tt]", "<tt>", $bericht);
$bericht = str_replace ("[/tt]", "</tt>", $bericht);
$bericht = str_replace ("[left]", "<div align=left>", $bericht);
$bericht = str_replace ("[/left]", "</div>", $bericht);
$bericht = str_replace ("[center]", "<div align=\"center\">", $bericht);
$bericht = str_replace ("[/center]", "</div>", $bericht);
$bericht = str_replace ("[right]", "<div align=\"right\">", $bericht);
$bericht = str_replace ("[/right]", "</div>", $bericht);
$bericht = str_replace ("[sub]", "<sub>", $bericht);
$bericht = str_replace ("[/sub]", "</sub>", $bericht);
$bericht = str_replace ("[sup]", "<sup>", $bericht);
$bericht = str_replace ("[/sup]", "</sup>", $bericht);
$bericht = str_replace ("[fixed]", "<font face=\"Courier New\">", $bericht);
$bericht = str_replace ("[/fixed]", "</font>", $bericht);
$bericht = str_replace ("[[","{{",$bericht);
$bericht = str_replace ("]]","}}",$bericht);
$bericht = str_replace ("|","|",$bericht);
$bericht = str_replace ("[pre]","<pre>",$bericht);
$bericht = str_replace ("[/pre]","</pre>",$bericht);
$bericht = str_replace ("{{","[",$bericht);
$bericht = str_replace ("}}","]",$bericht);
$bericht = str_replace ("[hr]","<hr color=\"#FFFFFF\" noshade />",$bericht);
$bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = preg_replace("/\[url\](.*?)\[\/url\]/si", "<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = preg_replace("/\[email\](.*?)\[\/email\]/si", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = preg_replace ("#\[ftp\]([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\[/ftp\]#", "<a href=\"ftp://\\1\\2\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace ("#\[ftp\]([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\[/ftp\]#", "<a href=\"ftp://\\1\" target=\"_blank\">\\1</a>", $bericht);
$bericht = preg_replace ("#\[ftp=([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/ftp\]#", "<a href=\"ftp://\\1\\2\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace ("#\[ftp=([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/ftp\]#", "<a href=\"ftp://\\1\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace("/\[quote=(.+?)\](.+?)\[\/quote\]/is", '<br><table width="100%" cellspacing="0" cellpadding="0"><tr><td width="5%"> </td><td>Quote:</td></tr><tr><td width="5%"> </td><td bgcolor=".$quote_color." class="border">$1<br>$2</td></tr></table><br>', $bericht);
$bericht = str_replace ("[list]","<ul>",$bericht);
$bericht = str_replace ("[*]","<li>",$bericht);
$bericht = str_replace ("[/list]","</li></ul>",$bericht);
$bericht = str_replace ("::)","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[rolleyes]","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("::-)","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":)","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[smile]","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-)","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";)","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[wink]","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";-)","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":D","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cheesy]","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-D","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";D","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[grin]","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";-D","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (">:(","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[angry]","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (">:-(","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":(","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[sad]","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-(","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":o","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[shocked]","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-o","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("8)","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cool]","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("8-)","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("???","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace ("[huh]","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace (":?","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace (":P","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[tongue]","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-P","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":[","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[embarassed]","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-[","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-X","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[lipsrsealed]","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":X","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-/","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[undecided]","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-s","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":s","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":*","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[kiss]","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-*","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":\'(","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cry]","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":\'-(","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("(L)","<img src=\"gif/love.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[love]","<img src=\"gif/love.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
return $bericht;
}
?>
function parseubb($bericht,$quote_color){
$bericht = str_replace ("[br]","\n",$bericht);
$bericht = str_replace ("\n","<br>",$bericht);
$bericht = str_replace ("","<b>Code:</b><br><table bgcolor=\"#000000\" cellspacing=\"1\" width=\"90%\"><tr><td><table cellpadding=2 cellspacing=\"0\" bgcolor=\"#FFFFFF\" width=\"100%\"><tr><td><font face=Courier size=\"1\" color=\"#000000\">", $bericht);
$bericht = str_replace ("", "</font></td></tr></table></td></tr></table>", $bericht);
$bericht = str_replace ("[b ]", "<b>", $bericht); // [b ] zonder spatie
$bericht = str_replace ("[i ]", "<i>", $bericht); // [i ] zonder spatie
$bericht = str_replace ("[u ]", "<u>", $bericht); // [u ] zonder spatie
$bericht = str_replace ("[s]", "<s>", $bericht);
$bericht = str_replace ("[/b ]", "</b>", $bericht); // [/b ] zonder spatie
$bericht = str_replace ("[/i ]", "</i>", $bericht); // [/i ] zonder spatie
$bericht = str_replace ("[/u ]", "</u>", $bericht); // [/u ] zonder spatie
$bericht = str_replace ("[/s]", "</s>", $bericht);
$bericht = str_replace ("[move]", "<div align=\"center\"><marquee width=\"90%\">", $bericht);
$bericht = str_replace ("[/move]", "</marquee></div>", $bericht);
$bericht = preg_replace ("/\[glow(.*)\](.*)\[\/glow\]/",">> GLOW <<",$bericht);
$bericht = preg_replace ("[/glow]","", $bericht);
$bericht = preg_replace ("/\[shadow(.*)\](.*)\[\/shadow\]/", ">> SHADOW <<", $bericht);
$bericht = preg_replace ("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "<font color=\"\\1\">\\2</font>", $bericht);
$bericht = preg_replace ("/\[font=(.*)\](.*)\[\/font\]/", "<font face=\"$1\">$2</font>", $bericht);
$bericht = preg_replace ("/\[size=(.*)\](.*)\[\/size\]/", "<font size=\"$1\">$2</font>", $bericht);
$bericht = preg_replace("/\[img\](.*?)\[\/img\]/si", "<img src=\"\\1\" border=\"0\">",$bericht);
$bericht = str_replace ("[tt]", "<tt>", $bericht);
$bericht = str_replace ("[/tt]", "</tt>", $bericht);
$bericht = str_replace ("[left]", "<div align=left>", $bericht);
$bericht = str_replace ("[/left]", "</div>", $bericht);
$bericht = str_replace ("[center]", "<div align=\"center\">", $bericht);
$bericht = str_replace ("[/center]", "</div>", $bericht);
$bericht = str_replace ("[right]", "<div align=\"right\">", $bericht);
$bericht = str_replace ("[/right]", "</div>", $bericht);
$bericht = str_replace ("[sub]", "<sub>", $bericht);
$bericht = str_replace ("[/sub]", "</sub>", $bericht);
$bericht = str_replace ("[sup]", "<sup>", $bericht);
$bericht = str_replace ("[/sup]", "</sup>", $bericht);
$bericht = str_replace ("[fixed]", "<font face=\"Courier New\">", $bericht);
$bericht = str_replace ("[/fixed]", "</font>", $bericht);
$bericht = str_replace ("[[","{{",$bericht);
$bericht = str_replace ("]]","}}",$bericht);
$bericht = str_replace ("|","|",$bericht);
$bericht = str_replace ("[pre]","<pre>",$bericht);
$bericht = str_replace ("[/pre]","</pre>",$bericht);
$bericht = str_replace ("{{","[",$bericht);
$bericht = str_replace ("}}","]",$bericht);
$bericht = str_replace ("[hr]","<hr color=\"#FFFFFF\" noshade />",$bericht);
$bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = preg_replace("/\[url\](.*?)\[\/url\]/si", "<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = preg_replace("/\[email\](.*?)\[\/email\]/si", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = preg_replace ("#\[ftp\]([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\[/ftp\]#", "<a href=\"ftp://\\1\\2\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace ("#\[ftp\]([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\[/ftp\]#", "<a href=\"ftp://\\1\" target=\"_blank\">\\1</a>", $bericht);
$bericht = preg_replace ("#\[ftp=([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/ftp\]#", "<a href=\"ftp://\\1\\2\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace ("#\[ftp=([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/ftp\]#", "<a href=\"ftp://\\1\" target=\"_blank\">\\2</a>", $bericht);
$bericht = preg_replace("/\[quote=(.+?)\](.+?)\[\/quote\]/is", '<br><table width="100%" cellspacing="0" cellpadding="0"><tr><td width="5%"> </td><td>Quote:</td></tr><tr><td width="5%"> </td><td bgcolor=".$quote_color." class="border">$1<br>$2</td></tr></table><br>', $bericht);
$bericht = str_replace ("[list]","<ul>",$bericht);
$bericht = str_replace ("[*]","<li>",$bericht);
$bericht = str_replace ("[/list]","</li></ul>",$bericht);
$bericht = str_replace ("::)","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[rolleyes]","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("::-)","<img src=\"gif/rolleyes.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":)","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[smile]","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-)","<img src=\"gif/smiley.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";)","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[wink]","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";-)","<img src=\"gif/wink.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":D","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cheesy]","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-D","<img src=\"gif/cheesy.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";D","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[grin]","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (";-D","<img src=\"gif/grin.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (">:(","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[angry]","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (">:-(","<img src=\"gif/angry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":(","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[sad]","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-(","<img src=\"gif/sad.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":o","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[shocked]","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-o","<img src=\"gif/shocked.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("8)","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cool]","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("8-)","<img src=\"gif/cool.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("???","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace ("[huh]","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace (":?","<img src=\"gif/huh.gif\" width=\"15\" height=\"22\" border=\"0\">",$bericht);
$bericht = str_replace (":P","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[tongue]","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-P","<img src=\"gif/tongue.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":[","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[embarassed]","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-[","<img src=\"gif/embarassed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-X","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[lipsrsealed]","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":X","<img src=\"gif/lipsrsealed.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-/","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[undecided]","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-s","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":s","<img src=\"gif/undecided.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":*","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[kiss]","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":-*","<img src=\"gif/kiss.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":\'(","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[cry]","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace (":\'-(","<img src=\"gif/cry.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("(L)","<img src=\"gif/love.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
$bericht = str_replace ("[love]","<img src=\"gif/love.gif\" width=\"15\" height=\"15\" border=\"0\">",$bericht);
return $bericht;
}
?>