PHP expert |
|
ok, zal wel verkeerde forum zijn, maar wist niet waar het anders moest
heb nu een script waar dit staat in ubb.php
<?
function kleuren($text){
if (floor(phpversion())<4) {
$buffer=$text;
} else {
$text = str_replace("<br>", "", $text);
$text = str_replace("<br />", "", $text);
$text = str_replace(">", ">", $text);
$text = str_replace("<", "<", $text);
$text = str_replace(""", "\"", $text);
$text = str_replace("&", "&", $text);
$text = str_replace('$', '\$', $text);
$text = str_replace('\n', '\\\\n', $text);
$text = str_replace('\r', '\\\\r', $text);
$text = str_replace('\t', '\\\\t', $text);
if (!strpos($text,"<?") and substr($text,0,2)!="<?") {
$text="<?\n".trim($text)."\n?>";
$addedtags=1;
}
ob_start();
$oldlevel=error_reporting(0);
highlight_string($text);
error_reporting($oldlevel);
$buffer = ob_get_contents();
ob_end_clean();
if ($addedtags) {
$openingpos = strpos($buffer,'<?');
$closingpos = strrpos($buffer, '?');
$buffer=substr($buffer, 0, $openingpos).substr($buffer, $openingpos+5, $closingpos-($openingpos+5)).substr($buffer, $closingpos+5);
}
$buffer = str_replace(""", "\"", $buffer);
}
$gesplit = split("\n", $tekst);
$grote = count($gesplit);
echo "<table bgcolor=#ffffff bordercolor=#cccccc cellspacing=0 width=100% style='border: 1px solid #cccccc'><tr bgcolor=#cccccc><td> </td><td>Code</td></tr>";
for($i = 0; $i < $grote; $i++)
{
$t = $i + 1;
$tekst = $buffer;
echo "<tr><td bgcolor=#CCCCCC align=right width=14><font face=verdana
size=1>".$t."</font></td>";
if($t < 2)
{
echo "<td style='padding-left: 5px' rowspan='10000' valign='top'>".$tekst."</td>";
}
echo "</tr></table>";
}
}
function ubbp($bericht){
$bericht = htmlspecialchars($bericht);
$bericht = nl2br($bericht);
$bericht = preg_replace('_\[code\](.*?)\[/code\]_ise', "kleuren('\\1')", $bericht);
$bericht = str_replace("sukkel" , "******", $bericht);
$bericht = str_replace(":)", "<img src=\"url\" border=\"0\">", $bericht);
$bericht = str_replace("[*]","<li>",$bericht);
$bericht = str_replace("[hr]","<hr>",$bericht);
$bericht = str_replace("[HR]","<hr>",$bericht);
$bericht = eregi_replace("\\[s\\]([^\\[]*)\\[/s\\]","<s>\\1</s>",$bericht);
$bericht = eregi_replace("\\[S\\]([^\\[]*)\\[/S\\]","<s>\\1</s>",$bericht);
$bericht = eregi_replace("\\[b\\]([^\\[]*)\\[/b\\]","<b>\\1</b>",$bericht);
$bericht = eregi_replace("\\[B\\]([^\\[]*)\\[/B\\]","<b>\\1</b>",$bericht);
$bericht = eregi_replace("\\[i\\]([^\\[]*)\\[/i\\]","<i>\\1</i>",$bericht);
$bericht = eregi_replace("\\[I\\]([^\\[]*)\\[/I\\]","<i>\\1</i>",$bericht);
$bericht = eregi_replace("\\[u\\]([^\\[]*)\\[/u\\]","<u>\\1</u>",$bericht);
$bericht = eregi_replace("\\[U\\]([^\\[]*)\\[/U\\]","<u>\\1</u>",$bericht);
$bericht = eregi_replace("\\[a([^\\[]*)\\]([^\\[]*)\\[/p\\]","<a\\1>\\2</a>",$bericht);
$bericht = eregi_replace("\\[p([^\\[]*)\\]([^\\[]*)\\[/p\\]","<p\\1>\\2</p>",$bericht);
$bericht = eregi_replace("\\[table([^\\[]*)\\]([^\\[]*)\\[/table\\]","<table\\1>\\2</table>",$bericht);
$bericht = eregi_replace("\\[tr([^\\[]*)\\]([^\\[]*)\\[/tr\\]","<tr\\1>\\2</tr>",$bericht);
$bericht = eregi_replace("\\[td([^\\[]*)\\]([^\\[]*)\\[/td\\]","<td\\1>\\2</td>",$bericht);
$bericht = eregi_replace("\\[div([^\\[]*)\\]([^\\[]*)\\[/div\\]","<div\\1>\\2</div>",$bericht);
$bericht = eregi_replace("\\[font([^\\[]*)\\]([^\\[]*)\\[/font\\]","<font\\1>\\2</font>",$bericht);
$bericht = eregi_replace("\\[A([^\\[]*)\\]([^\\[]*)\\[/A\\]","<a\\1>\\2</a>",$bericht);
$bericht = eregi_replace("\\[P([^\\[]*)\\]([^\\[]*)\\[/p\\]","<p\\1>\\2</p>",$bericht);
$bericht = eregi_replace("\\[TABLE([^\\[]*)\\]([^\\[]*)\\[/TABLE\\]","<table\\1>\\2</table>",$bericht);
$bericht = eregi_replace("\\[TR([^\\[]*)\\]([^\\[]*)\\[/TR\\]","<tr\\1>\\2</tr>",$bericht);
$bericht = eregi_replace("\\[TD([^\\[]*)\\]([^\\[]*)\\[/TD\\]","<td\\1>\\2</td>",$bericht);
$bericht = eregi_replace("\\[DIV([^\\[]*)\\]([^\\[]*)\\[/DIV\\]","<div\\1>\\2</div>",$bericht);
$bericht = eregi_replace("\\[FONT([^\\[]*)\\]([^\\[]*)\\[/FONT\\]","<font\\1>\\2</font>",$bericht);
$bericht = eregi_replace("\\[list\\]([^\\[]*)\\[/list\\]","<ul>\\1</ul>",$bericht);
$bericht = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht);
$bericht = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\"http://\\1\">",$bericht);
$bericht = eregi_replace("\\[img([^\\[]*)\\]([^\\[]*)\\[/img\\]", "<img//1 src=\"http://\\2\">",$bericht);
$bericht = eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = eregi_replace("\\[LIST\\]([^\\[]*)\\[/LIST\\]","<ul>\\1</ul>",$bericht);
$bericht = eregi_replace("\\[QUOTE\\]([^\\[]*)\\[/QUOTE\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht);
$bericht = eregi_replace("\\[IMG\\]([^\\[]*)\\[/IMG\\]","<img src=\"http://\\1\">",$bericht);
$bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]", "<img//1 src=\"http://\\2\">",$bericht);
$bericht = eregi_replace("\\[EMAIL\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[URL\\]www.([^\\[]*)\\[/URL\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[URL\\]([^\\[]*)\\[/URL\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\ \]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>\\5",$bericht);
$bericht = str_replace("http://http://", "http://", $bericht);
$bericht = str_replace(""", "\"", $bericht);
echo $bericht;
return $bericht;
}
function ubb($bericht){
$bericht = htmlspecialchars($bericht);
$bericht = nl2br($bericht);
$bericht = str_replace("sukkel" , "******", $bericht);
$bericht = str_replace(":)", "<img src=\"url\" border=\"0\">", $bericht);
$bericht = str_replace("[*]","<li>",$bericht);
$bericht = str_replace("[hr]","<hr>",$bericht);
$bericht = str_replace("[HR]","<hr>",$bericht);
$bericht = eregi_replace("\\[list\\]([^\\[]*)\\[/list\\]","<ul>\\1</ul>",$bericht);
$bericht = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht);
$bericht = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\"http://\\1\">",$bericht);
$bericht = eregi_replace("\\[img([^\\[]*)\\]([^\\[]*)\\[/img\\]", "<img//1 src=\"http://\\2\">",$bericht);
$bericht = eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = eregi_replace("\\[LIST\\]([^\\[]*)\\[/LIST\\]","<ul>\\1</ul>",$bericht);
$bericht = eregi_replace("\\[QUOTE\\]([^\\[]*)\\[/QUOTE\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht);
$bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]","<img//1 src=\"http://\\2\">",$bericht);
$bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]", "<img//1 src=\"http://\\2\">",$bericht);
$bericht = eregi_replace("\\[EMAIL\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht);
$bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht);
$bericht = eregi_replace("\\[URL\\]www.([^\\[]*)\\[/URL\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[URL\\]([^\\[]*)\\[/URL\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht);
$bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\ \]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht);
$bericht = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>\\5",$bericht);
$bericht = str_replace("http://http://", "http://", $bericht);
$bericht = str_replace(""", "\"", $bericht);
echo $bericht;
return $bericht;
}
?>
<? function kleuren($text){ $buffer=$text; } else { $text="<?\n".trim($text)."\n?>"; $addedtags=1; } if ($addedtags) { $openingpos = strpos($buffer,'<?'); $closingpos = strrpos($buffer, '?'); $buffer=substr($buffer, 0, $openingpos).substr($buffer, $openingpos+5, $closingpos-($openingpos+5)).substr($buffer, $closingpos+5); } } $gesplit = split("\n", $tekst); $grote = count($gesplit); echo "<table bgcolor=#ffffff bordercolor=#cccccc cellspacing=0 width=100% style='border: 1px solid #cccccc'><tr bgcolor=#cccccc><td> </td><td>Code</td></tr>"; for($i = 0; $i < $grote; $i++) { $t = $i + 1; $tekst = $buffer; echo "<tr><td bgcolor=#CCCCCC align=right width=14><font face=verdana size=1>".$t."</font></td>"; if($t < 2) { echo "<td style='padding-left: 5px' rowspan='10000' valign='top'>".$tekst."</td>"; } } } function ubbp($bericht){ $bericht = nl2br($bericht); $bericht = preg_replace('_\[code\](.*?)\[/code\]_ise', "kleuren('\\1')", $bericht); $bericht = str_replace(":)", "<img src=\"url\" border=\"0\">", $bericht); $bericht = eregi_replace("\\[s\\]([^\\[]*)\\[/s\\]","<s>\\1</s>",$bericht); $bericht = eregi_replace("\\[S\\]([^\\[]*)\\[/S\\]","<s>\\1</s>",$bericht); $bericht = eregi_replace("\\[b\\]([^\\[]*)\\[/b\\]","<b>\\1</b>",$bericht); $bericht = eregi_replace("\\[B\\]([^\\[]*)\\[/B\\]","<b>\\1</b>",$bericht); $bericht = eregi_replace("\\[i\\]([^\\[]*)\\[/i\\]","<i>\\1</i>",$bericht); $bericht = eregi_replace("\\[I\\]([^\\[]*)\\[/I\\]","<i>\\1</i>",$bericht); $bericht = eregi_replace("\\[u\\]([^\\[]*)\\[/u\\]","<u>\\1</u>",$bericht); $bericht = eregi_replace("\\[U\\]([^\\[]*)\\[/U\\]","<u>\\1</u>",$bericht); $bericht = eregi_replace("\\[a([^\\[]*)\\]([^\\[]*)\\[/p\\]","<a\\1>\\2</a>",$bericht); $bericht = eregi_replace("\\[p([^\\[]*)\\]([^\\[]*)\\[/p\\]","<p\\1>\\2</p>",$bericht); $bericht = eregi_replace("\\[table([^\\[]*)\\]([^\\[]*)\\[/table\\]","<table\\1>\\2</table>",$bericht); $bericht = eregi_replace("\\[tr([^\\[]*)\\]([^\\[]*)\\[/tr\\]","<tr\\1>\\2</tr>",$bericht); $bericht = eregi_replace("\\[td([^\\[]*)\\]([^\\[]*)\\[/td\\]","<td\\1>\\2</td>",$bericht); $bericht = eregi_replace("\\[div([^\\[]*)\\]([^\\[]*)\\[/div\\]","<div\\1>\\2</div>",$bericht); $bericht = eregi_replace("\\[font([^\\[]*)\\]([^\\[]*)\\[/font\\]","<font\\1>\\2</font>",$bericht); $bericht = eregi_replace("\\[A([^\\[]*)\\]([^\\[]*)\\[/A\\]","<a\\1>\\2</a>",$bericht); $bericht = eregi_replace("\\[P([^\\[]*)\\]([^\\[]*)\\[/p\\]","<p\\1>\\2</p>",$bericht); $bericht = eregi_replace("\\[TABLE([^\\[]*)\\]([^\\[]*)\\[/TABLE\\]","<table\\1>\\2</table>",$bericht); $bericht = eregi_replace("\\[TR([^\\[]*)\\]([^\\[]*)\\[/TR\\]","<tr\\1>\\2</tr>",$bericht); $bericht = eregi_replace("\\[TD([^\\[]*)\\]([^\\[]*)\\[/TD\\]","<td\\1>\\2</td>",$bericht); $bericht = eregi_replace("\\[DIV([^\\[]*)\\]([^\\[]*)\\[/DIV\\]","<div\\1>\\2</div>",$bericht); $bericht = eregi_replace("\\[FONT([^\\[]*)\\]([^\\[]*)\\[/FONT\\]","<font\\1>\\2</font>",$bericht); $bericht = eregi_replace("\\[list\\]([^\\[]*)\\[/list\\]","<ul>\\1</ul>",$bericht); $bericht = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht); $bericht = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\"http://\\1\">",$bericht); $bericht = eregi_replace("\\[img([^\\[]*)\\]([^\\[]*)\\[/img\\]", "<img//1 src=\"http://\\2\">",$bericht); $bericht = eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht); $bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht); $bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht); $bericht = eregi_replace("\\[LIST\\]([^\\[]*)\\[/LIST\\]","<ul>\\1</ul>",$bericht); $bericht = eregi_replace("\\[QUOTE\\]([^\\[]*)\\[/QUOTE\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht); $bericht = eregi_replace("\\[IMG\\]([^\\[]*)\\[/IMG\\]","<img src=\"http://\\1\">",$bericht); $bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]", "<img//1 src=\"http://\\2\">",$bericht); $bericht = eregi_replace("\\[EMAIL\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht); $bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht); $bericht = eregi_replace("\\[URL\\]www.([^\\[]*)\\[/URL\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[URL\\]([^\\[]*)\\[/URL\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\ \]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht); $bericht = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>\\5",$bericht); $bericht = str_replace("http://http://", "http://", $bericht); return $bericht; } function ubb($bericht){ $bericht = nl2br($bericht); $bericht = str_replace(":)", "<img src=\"url\" border=\"0\">", $bericht); $bericht = eregi_replace("\\[list\\]([^\\[]*)\\[/list\\]","<ul>\\1</ul>",$bericht); $bericht = eregi_replace("\\[quote\\]([^\\[]*)\\[/quote\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht); $bericht = eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","<img src=\"http://\\1\">",$bericht); $bericht = eregi_replace("\\[img([^\\[]*)\\]([^\\[]*)\\[/img\\]", "<img//1 src=\"http://\\2\">",$bericht); $bericht = eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht); $bericht = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht); $bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht); $bericht = eregi_replace("\\[LIST\\]([^\\[]*)\\[/LIST\\]","<ul>\\1</ul>",$bericht); $bericht = eregi_replace("\\[QUOTE\\]([^\\[]*)\\[/QUOTE\\]","<blockquote><span class=\"12px\">quote:</span><hr>\\1<hr></blockquote>",$bericht); $bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]","<img//1 src=\"http://\\2\">",$bericht); $bericht = eregi_replace("\\[IMG([^\\[]*)\\]([^\\[]*)\\[/IMG\\]", "<img//1 src=\"http://\\2\">",$bericht); $bericht = eregi_replace("\\[EMAIL\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\1</a>",$bericht); $bericht = eregi_replace("\\[EMAIL=([^\\[]*)\\]([^\\[]*)\\[/EMAIL\\]", "<a href=\"mailto:\\1\">\\2</a>",$bericht); $bericht = eregi_replace("\\[URL\\]www.([^\\[]*)\\[/URL\\]", "<a href=\"http://www.\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[URL\\]([^\\[]*)\\[/URL\\]","<a href=\"\\1\" target=_blank>\\1</a>",$bericht); $bericht = eregi_replace("\\[URL=([^\\[]*)\\]([^\\[]*)\\[/URL\ \]","<a href=\"\\1\" target=_blank>\\2</a>",$bericht); $bericht = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>\\5",$bericht); $bericht = str_replace("http://http://", "http://", $bericht); return $bericht; } ?>
en nu op de plek waar het word aangeroepe staat:
Citaat: Fatal error: Cannot redeclare kleuren() (previously declared in /usr/export/www/vhosts/funnetwork/hosting/ultimatum/members/ubb.php:2) in /usr/export/www/vhosts/funnetwork/hosting/ultimatum/members/ubb.php on line 2
wat is de fout
|