';
echo ' ';
$est=substr($nome,strlen($nome)-3);
if ($est == "txt"){
$nomecc='./'.$data.'/'.$nome;
$section = file_get_contents($nomecc, NULL, NULL);
# $section=htmlentities($section);
echo $section;
}
echo ' | ';
echo '';
echo '';
$pr=0;
} else {
$est=substr($nome,strlen($nome)-3);
switch ($est) {
case 'pdf':
case 'PDF':
$icona="/icons/pdf2.bmp";
break;
case 'zip':
$icona="./icons/zip.gif";
break;
case 'doc':
$icona="./icons/doc.bmp";
break;
case 'xls':
$icona="./icons/exc.jpg";
break;
default:
$icona="./icons/doc.bmp";
}
echo '';
echo '';
$nomer=substr($nome,4,strlen($nome)-8);
echo " ";
echo $nomer;
echo "";
echo " | ";
$nomecc="./".$data."/".$nome;
echo '';
echo ' ';
echo ' ';
echo ' | ';
echo '';
echo intval(filesize($nomecc)/1000)." ";
echo " | ";
echo " ";
}
}
?>
|