Projet

Général

Profil

Révision eee84392

Voir les différences:

.bzrmeta/externals-snapshot
1
http://redmine.ryxeo.com/code/leterrier-developpeu/abuleduapplicationv1 lib/abuleduapplicationv1 revid:icham.sirat@ryxeo.com-20120612081819-lie0ehw2aw44lj35
1
http://redmine.ryxeo.com/code/leterrier-developpeu/abuleduapplicationv1 lib/abuleduapplicationv1 revid:eric.seigne@ryxeo.com-20120618204757-7vpklq9d55elbtg1
2 2
http://redmine.ryxeo.com/code/leterrier-developpeu/abuleduconstantesv1/ lib/abuleduconstantesv1 revid:philippe.cadaugade@ryxeo.com-20120525070920-in0y3ee6wuda72h0
3 3
http://redmine.ryxeo.com/code/leterrier-developpeu/abuledunetworkaccessmanagerv1/ lib/abuledunetworkaccessmanagerv1 revid:eric.seigne@ryxeo.com-20120612140933-zvdpxiufen2k5mvy
4 4
http://redmine.ryxeo.com/code/leterrier-developpeu/maia/ lib/maia revid:eric.seigne@ryxeo.com-20120513142114-x3ol4ti1rewgcnuo
data/www/inc/funkce.inc.php
47 47

  
48 48
function readInfo ($infofile, $file) {
49 49
  global $galerieyear, $galeriemonth, $galerieday, $galeriedesc, $galerieauthor,
50
    $galeriename, $galerielogin, $galeriepw, $gallery_dir;
50
    $galeriename, $galerielogin, $galeriepw, $gallery_dir, $galerievideo;
51 51
	
52 52
  if (file_exists($infofile)) {
53 53
    //read from info.txt
54 54
    $info_array = infoParse($infofile);
55

  
56
    //video ?
57
    if($info_array["video"] == "true") {
58
      $galerievideo = true;
59
    }
60
    else {
61
      $galerievideo = false;
62
    }
63

  
55 64
    if ($info_array["date"]) {
56 65
      // try to be a little smarter about format
57 66
      if (ereg("([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})",
data/www/index.php
270 270
       } else 
271 271
	 $title = "Photo ${x[1]}";
272 272

  
273
       print "   <a href=\"$ThisScript?galerie=$galerie&amp;photo=${x[1]}\"";
273
       if($galerievideo) {
274
	 print "   <a href=\"$ThisScript?galerie=$galerie&amp;video=${x[1]}\"";
275
       }
276
       else {
277
	 print "   <a href=\"$ThisScript?galerie=$galerie&amp;photo=${x[1]}\"";
278
       }
274 279
       print " title=\"$title, $NumOfComments\"";
275 280
       if ($class) print " class=\"$class\"";
276 281
       print ">";
......
360 365

  
361 366
  if ($show_thumbs) {
362 367
    print "\n<!--mini thumbnail roll-->\n<div id=\"thumbs\" class=\"navigation\" style=\"visibility: hidden\"><ul class=\"thumbs noscript\" style=\"display:none\">";
363
    print "<a id=\"minus\" href=\"$ThisScript?galerie=$galerie&amp;photo=$snimek";
368
    if($galerievideo) {
369
      print "<a id=\"minus\" href=\"$ThisScript?galerie=$galerie&amp;video=$snimek";
370
    }
371
    else {
372
      print "<a id=\"minus\" href=\"$ThisScript?galerie=$galerie&amp;photo=$snimek";
373
    }
364 374
    print "\">";
365 375
    print "</a>\n";
366 376
    print " : \n";

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux