PHP beginner |
|
ik heb een fout in mijn ubb script maar ik weet nioet wat de fout is.
hier is het 1e gedeelte van mijn code
<?
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;
}
<? function kleuren($text){ $buffer=$text; } else { $text="<?\n".trim($text)."\n?>"; $addedtags=1; }
cannot redeclare kleuren() on line 2 dat is de fout die die dan geeft
b.v.d
|