Location: PHPKode > projects > NewsP > archive.php
<? 
$fp = fopen("templates/p1.txt", "r");
$current_line = fgets($fp);
$dasfile = $current_line;
while (!feof($fp)) {
  $current_line = fgets($fp);
 $dasfile .= $current_line;
}
fclose($fp);
$dasfile = str_replace("<-nb-titel->", "News Archive", $dasfile);
$dasfile = str_replace("<-nb-newstext->", "<? include(\"templates/archive.inc.php\");?>", $dasfile);
$dasfile = str_replace("<-nb-date->", '', $dasfile);
$dasfile = str_replace("<-nb-headline->", '', $dasfile);
$dasfile = str_replace("<-nb-writer->", '', $dasfile);
$dasfile = str_replace("<-nb-meta->", '', $dasfile);

eval("?>" . $dasfile . "<?"); 

?>
Return current item: NewsP