Leert scripten!
Berichten: 236
avatar
Offline Stuur privebericht
Hey allemaal,

In mijn ubb systeem zit een fout, als je in een code vak met [code ][/code] dan '<?php en ?>' neer zet dan leest hij die als een echte tag. Ik weet niet wat er fout is want na mijn weten klopt alles gewoon.

Ubb code:

Code | Selecteer Alles
minimaliseren
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
119
120
121
122
123
124
<?php
function bbhtml2($bericht) {
    
// Code
     
$GLOBALS['phphighlite'] = array("dummy");
     
$bericht preg_replace("_<?(.*?)?>_ise","phphighlite_replace('<? \1 ?>')",$bericht);
     
// HTML wegwerken
     
$bericht htmlspecialchars($bericht);
     
// Enters maken
     
$bericht nl2br($bericht);
     
// URLs met tags maken
     
$bericht preg_replace("#[url](http|ftp)(.+?)[/url]#is","<a href=\"\1\2\" target=\"_blank\">\1\2</a>",$bericht);
     
$bericht preg_replace("#[url](mailto:)(.+?)[/url]#is","<a href=\"\1\2\" target=\"_blank\">\2</a>",$bericht);
     
$bericht preg_replace("#[mail](.+?)[/mail]#is","\1",$bericht);
     
$bericht preg_replace("#[url](.+?)[/url]#is","<a href=\"http://\1\" target=\"_blank\">\1</a>",$bericht);
     
$bericht preg_replace("#[url=(http|ftp|mailto)(.+?)](.+?)[/url]#is","<a href=\"\1\2\" target=\"_blank\">\3</a>",$bericht);
     
$bericht preg_replace("#[url=(.+?)](.+?)[/url]#is","<a href=\"http://\1\" target=\"_blank\">\2</a>",$bericht);
         
// Emails
         
$bericht preg_replace("_[email](.*)[/email]_si"'<a href="mailto://$1">$1</a>'$bericht);
         
$bericht preg_replace("_[email=(.*)](.*?)[/email]_si"'<a href="mailto:$1">$2</a>'$bericht);
         
// Automatische emails
         
$bericht preg_replace('#(^|[ nrt])(([a-z0-9-_]{1,}(.?)){1,}@([a-z0-9-]{1,}(.?)){1,}[a-z]{2,5})#si''\1<a href="mailto:\2">\2</a>'$bericht);
     
// Automatisch URLs
     
$bericht eregi_replace("(^|[ nrt])((http(s?)://)(www.)?([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","\1<a href=\"\2\" target=\"_blank\">\2</a>"$bericht);
     
$bericht eregi_replace("(^|[ nrt])((ftp://)(www.)?([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","\1<a href=\"\2\" target=\"_blank\">\2</a>"$bericht);
     
$bericht eregi_replace("([a-z_-][a-z0-9._-]*@[a-z0-9_-]+(.[a-z0-9_-]+)+)","<a href=\"mailto:\1\">\1</a>"$bericht);
     
$bericht eregi_replace("(^|[ nrt])(www.([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","\1<a href=\"http://\2\" target=\"_blank\">\2</a>"$bericht);
     
$bericht eregi_replace("(^|[ nrt])(ftp.([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","\1<a href=\"ftp://\2\" target=\"_blank\">\2</a>"$bericht);
     
// Cursief
     
$bericht preg_replace("#[i](.+?)[/i]#is","<i>\1</i>",$bericht);
     
// Onderstreept
     
$bericht preg_replace("#[u](.+?)[/u]#is","<u>\1</u>",$bericht);
     
// Vetgedrukt
     
$bericht preg_replace("#[b](.+?)[/b]#is","<b>\1</b>",$bericht);
     
// Doorstreept
     
$bericht preg_replace("#[s](.+?)[/s]#is","<s>\1</s>",$bericht);
     
// Quote
     
$bericht preg_replace("#[quote](.+?)[/quote]#is","<blockquote><small><b>Quote:</b></small> \1</blockquote>",$bericht);     
     
$bericht preg_replace("#[quote=(.+?)](.+?)[/quote]#is","<blockquote><small><b>Quote door \1:</b></small> \2</blockquote>",$bericht);
     
// Plaatjes
     
$bericht preg_replace("#CriminalsPoint error: de volgende afbeelding werd niet geladen omwille van veiligheidsproblemen: (http)(.+?)#is","<img src=\"\1\2\" alt=\"De afbeelding kon niet geladen worden!\" />",$bericht);
     
$bericht preg_replace("#CriminalsPoint error: de volgende afbeelding werd niet geladen omwille van veiligheidsproblemen: (.+?)#is","<img src=\"http://\1\" alt=\"De afbeelding kon niet geladen worden!\" />",$bericht);
     
// Kleur
     
$bericht preg_replace("#[kleur=(.+?)](.+?)[/kleur]#is","<font color=\"\1\">\2</font>",$bericht);
         
// Tekst type
         
$bericht preg_replace("#[lettertype=(.+?)](.+?)[/lettertype]#is","<font face=\"\1\">\2</font>",$bericht);
     
// Grootte
     
$bericht preg_replace("#[size=(.+?)](.+?)[/size]#is","<font size=\"\1\">\2</font>",$bericht);
         
// Alle fonts
         
$bericht preg_replace("#[font grootte=(.+?) kleur=(.+?) lettertype=(.+?)](.+?)[/font]#is","<font size=\1 color=\2 face=\3>//4</font>",$bericht);
     
// Bewegen
     
$bericht preg_replace("#[move](.+?)[/move]#is","<marquee>\1</marquee>",$bericht);
         
// Knipperen
         
$bericht preg_replace("_[blink](.*?)[/blink]_si"'<blink>$1</blink>'$bericht);
         
// Youtube video
         
$bericht preg_replace('_[youtube].*?(v=|v/)(.+?)(&.*?|/.*?)?[/youtube]_is''[youtube]$2[/youtube]'$bericht);
         
$bericht preg_replace('_[youtube]([a-z0-9-]+?)[/youtube]_is''<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>'$bericht);
         
// Video
     
$bericht preg_replace("#[video](.+?)[/video]#is","<iframe width=\"500\" height=\"315\" src=\"http://www.youtube.com/embed/\1\" frameborder=\"0\" allowfullscreen></iframe>",$bericht);
     
// Smileys
     
$bericht str_replace(" :)"," <img src=\"/images/smilies/smiley.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" 8|"," <img src=\"/images/smilies/smiley-eek.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :o"," <img src=\"/images/smilies/smiley-surprise.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" ;)"," <img src=\"/images/smilies/smiley-wink.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :P"," <img src=\"/images/smilies/smiley-razz.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :D"," <img src=\"/images/smilies/smiley-grin.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" 8)"," <img src=\"/images/smilies/smiley-cool.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" *-)"," <img src=\"/images/smilies/smiley-roll.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :?"," <img src=\"/images/smilies/smiley-confuse.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :@"," <img src=\"/images/smilies/smiley-mad.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :("," <img src=\"/images/smilies/smiley-sad.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :|"," <img src=\"/images/smilies/smiley-neutral.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :/"," <img src=\"/images/smilies/smiley-lol.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" |-)"," <img src=\"/images/smilies/smiley-yell.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" :G"," <img src=\"/images/smilies/smiley-mr-green.png\" alt=\"Smilie\" />",$bericht);
     
