mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
25 lines
696 B
PHP
25 lines
696 B
PHP
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Index des vignettes de SPIP</title>
|
||
|
<link rel="up" href="../">
|
||
|
</head>
|
||
|
<body style="background: #fff; text-align: center;">
|
||
|
<h1>Index des vignettes de SPIP</h1>
|
||
|
<table>
|
||
|
<tr><th colspan='10'>Format png & gif</th>
|
||
|
<?php
|
||
|
$myDir = opendir('.');
|
||
|
$i= 0;
|
||
|
while($file = readdir($myDir)) {
|
||
|
if (preg_match(",\.(png|gif)$,i", $file)) {
|
||
|
$r = "\n\t<td style='text-align:center; padding:10px'>$file<br /><img src='$file' alt='$file' /></td>";
|
||
|
if ($i%10) echo $r; else echo "</tr>\n<tr>", $r;
|
||
|
$i++;
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|