Jeg får en sjov fejl....
Warning: Variable passed to reset() is not an array or object in /net/users/a42/328/jjnetdk/www/debat/plugin/replace/plugin.php on line 6Warning: Variable passed to each() is not an array or object in /net/users/a42/328/jjnetdk/www/debat/plugin/replace/plugin.php on line 7
Min kode er:
<?php
include("http://www.jjnet.dk/debat/plugin/replace/settings.php");
function mod_replace_read_body ($body) {
global $pluginreplace;
reset($pluginreplace);
while(list($key,$val) = each($pluginreplace)) {
$body = str_replace($key,$val,$body);
}
return $body;
}
$plugins["read_body"]["mod_replace"]="mod_replace_read_body";
?>
