46 |
46 |
$snimek = 0;
|
47 |
47 |
if (isset($_GET["snimek"])) $snimek=$_GET["snimek"];
|
48 |
48 |
if (isset($_GET["photo"])) $snimek=$_GET["photo"];
|
|
49 |
if (isset($_GET["video"])) $snimek=$_GET["video"];
|
49 |
50 |
$snimek = intval($snimek);
|
50 |
51 |
$y='';
|
51 |
52 |
if (isset($_GET['y'])) $y=$_GET["y"];
|
... | ... | |
97 |
98 |
exit;
|
98 |
99 |
}
|
99 |
100 |
|
100 |
|
$page->header("Photos");
|
|
101 |
//ryxeo
|
|
102 |
if(isset($_GET['video'])) {
|
|
103 |
$page->header("Vidéo");
|
|
104 |
}
|
|
105 |
else {
|
|
106 |
$page->header("Photos");
|
|
107 |
}
|
101 |
108 |
require("inc/header.inc.php");
|
102 |
109 |
|
103 |
110 |
// folder > tree
|
104 |
111 |
//print "<div class=\"navigation\"><a href=\"$ThisScript\">" . $scnamegallery . "</a>";
|
105 |
112 |
print "<div class=\"navigation\"><a href=\"./\">" . $scnamegallery . "</a>";
|
106 |
113 |
|
|
114 |
/*
|
|
115 |
if(isset($_GET['video'])) {
|
|
116 |
print "<video controls>
|
|
117 |
<source src=\"$gallery_dir/$galerie/webm/img-$snimek.webm\" type=\"video/webm\">
|
|
118 |
</video>\n";
|
|
119 |
print "</body>
|
|
120 |
</html>\n";
|
|
121 |
//Un exit histoire de ne pas se casser la tete avec le end (dev en cours)
|
|
122 |
exit;
|
|
123 |
}
|
|
124 |
*/
|
|
125 |
|
107 |
126 |
//############################
|
108 |
127 |
// Overall Gallery Index
|
109 |
128 |
//############################
|
... | ... | |
270 |
289 |
} else
|
271 |
290 |
$title = "Photo ${x[1]}";
|
272 |
291 |
|
|
292 |
//print "<p>On est ici : $galerievideo</p>";
|
|
293 |
|
273 |
294 |
if($galerievideo) {
|
274 |
295 |
print " <a href=\"$ThisScript?galerie=$galerie&video=${x[1]}\"";
|
275 |
296 |
}
|
... | ... | |
336 |
357 |
// Individual Image
|
337 |
358 |
//######################
|
338 |
359 |
} else { //low-res image
|
|
360 |
|
339 |
361 |
// finish off header
|
340 |
362 |
print "\n > <a href=\"$ThisScript?galerie=$galerie\">";
|
341 |
363 |
if ($galeriename[$galerie]) {
|
... | ... | |
346 |
368 |
print "</a>\n > Photo";
|
347 |
369 |
print " $snimek</div>";
|
348 |
370 |
$path = "$gallery_dir/$galerie/thumbs";
|
|
371 |
|
|
372 |
if(isset($_GET['video'])) {
|
|
373 |
print "<br /><video controls>
|
|
374 |
<source src=\"$gallery_dir/$galerie/webm/img-$snimek.webm\" type=\"video/webm\">
|
|
375 |
</video>\n";
|
|
376 |
$page->user_comments($picture->number);
|
|
377 |
$page->navigation($galerie, $snimek, null);
|
|
378 |
|
|
379 |
require("inc/footer.inc.php");
|
|
380 |
$page->footer();
|
|
381 |
//Un exit histoire de ne pas se casser la tete avec le end (dev en cours)
|
|
382 |
exit;
|
|
383 |
}
|
|
384 |
|
|
385 |
|
349 |
386 |
$imgfiles = new SortDir("$path");
|
350 |
387 |
check($galerie);
|
351 |
388 |
$path = "$gallery_dir/$galerie/lq";
|