$level) { $path.=$level."/"; $filename=$path."label"; if (file_exists ($filename)): $f = file ($filename); else: $f[0]=".."; endif; $pathid=$f[0]; $navstr = " » $pathid ".$navstr; } if (file_exists ("label")): $f = file ("label"); else: $f[0]=""; endif; $pathid=$f[0]; $navstr .= " » $pathid"; $navstr = substr($navstr, 8); $catalog = "$pathid"; require($basedir."header.php"); echo"

 $navstr
 

"; $f=file($basedir."news.txt"); if (!$number) $number=0; if (!$quontity) $quontity=sizeof($f)-1; if ($quontity>sizeof($f)-1) $quontity=sizeof($f)-1 ; // if ($basedir!='' ){ // for ($i=0; $i');} // } echo ""; for ($i=$number;$i<=($number+$quontity);$i++) { $datepos = strpos($f[$i], "-"); if ($datepos == true): { echo ""; } else: { echo ""; } endif; } echo "
".substr("$f[$i]", 0, $datepos-1)."".substr("$f[$i]", $datepos+1, strlen($f[$i])-$datepos)."
".$f[$i]."
"; echo "

"; require("../bottom.php"); ?>