Révision 1c16578c
Ajouté par Jocelyn Delande il y a presque 11 ans
index.php | ||
---|---|---|
16 | 16 |
utils::init(); |
17 | 17 |
|
18 | 18 |
if(isset($_GET['dir']) && is_dir($_GET['dir'])) { |
19 |
$base_dir = $_GET['dir'];
|
|
19 |
$base_dir = $_GET['dir']; |
|
20 | 20 |
} else { |
21 | 21 |
$base_dir='tiles'; |
22 | 22 |
} |
... | ... | |
26 | 26 |
$sites_list = $dir->get_sites(); |
27 | 27 |
|
28 | 28 |
echo "<ul id=\"pano-list\">\n"; |
29 |
|
|
29 |
|
|
30 | 30 |
foreach($sites_list as $pt) { |
31 | 31 |
$params = $pt->get_params(); |
32 | 32 |
$pos_file = sprintf('%s/%s', $pt->get_name(), $pt->get_prefix()); |
... | ... | |
35 | 35 |
$title = sprintf(' title="fichier : %s"', $pos_file); |
36 | 36 |
} else { |
37 | 37 |
$cmt = sprintf('<samp>%s</samp>', $pos_file); |
38 |
$title = '';
|
|
38 |
$title = ''; |
|
39 | 39 |
} |
40 |
printf ('<li%s><a href="panorama.php?dir=%s&panorama=%s">%s</a></li>'."\n", $title, $base_dir, $pt->get_name(), $cmt);
|
|
40 |
printf ('<li%s><a href="%s">%s</a></li>'."\n", $title, $pt->get_url(), $cmt);
|
|
41 | 41 |
} |
42 | 42 |
echo "</ul>\n"; |
43 |
} catch (Exception $e) { |
|
43 |
} catch (Exception $e) {
|
|
44 | 44 |
printf("<h3 class=\"warning\">désolé mais aucun site n'est disponible...</h3>\n"); |
45 | 45 |
} |
46 | 46 |
?> |
Formats disponibles : Unified diff
added site_point->get_url() method