"Januar", '02'=> "Februar", '03'=> "März", '04'=> "April", '05'=> "Mai", '06'=> "Juni", '07'=> "Juli", '08'=> "August", '09'=> "September", '10'=> "Oktober", '11'=> "November", '12'=> "Dezember" ); $handle=opendir('.'); $files = array(); while (($tmp = readdir($handle))!=false) { if(preg_match("/w0\d{5}a.html/",$tmp)) { array_push($files,$tmp); } } rsort($files); reset($files); print "\n"; $num = 0; foreach($files as $file) { if(preg_match("/^w(\d\d)(\d\d)(\d\d)a.html$/",$file,$tmp)) { $jahr = $tmp[1]; $monat = $monate[$tmp[2]]; $tag = $tmp[3]; } $lines[$num++] = "$tag. $monat $jahr\n"; } $num_lines = ((int)($num/5+1)<7 ? (int)($num/5+1) : 7); for($i=0;$i<$num_lines;$i++) { print "\n"; for($j=0;$j<5;$j++) { print "\n"; } print "\n"; } print "
\n"; if($j*$num_lines+$i>=$num) { print " \n"; } else { print $lines[$j*$num_lines+$i]; } print "
\n"; closedir($handle); foot(); ?>