"txt.gif", "avi" => "video.gif", "mpeg"=> "video.gif", "mpg" => "video.gif", "mov" => "video.gif", "wmv" => "video.gif", "rm" => "video.gif", "asf" => "video.gif", "ppt" => "ppt.gif", "pps" => "ppt.gif", "pdf" => "pdf.gif", "tgz" => "tgz.png", "exe" => "exe.gif", "gif" => "immagine.gif", "bmp" => "immagine.gif", "jpg" => "immagine.gif", "swf" => "flash.gif", "html" => "html.gif", "htm" => "html.gif", "mp3" => "mp3.gif", "wav" => "mp3.gif", "xls" => "xls.gif", "flv" => "flash.gif", ); $ordlist =LoadFiles($location); SortByDate($ordlist); echo ' '; foreach($ordlist as $myfile) { $file=$myfile[0]; $date=$myfile[1]; $a=split("\.",$file); $ext=$a[count($a)-1]; $image=(in_array("$ass[$ext]", $ass)) ? "$ass[$ext]" : "noico.gif"; $estensione = $image; $documenti = $file . (is_dir($location. '/'. $file ) ?"(DIR)" :""); $dimensione = number_format(filesize($location.$file),0); $data = date("d.m.y",$date); echo " "; } echo "

 

nome file

dimensione (byte)

data inserimento

$documenti $dimensione $data
"; }