"; echo "$thetitle"; echo ""; echo ""; echo ""; echo ""; ?> Mis à jour le 18 juillet 2009 "; $mytitle = "

$thetitle

"; ?>

Cliquez sur une image pour l'agrandir.
"; if ((strstr ($bfole, $thumbprefix) == $bfole) && (stristr( $bfole, $picthumb_ext) == $picthumb_ext)) { // begin new version /// echo "file is $file:
\n"; /// echo "bfole is $bfole:
\n"; // echo "thumbprefix is $thumbprefix :
\n"; // echo "picthumb_ext is $picthumb_ext :
\n"; // $exif = exif_read_data($file, 'IFD0'); // echo $exif===false ? "No header data found.
\n" : "Image contains headers
\n"; /// $exif = exif_read_data($file, 'DateTime'); // $exif = exif_read_data($file); /// echo $exif===false ? "No DateTime found.
\n" : "Image contains date
\n"; // while(list($k,$v)=each($exif)) // { // // echo "$k: $v
\n"; // if ($k == DateTime) // { // print "DateTime $file : $v
"; // break; // } // } $exif = exif_read_data($file, FILE); //// echo $exif===false ? "No DateTime found.
\n" : "Image contains date
\n"; while(list($k,$v)=each($exif)) { // echo "$k: $v
\n"; if ($k == DateTime) { //// print "DateTime $file : $v
"; break; } } // put file name without prefix in array $bfile = substr($bfole, $lpf); // echo "bfile is $bfile:
\n"; $photo[$i][0] = $bfile; /// print "$i : $photo[$i]
"; // $i++; // $exif = exif_read_data($file, 'ImageDescription'); // echo $exif===false ? "No ImageDescription found.
\n" : "Image contains ImageDescription
\n"; // // put file name without prefix in array // $descr[$i] = $exif[10]; // print "ImageDescription $i : $descr[$i]
"; // $i++; // $exif = exif_read_data($file, 0, true); // echo "$file:
\n"; // foreach ($exif as $key => $section) // { // foreach ($section as $name => $val) // { // echo "$key.$name: $val
\n"; // } // } $exif = read_exif_data ($file); // $photodescr[$i] = $file; while(list($k,$v)=each($exif)) { // echo "$k: $v
\n"; if ($k == ImageDescription) { $photo[$i][1] = $v; /// echo "$k: $v
\n"; break; } } $i++; // end new version } } // if ((strstr ($bfole, $thumbprefix) == $bfole) && (stristr( $bfole, $movthumb_ext) == $movthumb_ext)) // { // $bfile = substr($bfole, 3); // $video[$i] = $bfile; // // print "$i : $photo[$i]
"; // $j++; // } $nbphotos=$i; // $nbvideos=$j; closedir($handle); function cmpfile ($a, $b) { global $thumbprefix; if ($a == $b) return 0; $atime = filemtime($thumbprefix . $a); $btime = filemtime($thumbprefix . $b); if ($atime == $btime) return 0; // return (filemtime($big_url . $bigprefix . $a) < filemtime($big_url . $bigprefix . $b)) ? -1 : 1; return ($atime < $btime) ? -1 : 1; } function cmpexif ($a, $b) { $aa = $a[0]; $bb = $b[0]; // echo "In cmpexif:
"; // echo "aa is $aa
"; // echo "bb is $bb
"; global $thumbprefix; if ($aa == $bb) return 0; $atime = exif_read_data($thumbprefix . $aa, 'FILE'); if ($atime === false) return -1; // echo $atime===false ? "No DateTime found.
\n" : "Image contains date
\n"; // echo "By iterating aa"; // while(list($k,$v)=each($atime)) // { // // echo "$k: $v
\n"; // if ($k == DateTime) // { // // print "DateTime " . $thumbprefix . $a . " : $v
"; // $at = $v; // echo "file $aa at: $at
\n"; // break; // } // } // echo " By direct access to aa"; $at = $atime[DateTime]; //// echo "file $aa at: $at
\n"; $btime = exif_read_data($thumbprefix . $bb, 'FILE'); // $btime = exif_read_data($thumbprefix . $bb); if ($btime === false) return -1; // echo "By iterating bb"; // while(list($k,$v)=each($btime)) // { // // echo "$k: $v
\n"; // if ($k == DateTime) // { // // print "DateTime " . $thumbprefix . $b . " : $v
"; // $bt = $v; // echo "file $bb bt: $bt
\n"; // break; // } // } // echo " By direct access to bb"; $bt = $btime[DateTime]; //// echo "file $bb bt: $bt
\n"; // echo $exifdate1===false ? "No Create Date found for $thumbprefix . $a.
\n" : "Image $thumbprefix . $a contains date
\n"; // echo $exifdate2===false ? "No Create Date found for $thumbprefix . $b.
\n" : "Image $thumbprefix . $b contains date
\n"; // echo "comparaison result: " ; // echo strcmp($at, $bt); // echo "
"; return strcmp($at, $bt); // return (filemtime($thumbprefix . $a) < filemtime($thumbprefix . $b)) ? -1 : 1; } // function cmpexifdate ($d1, $d2) // { // global $thumbprefix; // // if ($d1 == $d2) return 0; // return strcmp ($d1, $d2); // } // echo "Before usort
"; // for ($j = 0; $j < $nbphotos; $j += 1) // { // echo "$j -> $photo[$j]
"; // } usort ($photo, "cmpexif"); // usort ($photodescr, "cmpexif"); // usort ($photo, "strcmp"); // usort ($photodescr, "strcmp"); //// echo "After usort
"; // for ($j = 0; $j < $nbphotos; $j += 1) // { // echo "$j ->" . $photo[$j][0] . "
"; // echo "$j ->" . $photo[$j][1] . "
"; // // echo "$j -> $photodescr[$j]
"; // } reset ($photo); // reset ($photodescr); ?> "); // setlocale ("LC_TIME", "fr_FR"); // echo ("
" . strftime ("%A %e %B %Y", filemtime($bigprefix . $photo[$j])) . "
"); // echo "

$datetag

". "
"; echo ""; $newtable=0; } echo ""; // $comune=8 // old file names beginning with date // $comune=3; // if (substr($photo[$j], 0, $comune) == substr($photo[$j+1], 0, $comune)) { for ($k = 0; $k < 2; $k++) { $snewstr = $thumbprefix . $photo[$j + $k][0]; //// echo "snewstr is $snewstr
"; $s1str= $big_url . $bigprefix . $photo[$j + $k][0]; // $filedescr = $photodescr[$j + $k]; // $filedescr = substr($photo[$j + $k][1], strlen($snewstr)); $filedescr = $photo[$j + $k][1]; //// echo "filedescr is $filedescr"; if ($filedescr == "") { $filedescr = $photo[$j + $k][0]; //// echo "filedescr now is $filedescr"; } // echo "snewstr is $snewstr"; // echo "s1str is $s1str" ; // $s1str="../" . $photo[$j + $k]; // echo ""; } echo ""; } // else // { // $snewstr=$thumbprefix . $photo[$j]; // $s1str=$big_url . $bigprefix . $photo[$j]; // // $s1str="../" . $photo[$j + $k]; // echo ""; // $j -= 1; // echo ""; // echo ""; // echo "
"; echo ""; echo "\"Cliquez
"; // echo "\"Cliquez
"; // $newtable=1; // } } // echo "
"; // echo ""; // echo "
"; // echo ""; ?>