Location: PHPKode > projects > NewsP > admin/setum.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->", "$titel", $dasfile);
$dasfile = str_replace("<-nb-linkblock->", "<? include(\"templates/headline.txt\");?>", $dasfile);
$dasfile = str_replace("<-nb-date->", "$datum_seite", $dasfile);
$dasfile = str_replace("<-nb-headline->", "$titel", $dasfile);
$dasfile = str_replace("<-nb-newstext->", "$nachricht $coments_w $ed", $dasfile);
$dasfile = str_replace("<-nb-writer->", "$ori_writer", $dasfile);
if (!empty($metadisc)){
$dasfile = str_replace("<-nb-meta->", "<meta name=\"description\" content=\"$metadisc\" />", $dasfile);
}else{
$dasfile = str_replace("<-nb-meta->", "", $dasfile);
}
?>
Return current item: NewsP