<?
$exclude[] = "index.php";
$thumbs_dir = "$images/";$dir = opendir($thumbs_dir);
for ($i = 15; $i > 0; $i--) { $file = readdir($dir); if($file === false) { break; }
if ($file != "." && $file !=".." ) {
if (!in_array($file, $exclude)) {
echo "<table style='float:left;'><tr><td class='divider'> <img src='$thumbs_dir$file' border='4' style='float:left;left;border-color:lightblue'
onmouseover=\"this.width=400;this.height=300;\" onmouseout=\"this.width=100;this.height=75;\" width= \"100\" height=\"75\" /><br>
<div class='clear'></div><br>
<a href=\"borrarimage.php?id=$file&action=delete\">Eliminar foto</a><br>
</td>
</tr>
</table>";
}}}
?>