Révision f7cc6422
Ajouté par Jocelyn Dealande il y a environ 10 ans
creerPano.php | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
|
3 |
<head> |
|
4 |
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> |
|
5 |
<title>Liste des images transformables en panoramas</title> |
|
6 |
<link rel="stylesheet" media="screen" href="css/base.css"/> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
<header> |
|
10 |
<h1><img src="images/tetaneutral.svg" alt="tetaneutral.net"/></h1> |
|
11 |
</header> |
|
12 |
<section id="main"> |
|
13 |
<h2>Liste des images transformables en panoramas</h2> |
|
14 |
<?php |
|
15 |
require 'class/utils.class.php'; |
|
16 |
|
|
17 |
if(isset($_GET['dir']) && is_dir($_GET['dir'])) { |
|
18 |
$base_dir = $_GET['dir']; |
|
19 |
} else { |
|
20 |
$base_dir='upload'; |
|
21 |
} |
|
22 |
|
|
23 |
//try { |
|
24 |
echo "<ul id=\"pano-list\">\n"; |
|
25 |
|
|
26 |
|
|
27 |
$panos = utils::list_available_panos($base_dir); |
|
28 |
foreach ($panos as $pano) { |
|
29 |
printf ('<li title="%s"><a href="genererPano.php?dir=%s&name=%s">%s</a></li>'."\n", |
|
30 |
$pano['title'], $base_dir, $pano['filename'], $pano['comment']); |
|
31 |
} |
|
32 |
|
|
33 |
echo "</ul>\n"; |
|
34 |
finfo_close($finfo); |
|
35 |
//} catch (Exception $e) { |
|
36 |
printf("<h3 class=\"warning\">désolé mais aucun site n'est disponible...</h3>\n"); |
|
37 |
//} |
|
38 |
?> |
|
39 |
<p id="interaction"> |
|
40 |
<a href="." title="Revenir à la liste des panoramas">Retour</a> |
|
41 |
</p> |
|
42 |
</section> |
|
43 |
<footer class="validators"><samp> |
|
44 |
page validée par |
|
45 |
<a href="http://validator.w3.org/check?uri=referer"><img src="images/valid_xhtml.svg" |
|
46 |
alt="Valid XHTML" title="xHTML validé !"/></a> |
|
47 |
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="images/valid_css.svg" |
|
48 |
alt="CSS validé !" title="CSS validé !"/></a> |
|
49 |
</samp></footer> |
|
50 |
</body> |
|
51 |
</html> |
index.php | ||
---|---|---|
47 | 47 |
?> |
48 | 48 |
<p id="interaction"> |
49 | 49 |
<a href="envoyer.php" title="Envoyer une image sur le site">Ajouter un panorama</a> |
50 |
<a href="creerPano.php" title="Générer un panorama à partir d\'une image déjà envoyée">Générer un panorama</a> |
|
51 | 50 |
</p> |
52 | 51 |
</section> |
53 | 52 |
<footer class="validators"><samp> |
uploadReceive.php | ||
---|---|---|
133 | 133 |
foreach($validator->errors() as $key => $error) { |
134 | 134 |
printf('<p>"%s" : %s</p>', $_REQUEST[$key], $error); |
135 | 135 |
} |
136 |
|
|
137 |
} else { |
|
138 |
?> |
|
139 |
<p>Pour acceder à la liste des images transférées afin de convertir en panorama <a href="creerPano.php">cliquer ici</a></p> |
|
140 |
<?php |
|
141 | 136 |
} |
142 | 137 |
} |
143 | 138 |
?> |
Formats disponibles : Unified diff
removed old and no longer used creerPano.php