Was ist hierran falsch?
PHP-Code:
eval ("\"".gettemp("index")."\");");
function gettemp( $template , $extension="htm" ) {
$tempfolder = "templates";
return str_replace("\"","\\\"",implode("",file($tempfolder."/".$template.".".$extension)));
echo "$template";
}
function gettemp( $template , $extension="htm" ) {
return addslashes(implode("",file("templates/".$template.".".$extension));
}
eval("echo \"".gettemp("index")."\";");
Kommentar