Si vede male, lo rimetto:
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Area Riservata</title>
<style type="text/css">
<!--
.Stile1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stile6 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
-->
</style>
</head>
<body>
<div align="center">
<p class="Stile1">[img]../links/home-fintime-logo.jpg[/img]</p>
<p class="Stile1">[img]xpics/resBlu.jpg[/img]
[img]xpics/Comm.png[/img]
<?php include("admin.php"); ?>
</p>
<table width="579" border="1" bordercolor="#CCCCCC">
<tr><td width='456' height='15' class='Stile1'><u>Comunicazioni:</u>
<td width='107' class='Stile1'><center><u>Azione:</u></center></td>
<?php
// Nota che l'operatore !== non è esistito fino alla versione 4.0.0-RC2
if ($handle = opendir('comunicazioni/')) {
/* Questa è la maniera corretta di eseguire un loop all'interno di una directory. */
while (false !== ($file = readdir($handle))) {
if ( $file == ".." || $file == ".") {
continue;
}
$e=substr(strrchr($file, "."), 0); // azzero l'estensione
$a=""; //sostituisco lo spazio vuoto con il relativo codice html
$b=" ";
$nome1=ereg_replace($e, $a, $file); // sostituisco codice 1
$filesenzaExt=ereg_replace("_", "$b", $nome1);
echo "<tr><td width='456' height='15' class='Stile1'>$filesenzaExt<td width='107' class='Stile1'><center>Visualizza - Scarica</center></td>";
}
}
closedir($handle);
?>
</table>
<span class="Stile6">Per scaricare un file sul tuo computer, premere con il tasto destro del mouse "Visualizza - Scarica"
e selezionare "Salva oggetto con nome..." (o simile) e salvarla dove desiderato. </span>
<span class="Stile1"><?php include("footer.php");?></span>
</p>
</div>
</body>
</html>