From d3646bcd6c3b96e7def1d1ba4a16d5e819f50f9c Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Sat, 23 Dec 2006 07:09:36 +0000 Subject: [PATCH] Index des vignettes, pour pouvoir comparer avec http://trac.rezo.net/trac/spip/attachment/ticket/706/screenshot_02.jpg --- .gitattributes | 1 + dist/vignettes/index.php | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 dist/vignettes/index.php diff --git a/.gitattributes b/.gitattributes index 7bce56b756..bdab5f1fd6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -267,6 +267,7 @@ dist/vignettes/flv.png -text dist/vignettes/gif.png -text dist/vignettes/gz.png -text dist/vignettes/html.png -text +dist/vignettes/index.php -text dist/vignettes/jpg.png -text dist/vignettes/mid.png -text dist/vignettes/mov.png -text diff --git a/dist/vignettes/index.php b/dist/vignettes/index.php new file mode 100644 index 0000000000..e3e60f0c9d --- /dev/null +++ b/dist/vignettes/index.php @@ -0,0 +1,27 @@ +<!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> + <center> + <h1>Index des vignettes de <a href='http://www.spip.net'>Spip</a></h1> +<table><tr><th colspan='10'>Format png & gif</th> +<?php + $myDir = opendir('.'); + $i= 0; + while($file = readdir($myDir)) { + + if (ereg("\.(png|gif)$", $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> + </center> +</body> +</html> \ No newline at end of file -- GitLab