-
Notifications
You must be signed in to change notification settings - Fork 1
/
creerPano.php
51 lines (46 loc) · 1.61 KB
/
creerPano.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
<title>Liste des images transformables en panoramas</title>
<link rel="stylesheet" media="screen" href="css/base.css"/>
</head>
<body>
<header>
<h1><img src="images/tetaneutral.svg" alt="tetaneutral.net"/></h1>
</header>
<section id="main">
<h2>Liste des images transformables en panoramas</h2>
<?php
require 'class/utils.class.php';
if(isset($_GET['dir']) && is_dir($_GET['dir'])) {
$base_dir = $_GET['dir'];
} else {
$base_dir='upload';
}
//try {
echo "<ul id=\"pano-list\">\n";
$panos = utils::list_available_panos($base_dir);
foreach ($panos as $pano) {
printf ('<li title="%s"><a href="genererPano.php?dir=%s&name=%s">%s</a></li>'."\n",
$pano['title'], $base_dir, $pano['filename'], $pano['comment']);
}
echo "</ul>\n";
finfo_close($finfo);
//} catch (Exception $e) {
printf("<h3 class=\"warning\">désolé mais aucun site n'est disponible...</h3>\n");
//}
?>
<p id="interaction">
<a href="." title="Revenir à la liste des panoramas">Retour</a>
</p>
</section>
<footer class="validators"><samp>
page validée par
<a href="http://validator.w3.org/check?uri=referer"><img src="images/valid_xhtml.svg"
alt="Valid XHTML" title="xHTML validé !"/></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/valid_css.svg"
alt="CSS validé !" title="CSS validé !"/></a>
</samp></footer>
</body>
</html>