spip_nursit/prive/images/index.php

22 lines
533 B
PHP
Raw Permalink Normal View History

2023-06-01 15:30:12 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Index des icones de Spip</title>
<link rel="up" href="../">
</head>
<body>
<center>
<h1>Index des icones de <a href='http://www.spip.net'>Spip</a></h1>
<table>
<?php
$myDir = opendir('.');
while ($file = readdir($myDir)) {
if (preg_match(',\.(png|gif)$,i', $file)) {
echo " <tr><td>$file</td><td><img src='$file' alt='$file' /></td></tr>\n";
}
}
?>
</table>
</center>
</body>
</html>