pagina stuurt niet door
dit zijn regels 72 tot 82 van het script bij het doorstuur stukje
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
<?PHP
} else if($_POST['username'] == $admin['username'] && $_POST['password'] == $admin['password'])
{
$_SESSION['login'] = TRUE;
$_SESSION['username'] = $_POST['username'];
$_SESSION['ipad'] = $_SERVER['REMOTE_ADDR'];
?>
Je bent succesvol ingelogd!
<Meta HTTP-Equiv=\"refresh\" Content=\"3;Url=index.php\">
<?PHP
} else
{
?>
} else if($_POST['username'] == $admin['username'] && $_POST['password'] == $admin['password'])
{
$_SESSION['login'] = TRUE;
$_SESSION['username'] = $_POST['username'];
$_SESSION['ipad'] = $_SERVER['REMOTE_ADDR'];
?>
Je bent succesvol ingelogd!
<Meta HTTP-Equiv=\"refresh\" Content=\"3;Url=index.php\">
<?PHP
} else
{
?>
wat doe ik fout?
Gewijzigd op 15/04/2011 18:08:20 door Christoph e
<Meta HTTP-Equiv="refresh" Content="3;Url=index.php">
en voor de zekerheid: session_start(); in ieder geval bovenaan ;$
Gerhard l op 15/04/2011 18:33:17:
en voor de zekerheid: session_start(); in ieder geval bovenaan ;$
ok maar dit is niet de voledige code en vanboven staat al en session dus dat hoefd niet meer
Toevoeging op 15/04/2011 20:37:23:
ok bedankt het werk maar nu geeft 1 pagina nog een ( zie pagina [link=http://www.oldtimerbeurs-hoogstraten.be/nederlands/nieuws/nieuwssysteem/lezen.php?id=1] [/link]
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?PHP
function text2ubb ($text)
{
global $img;
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = eregi_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = eregi_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = eregi_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
[/code]
function text2ubb ($text)
{
global $img;
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = eregi_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = eregi_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = eregi_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
[/code]
Gewijzigd op 15/04/2011 20:39:46 door christoph e
volgens mij zet je je script stil doordat je veel keer // gebruikt en dat schakelt de rest achter de // uit
ok bedankt en hoe kan ik dit oplossen?
Maar ik geloof niet dat dat een probleem kan zijn;)
nee maar bij de links op lijn 15 loop het denk ik vast omdat je daar http:// in staat en // is een comment tag
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
global $img;
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = preg_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = preg_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = preg_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = preg_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = preg_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = preg_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
Dus kijk eerst daar naar want als je goed naar de foutmeldingen kijkt kun je de meeste fouten er wel uithalen;)
Waarschijnlijk heb je deze regel verwijderd....
function text2ubb ($text)
{
Gewijzigd op 15/04/2011 21:00:31 door dennis meijer
Toevoeging op 15/04/2011 21:02:17:
mijn php programma zij ook al dat er iets ontbreekt
Toevoeging op 15/04/2011 21:05:24:
ok het script werkt nu met een fout minder ( maar de pagina werkt nog niet hieronder de voledige code "text2ubb.php"
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
114
115
116
117
118
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
114
115
116
117
118
<?PHP
function text2ubb ($text)
{
global $img;
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = preg_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = preg_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = preg_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
// auto. links genereren
$text = preg_replace("#(^|[ \n\r\t])www.([a-z\-0-9]+).([a-z]{2,4})($|[ \n\r\t])#i", "\\1<a href=\"http://www.\\2.\\3\" target=\"_blank\">www.\\2.\\3</a>\\4", $text);
// FTP://, HTTP://, HTTPS:// links maken
$text = preg_replace("#(^|[ \n\r\t])(((ftp://)|(http://)|(https://))([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+))#i", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $text);
// Smilies maken
$text = str_replace("(angel+)", "<img src='".$img['smiles']."/angel.png'>", $text);
$text = str_replace("(angry+)", "<img src='".$img['smiles']."/angry.png'>", $text);
$text = str_replace("(angry-s+)", "<img src='".$img['smiles']."/angry-s.png'>", $text);
$text = str_replace("(ass+)", "<img src='".$img['smiles']."/ass.png'>", $text);
$text = str_replace("(barf+)", "<img src='".$img['smiles']."/barf.png'>", $text);
$text = str_replace("(bitchin+)", "<img src='".$img['smiles']."/bitchin.png'>", $text);
$text = str_replace("(blush+)", "<img src='".$img['smiles']."/blush.png'>", $text);
$text = str_replace("(brr+)", "<img src='".$img['smiles']."/brr.png'>", $text);
$text = str_replace("(bucktoothed+)", "<img src='".$img['smiles']."/bucktoothed.png'>", $text);
$text = str_replace("(cool+)", "<img src='".$img['smiles']."/cool.png'>", $text);
$text = str_replace("(cry+)", "<img src='".$img['smiles']."/cry.png'>", $text);
$text = str_replace("(dammit+)", "<img src='".$img['smiles']."/dammit.png'>", $text);
$text = str_replace("(devil+)", "<img src='".$img['smiles']."/devil.png'>", $text);
$text = str_replace("(eep+)", "<img src='".$img['smiles']."/eep.png'>", $text);
$text = str_replace("(erm+)", "<img src='".$img['smiles']."/erm.png'>", $text);
$text = str_replace("(evil+)", "<img src='".$img['smiles']."/evil.png'>", $text);
$text = str_replace("(flowers+)", "<img src='".$img['smiles']."/flowers.png'>", $text);
$text = str_replace("(gasp+)", "<img src='".$img['smiles']."/gasp.png'>", $text);
$text = str_replace("(gdemmbarest+)", "<img src='".$img['smiles']."/gdemmbarest.png'>", $text);
$text = str_replace("(gdhappy+)", "<img src='".$img['smiles']."/gdhappy.png'>", $text);
$text = str_replace("(gdlaughing+)", "<img src='".$img['smiles']."/gdlaughing.png'>", $text);
$text = str_replace("(gdsad+)", "<img src='".$img['smiles']."/gdsad.png'>", $text);
$text = str_replace("(geek+)", "<img src='".$img['smiles']."/geek.png'>", $text);
$text = str_replace("(getlost+)", "<img src='".$img['smiles']."/getlost.png'>", $text);
$text = str_replace("(error+)", "<img src='".$img['smiles']."/error.png'>", $text);
$text = str_replace("(giggle+)", "<img src='".$img['smiles']."/giggle.png'>", $text);
$text = str_replace("(goodies+)", "<img src='".$img['smiles']."/goodies.png'>", $text);
$text = str_replace("(grin+)", "<img src='".$img['smiles']."/grin.png'>", $text);
$text = str_replace("(grr+)", "<img src='".$img['smiles']."/grr.png'>", $text);
$text = str_replace("(grumble+)", "<img src='".$img['smiles']."/grumble.png'>", $text);
$text = str_replace("(hat+)", "<img src='".$img['smiles']."/hat.png'>", $text);
$text = str_replace("(heh+)", "<img src='".$img['smiles']."/heh.png'>", $text);
$text = str_replace("(hey-hey+)", "<img src='".$img['smiles']."/hey-hey.png'>", $text);
$text = str_replace("(hoboyuck+)", "<img src='".$img['smiles']."/hoboyuck.png'>", $text);
$text = str_replace("(huh+)", "<img src='".$img['smiles']."/huh.png'>", $text);
$text = str_replace("(kiss+)", "<img src='".$img['smiles']."/kiss.png'>", $text);
$text = str_replace("(laughwink+)", "<img src='".$img['smiles']."/laughwink.png'>", $text);
$text = str_replace("(lol+)", "<img src='".$img['smiles']."/lol.png'>", $text);
$text = str_replace("(love+)", "<img src='".$img['smiles']."/love.png'>", $text);
$text = str_replace("(mello+)", "<img src='".$img['smiles']."/mello.png'>", $text);
$text = str_replace("(mixedup+)", "<img src='".$img['smiles']."/mixedup.png'>", $text);
$text = str_replace("(money+)", "<img src='".$img['smiles']."/money.png'>", $text);
$text = str_replace("(ninja+)", "<img src='".$img['smiles']."/ninja.png'>", $text);
$text = str_replace("(oops+)", "<img src='".$img['smiles']."/oops.png'>", $text);
$text = str_replace("(pirate+)", "<img src='".$img['smiles']."/pirate.png'>", $text);
$text = str_replace("(rip+)", "<img src='".$img['smiles']."/rip.png'>", $text);
$text = str_replace("(rolleyes+)", "<img src='".$img['smiles']."/rolleyes.png'>", $text);
$text = str_replace("(sad+)", "<img src='".$img['smiles']."/sad.png'>", $text);
$text = str_replace("(sad2+)", "<img src='".$img['smiles']."/sad2.png'>", $text);
$text = str_replace("(sadwink+)", "<img src='".$img['smiles']."/sadwink.png'>", $text);
$text = str_replace("(sarcastic+)", "<img src='".$img['smiles']."/sarcastic.png'>", $text);
$text = str_replace("(scared+)", "<img src='".$img['smiles']."/scared.png'>", $text);
$text = str_replace("(screwyou+)", "<img src='".$img['smiles']."/screwyou.png'>", $text);
$text = str_replace("(shocked+)", "<img src='".$img['smiles']."/shocked.png'>", $text);
$text = str_replace("(shudder+)", "<img src='".$img['smiles']."/shudder.png'>", $text);
$text = str_replace("(sick+)", "<img src='".$img['smiles']."/sick.png'>", $text);
$text = str_replace("(slant+)", "<img src='".$img['smiles']."/slant.png'>", $text);
$text = str_replace("(sleep+)", "<img src='".$img['smiles']."/sleep.png'>", $text);
$text = str_replace("(sleep2+)", "<img src='".$img['smiles']."/sleep2.png'>", $text);
$text = str_replace("(smile+)", "<img src='".$img['smiles']."/smile.png'>", $text);
$text = str_replace("(smirk+)", "<img src='".$img['smiles']."/smirk.png'>", $text);
$text = str_replace("(surprised+)", "<img src='".$img['smiles']."/surprised.png'>", $text);
$text = str_replace("(tongue+)", "<img src='".$img['smiles']."/tongue.png'>", $text);
$text = str_replace("(uh-yah+)", "<img src='".$img['smiles']."/uh-yah.png'>", $text);
$text = str_replace("(unhappy+)", "<img src='".$img['smiles']."/unhappy.png'>", $text);
$text = str_replace("(w00t+)", "<img src='".$img['smiles']."/what.png'>", $text);
$text = str_replace("(whoohoo+)", "<img src='".$img['smiles']."/whoohoo.png'>", $text);
$text = str_replace("(wink+)", "<img src='".$img['smiles']."/wink.png'>", $text);
$text = str_replace("(wizard+)", "<img src='".$img['smiles']."/wizard.png'>", $text);
$text = str_replace("(wub+)", "<img src='".$img['smiles']."/wub.png'>", $text);
$text = str_replace("(yuck+)", "<img src='".$img['smiles']."/yuck.png'>", $text);
$text = str_replace("(yuk+)", "<img src='".$img['smiles']."/yuk.png'>", $text);
echo $text;
}
?>
function text2ubb ($text)
{
global $img;
// \n ==> <BR>
$text = nl2br($text);
// Bold, Underline & Italic maken
$text = preg_replace("/\[b\][\n\r]*(.*?)\[\/b\]/is",'<b>\\1</b>', $text);
$text = preg_replace("/\[u\][\n\r]*(.*?)\[\/u\]/is",'<u>\\1</u>', $text);
$text = preg_replace("/\[i\][\n\r]*(.*?)\[\/i\]/is",'<i>\\1</i>', $text);
// http:// links maken
$text = preg_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]","<a href=\"http://\\2\" target=\"_blank\">http://\\2</a>", $text);
$text = preg_replace("\\[url=(http://)?([^\\[]*)\\][[:space:]]*([^\\[]*)[[:space:]]*\\[/url\\]","<a href=\"http://\\2\" target=\"_blank\">\\3</a>", $text);
// email links maken
$text = preg_replace("#(\[email\])(.*)(\[\/email\])#i","<a href=\"mailto:\\2\">\\2</a>", $text);
$text = preg_replace("\\[email=([\\[a-zA-Z0-9.@:]*)\\]([^\\[]*)", "<a href='mailto:\\1'>\\2</A>",$text);
$text = preg_replace("#(^|[ \n\r\t])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href='mailto:\\2@\\3'>\\2@\\3</a>", $text);
$text = str_replace("[/email]", "</A>", $text);
// auto. links genereren
$text = preg_replace("#(^|[ \n\r\t])www.([a-z\-0-9]+).([a-z]{2,4})($|[ \n\r\t])#i", "\\1<a href=\"http://www.\\2.\\3\" target=\"_blank\">www.\\2.\\3</a>\\4", $text);
// FTP://, HTTP://, HTTPS:// links maken
$text = preg_replace("#(^|[ \n\r\t])(((ftp://)|(http://)|(https://))([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+))#i", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $text);
// Smilies maken
$text = str_replace("(angel+)", "<img src='".$img['smiles']."/angel.png'>", $text);
$text = str_replace("(angry+)", "<img src='".$img['smiles']."/angry.png'>", $text);
$text = str_replace("(angry-s+)", "<img src='".$img['smiles']."/angry-s.png'>", $text);
$text = str_replace("(ass+)", "<img src='".$img['smiles']."/ass.png'>", $text);
$text = str_replace("(barf+)", "<img src='".$img['smiles']."/barf.png'>", $text);
$text = str_replace("(bitchin+)", "<img src='".$img['smiles']."/bitchin.png'>", $text);
$text = str_replace("(blush+)", "<img src='".$img['smiles']."/blush.png'>", $text);
$text = str_replace("(brr+)", "<img src='".$img['smiles']."/brr.png'>", $text);
$text = str_replace("(bucktoothed+)", "<img src='".$img['smiles']."/bucktoothed.png'>", $text);
$text = str_replace("(cool+)", "<img src='".$img['smiles']."/cool.png'>", $text);
$text = str_replace("(cry+)", "<img src='".$img['smiles']."/cry.png'>", $text);
$text = str_replace("(dammit+)", "<img src='".$img['smiles']."/dammit.png'>", $text);
$text = str_replace("(devil+)", "<img src='".$img['smiles']."/devil.png'>", $text);
$text = str_replace("(eep+)", "<img src='".$img['smiles']."/eep.png'>", $text);
$text = str_replace("(erm+)", "<img src='".$img['smiles']."/erm.png'>", $text);
$text = str_replace("(evil+)", "<img src='".$img['smiles']."/evil.png'>", $text);
$text = str_replace("(flowers+)", "<img src='".$img['smiles']."/flowers.png'>", $text);
$text = str_replace("(gasp+)", "<img src='".$img['smiles']."/gasp.png'>", $text);
$text = str_replace("(gdemmbarest+)", "<img src='".$img['smiles']."/gdemmbarest.png'>", $text);
$text = str_replace("(gdhappy+)", "<img src='".$img['smiles']."/gdhappy.png'>", $text);
$text = str_replace("(gdlaughing+)", "<img src='".$img['smiles']."/gdlaughing.png'>", $text);
$text = str_replace("(gdsad+)", "<img src='".$img['smiles']."/gdsad.png'>", $text);
$text = str_replace("(geek+)", "<img src='".$img['smiles']."/geek.png'>", $text);
$text = str_replace("(getlost+)", "<img src='".$img['smiles']."/getlost.png'>", $text);
$text = str_replace("(error+)", "<img src='".$img['smiles']."/error.png'>", $text);
$text = str_replace("(giggle+)", "<img src='".$img['smiles']."/giggle.png'>", $text);
$text = str_replace("(goodies+)", "<img src='".$img['smiles']."/goodies.png'>", $text);
$text = str_replace("(grin+)", "<img src='".$img['smiles']."/grin.png'>", $text);
$text = str_replace("(grr+)", "<img src='".$img['smiles']."/grr.png'>", $text);
$text = str_replace("(grumble+)", "<img src='".$img['smiles']."/grumble.png'>", $text);
$text = str_replace("(hat+)", "<img src='".$img['smiles']."/hat.png'>", $text);
$text = str_replace("(heh+)", "<img src='".$img['smiles']."/heh.png'>", $text);
$text = str_replace("(hey-hey+)", "<img src='".$img['smiles']."/hey-hey.png'>", $text);
$text = str_replace("(hoboyuck+)", "<img src='".$img['smiles']."/hoboyuck.png'>", $text);
$text = str_replace("(huh+)", "<img src='".$img['smiles']."/huh.png'>", $text);
$text = str_replace("(kiss+)", "<img src='".$img['smiles']."/kiss.png'>", $text);
$text = str_replace("(laughwink+)", "<img src='".$img['smiles']."/laughwink.png'>", $text);
$text = str_replace("(lol+)", "<img src='".$img['smiles']."/lol.png'>", $text);
$text = str_replace("(love+)", "<img src='".$img['smiles']."/love.png'>", $text);
$text = str_replace("(mello+)", "<img src='".$img['smiles']."/mello.png'>", $text);
$text = str_replace("(mixedup+)", "<img src='".$img['smiles']."/mixedup.png'>", $text);
$text = str_replace("(money+)", "<img src='".$img['smiles']."/money.png'>", $text);
$text = str_replace("(ninja+)", "<img src='".$img['smiles']."/ninja.png'>", $text);
$text = str_replace("(oops+)", "<img src='".$img['smiles']."/oops.png'>", $text);
$text = str_replace("(pirate+)", "<img src='".$img['smiles']."/pirate.png'>", $text);
$text = str_replace("(rip+)", "<img src='".$img['smiles']."/rip.png'>", $text);
$text = str_replace("(rolleyes+)", "<img src='".$img['smiles']."/rolleyes.png'>", $text);
$text = str_replace("(sad+)", "<img src='".$img['smiles']."/sad.png'>", $text);
$text = str_replace("(sad2+)", "<img src='".$img['smiles']."/sad2.png'>", $text);
$text = str_replace("(sadwink+)", "<img src='".$img['smiles']."/sadwink.png'>", $text);
$text = str_replace("(sarcastic+)", "<img src='".$img['smiles']."/sarcastic.png'>", $text);
$text = str_replace("(scared+)", "<img src='".$img['smiles']."/scared.png'>", $text);
$text = str_replace("(screwyou+)", "<img src='".$img['smiles']."/screwyou.png'>", $text);
$text = str_replace("(shocked+)", "<img src='".$img['smiles']."/shocked.png'>", $text);
$text = str_replace("(shudder+)", "<img src='".$img['smiles']."/shudder.png'>", $text);
$text = str_replace("(sick+)", "<img src='".$img['smiles']."/sick.png'>", $text);
$text = str_replace("(slant+)", "<img src='".$img['smiles']."/slant.png'>", $text);
$text = str_replace("(sleep+)", "<img src='".$img['smiles']."/sleep.png'>", $text);
$text = str_replace("(sleep2+)", "<img src='".$img['smiles']."/sleep2.png'>", $text);
$text = str_replace("(smile+)", "<img src='".$img['smiles']."/smile.png'>", $text);
$text = str_replace("(smirk+)", "<img src='".$img['smiles']."/smirk.png'>", $text);
$text = str_replace("(surprised+)", "<img src='".$img['smiles']."/surprised.png'>", $text);
$text = str_replace("(tongue+)", "<img src='".$img['smiles']."/tongue.png'>", $text);
$text = str_replace("(uh-yah+)", "<img src='".$img['smiles']."/uh-yah.png'>", $text);
$text = str_replace("(unhappy+)", "<img src='".$img['smiles']."/unhappy.png'>", $text);
$text = str_replace("(w00t+)", "<img src='".$img['smiles']."/what.png'>", $text);
$text = str_replace("(whoohoo+)", "<img src='".$img['smiles']."/whoohoo.png'>", $text);
$text = str_replace("(wink+)", "<img src='".$img['smiles']."/wink.png'>", $text);
$text = str_replace("(wizard+)", "<img src='".$img['smiles']."/wizard.png'>", $text);
$text = str_replace("(wub+)", "<img src='".$img['smiles']."/wub.png'>", $text);
$text = str_replace("(yuck+)", "<img src='".$img['smiles']."/yuck.png'>", $text);
$text = str_replace("(yuk+)", "<img src='".$img['smiles']."/yuk.png'>", $text);
echo $text;
}
?>
dan vind je volgens mij de oplossing
sorry maar de het ziet er hetzelfde uit