Location: PHPKode > projects > NewsP > templates/headline.txt
<?
$headlf= 'steuerfiles/';
if ($aranz !="")
{$domains[anz_headl] = 0;}
if($domains[anz_headl]  > 0){
		while ($i < $domains[anz_headl] && $counted > $i) {
			$topnews[] =  $aktuelle_files[$i];
		$i++;
		}
foreach($topnews as $anzeige){
	$zaehlfile = fopen("$aktuellurl$headlf$anzeige","r"); 
	$inhalt_zaehlfile = fgets($zaehlfile);  
	fclose($zaehlfile); 
	$inhalt = explode('รค',$inhalt_zaehlfile);
	$datum = $inhalt[0];
	$datum_ag= strftime($domains[outform_time] , $datum); 
	$url = $inhalt[2];
	$titel = $inhalt[3];
	echo "<A HREF=\"$url\"><I>$datum_ag: $titel</I></A><BR>";
	}}
		if ($domains[anz_arch] == "ja" && $aranz == "" && $counted > $domains[anz_headl]){
			echo "<A HREF=\"archive.php?n=$domains[anz_headl]\"><I><FONT SIZE=-1>[News archive]</FONT></I></A><BR>";
		}

?>
Return current item: NewsP