$bericht str_replace(" ;("," <img src=\"/images/smilies/smiley-cry.png\" alt=\"Smilie\" />",$bericht);
     
// Scheld worden censuur
     
$bericht str_replace("fuck","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("shit","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("dick","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("suck","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("blowjob","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("pik","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("kut","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("lul","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("eikel","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("klootzak","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("dyke","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("asshole","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("hoer","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("slet","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("teef","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("bitch","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("kanker","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("kenker","<i>*censuur*</i>",$bericht);
     
$bericht str_replace("tering","<i>*censuur*</i>",$bericht);
     
// Centreren
     
$bericht preg_replace("#[center](.+?)[/center]#is","<div style=\"width: 565px; text-align: center;\">\1</div>",$bericht);
     
// Spolier
     
$bericht preg_replace('#[spoiler](.+?)[/spoiler]#sie',"'<div class=\"Spoiler\"><a onclick=\"javascript:ShowHide('spoil_'.md5('Bekijk de spoiler').'');\" />Bekijk de spoiler</a><div class=\"Block\"><div id=\"spoil_'.md5('Bekijk de spoiler').'\" class=\"SpoilerTekst\">'.stripslashes('\1').'</div></div></div>'",$bericht);
         
// Code en php
         
$bericht preg_replace_callback("_[code](.*?)[/code]_is""customHighlight"$bericht);
     
     return 
$bericht;
}

// De code systeem 
function customHighlight($code){
    
$code highlight_string(htmlspecialchars_decode(strip_tags($code[1])), true);
    
$code str_replace('\"''"'$code);
    
$code str_replace("?>""<span style=\"color: #0000BB\">?></span>"$code);
    
    
$aLines explode(""$code);
    
$iLines count($aLines);
    
    
$output "<div style=\"width: 116%;\"><b>PHP code</b><div class=\"codesysteem\">";
    for(
$i 1$i <= $iLines$i++){ 
    
$output .= $i ."";
    }
    
$output .= "</div><div style=\"float: left;overflow-x: scroll;overflow: auto;display: block;width:80%;\">n$coden</div><div style=\"clear:left;\"></div></div>";
 
    return 
$output;
}

?>


Alvast bedankt

Met vriendelijke groeten,
Mentimjojo
07-02-2012 19:34
Dit topic is 201 keer bekeken door 41 verschillende leden
Reacties op: "Ubb fout."
1
world-of-maffia.nl
Berichten: 744
avatar
Offline Stuur privébericht
Probeer dit eens:
Code | Selecteer Alles
minimaliseren
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
<?php 
function bbhtml2($bericht) { 
    
// Code 
     
$GLOBALS['phphighlite'] = array("dummy"); 
     
$bericht preg_replace("_<?(.*?)?>_ise","phphighlite_replace('<? 1 ?>')",$bericht); 
     
// HTML wegwerken 
     
$bericht htmlspecialchars($bericht); 
     
// Enters maken 
     
$bericht nl2br($bericht); 
     
// URLs met tags maken 
     
$bericht preg_replace("#[url](http|ftp)(.+?)[/url]#is","<a href=\"12\" target=\"_blank\">12</a>",$bericht); 
     
$bericht preg_replace("#[url](mailto:)(.+?)[/url]#is","<a href=\"12\" target=\"_blank\">2</a>",$bericht); 
     
$bericht preg_replace("#[mail](.+?)[/mail]#is","1",$bericht); 
     
$bericht preg_replace("#[url](.+?)[/url]#is","<a href=\"http://1\" target=\"_blank\">1</a>",$bericht); 
     
$bericht preg_replace("#[url=(http|ftp|mailto)(.+?)](.+?)[/url]#is","<a href=\"12\" target=\"_blank\">3</a>",$bericht); 
     
$bericht preg_replace("#[url=(.+?)](.+?)[/url]#is","<a href=\"http://1\" target=\"_blank\">2</a>",$bericht); 
         
// Emails 
         
$bericht preg_replace("_[email](.*)[/email]_si"'<a href="mailto://$1">$1</a>'$bericht); 
         
$bericht preg_replace("_[email=(.*)](.*?)[/email]_si"'<a href="mailto:$1">$2</a>'$bericht); 
         
// Automatische emails 
         
$bericht preg_replace('#(^|[ nrt])(([a-z0-9-_]{1,}(.?)){1,}@([a-z0-9-]{1,}(.?)){1,}[a-z]{2,5})#si''1<a href="mailto:2">2</a>'$bericht); 
     
// Automatisch URLs 
     
$bericht eregi_replace("(^|[ nrt])((http(s?)://)(www.)?([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","1<a href=\"2\" target=\"_blank\">2</a>"$bericht); 
     
$bericht eregi_replace("(^|[ nrt])((ftp://)(www.)?([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","1<a href=\"2\" target=\"_blank\">2</a>"$bericht); 
     
$bericht eregi_replace("([a-z_-][a-z0-9._-]*@[a-z0-9_-]+(.[a-z0-9_-]+)+)","<a href=\"mailto:1\">1</a>"$bericht); 
     
$bericht eregi_replace("(^|[ nrt])(www.([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","1<a href=\"http://2\" target=\"_blank\">2</a>"$bericht); 
     
$bericht eregi_replace("(^|[ nrt])(ftp.([a-z0-9_-]+(.[a-z0-9_-]+)+)(/[^/ nr]*)*)","1<a href=\"ftp://2\" target=\"_blank\">2</a>"$bericht); 
     
// Cursief 
     
$bericht preg_replace("#[i](.+?)[/i]#is","<i>1</i>",$bericht); 
     
// Onderstreept 
     
$bericht preg_replace("#[u](.+?)[/u]#is","<u>1</u>",$bericht); 
     
// Vetgedrukt 
     
$bericht preg_replace("#[b](.+?)[/b]#is","<b>1</b>",$bericht); 
     
// Doorstreept 
     
$bericht preg_replace("#[s](.+?)[/s]#is","<s>1</s>",$bericht); 
     
// Quote 
     
$bericht preg_replace("#[quote](.+?)[/quote]#is","<blockquote><small><b>Quote:</b></small> 1</blockquote>",$bericht);      
     
$bericht preg_replace("#[quote=(.+?)](.+?)[/quote]#is","<blockquote><small><b>Quote door 1:</b></small> 2</blockquote>",$bericht); 
     
// Plaatjes 
     
$bericht preg_replace("#CriminalsPoint error: de volgende afbeelding werd niet geladen omwille van veiligheidsproblemen: (http)(.+?)#is","<img src=\"12\" alt=\"De afbeelding kon niet geladen worden!\" />",$bericht); 
     
$bericht preg_replace("#CriminalsPoint error: de volgende afbeelding werd niet geladen omwille van veiligheidsproblemen: (.+?)#is","<img src=\"http://1\" alt=\"De afbeelding kon niet geladen worden!\" />",$bericht); 
     
// Kleur 
     
$bericht preg_replace("#[kleur=(.+?)](.+?)[/kleur]#is","<font color=\"1\">2</font>",$bericht); 
         
// Tekst type 
         
$bericht preg_replace("#[lettertype=(.+?)](.+?)[/lettertype]#is","<font face=\"1\">2</font>",$bericht); 
     
// Grootte 
     
$bericht preg_replace("#[size=(.+?)](.+?)[/size]#is","<font size=\"1\">2</font>",$bericht); 
         
// Alle fonts 
         
$bericht preg_replace("#[font grootte=(.+?) kleur=(.+?) lettertype=(.+?)](.+?)[/font]#is","<font size=1 color=2 face=3>//4</font>",$bericht); 
     
// Bewegen 
     
$bericht preg_replace("#[move](.+?)[/move]#is","<marquee>1</marquee>",$bericht); 
         
// Knipperen 
         
$bericht preg_replace("_[blink](.*?)[/blink]_si"'<blink>$1</blink>'$bericht); 
         
// Youtube video 
         
$bericht preg_replace('_[youtube].*?(v=|v/)(.+?)(&.*?|/.*?)?[/youtube]_is''[youtube]$2[/youtube]'$bericht); 
         
$bericht preg_replace('_[youtube]([a-z0-9-]+?)[/youtube]_is''<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>'$bericht); 
         
// Video 
     
$bericht preg_replace("#[video](.+?)[/video]#is","<iframe width=\"500\" height=\"315\" src=\"http://www.youtube.com/embed/1\" frameborder=\"0\" allowfullscreen></iframe>",$bericht); 
     
// Smileys 
     
$bericht str_replace(" :)"," <img src=\"/images/smilies/smiley.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" 8|"," <img src=\"/images/smilies/smiley-eek.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :o"," <img src=\"/images/smilies/smiley-surprise.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" ;)"," <img src=\"/images/smilies/smiley-wink.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :P"," <img src=\"/images/smilies/smiley-razz.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :D"," <img src=\"/images/smilies/smiley-grin.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" 8)"," <img src=\"/images/smilies/smiley-cool.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" *-)"," <img src=\"/images/smilies/smiley-roll.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :?"," <img src=\"/images/smilies/smiley-confuse.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :@"," <img src=\"/images/smilies/smiley-mad.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :("," <img src=\"/images/smilies/smiley-sad.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :|"," <img src=\"/images/smilies/smiley-neutral.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :/"," <img src=\"/images/smilies/smiley-lol.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" |-)"," <img src=\"/images/smilies/smiley-yell.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" :G"," <img src=\"/images/smilies/smiley-mr-green.png\" alt=\"Smilie\" />",$bericht); 
     
$bericht str_replace(" ;("," <img src=\"/images/smilies/smiley-cry.png\" alt=\"Smilie\" />",$bericht); 
     
// Scheld worden censuur 
     
$bericht str_replace("fuck","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("shit","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("dick","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("suck","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("blowjob","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("pik","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("kut","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("lul","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("eikel","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("klootzak","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("dyke","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("asshole","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("hoer","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("slet","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("teef","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("bitch","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("kanker","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("kenker","<i>*censuur*</i>",$bericht); 
     
$bericht str_replace("tering","<i>*censuur*</i>",$bericht); 
     
// Centreren 
     
$bericht preg_replace("#[center](.+?)[/center]#is","<div style=\"width: 565px; text-align: center;\">1</div>",$bericht); 
     
// Spolier 
     
$bericht preg_replace('#[spoiler](.+?)[/spoiler]#sie',"'<div class=\"Spoiler\"><a onclick=\"javascript:ShowHide('spoil_'.md5('Bekijk de spoiler').'');\" />Bekijk de spoiler</a><div class=\"Block\"><div id=\"spoil_'.md5('Bekijk de spoiler').'\" class=\"SpoilerTekst\">'.stripslashes('1').'</div></div></div>'",$bericht); 
         
// Code en php 
         
preg_replace("_[code](.*?)
_is", "customHighlight", $bericht);

return $bericht;
}

// De code systeem
function customHighlight($code){
$code = highlight_string(htmlspecialchars_decode(strip_tags($code[1])), true);
$code = str_replace('\"', '"', $code);
$code = str_replace("?>", "<span style=\"color: #0000BB\">?></span>", $code);

$aLines = explode("", $code);
$iLines = count($aLines);

$output = "<div style=\"width: 116%;\"><b>PHP code</b><div class=\"codesysteem\">";
for($i = 1; $i <= $iLines; $i++){
$output .= $i ."";
}
$output .= "</div><div style=\"float: left;overflow-x: scroll;overflow: auto;display: block;width:80%;\">n$coden</div><div style=\"clear:left;\"></div></div>";

return $output;
}

?>
[/code]
07-02-2012 20:56
Leert scripten!
Berichten: 236
avatar
Offline Stuur privébericht
Werkt helaas niet
09-02-2012 18:07
world-of-maffia.nl
Berichten: 744
avatar
Offline Stuur privébericht
Code | Selecteer Alles
minimaliseren
1
2
// Code en php 
 
$bericht preg_replace_callback("_[/code](.*?)[/code]_is""customHighlight"$bericht);


Even /code\ veranderen naar gewoon code
10-02-2012 00:03
Leert scripten!
Berichten: 236
avatar
Offline Stuur privébericht
Ook hierbij word de <?php gewoon uitgevoerd
10-02-2012 12:04
Reageer op: "Ubb fout."
1
Je kan niet reageren omdat je niet bent ingelogd. Inloggen of Aanmelden