Photo-Übersicht | Kommentare
Alle Photos
if (isset($show)) {
$size = @GetImageSize ("${imgdir}${show}.jpg");
$size[0] = $size[0]*5;
$size[1] = $size[1]*5;
echo " "; echo " $comment "; //Links zum vorherigen/nächsten Photo ausgeben echo ""; if ($last!="") { echo '<< | ';} echo "Photo-Übersicht"; if ($next!="") { echo ' | >>';} echo " "; //Kommentare ausgeben while(list($color,$name)=each($comments)) { if ($comment = @file("${name}.txt")) while(list($linenum,$line)=each($comment)) { preg_match("/([^ ]+) (.*)/",$line,$out); if ($out[1] == $show) { echo "".trim($out[2]).""; break; } } } } else { // Ausgabe der Bilderübersicht, Gesamtanzahl durch Anzahl der Spalten teilen, ist etwas kompliziert ;-) $images = file("photos.txt"); $count = count($images)+2; for ($j = 0; $j < $photos_in_row; $j++) { for ($i = $j; $i < $count; $i += $photos_in_row) { $line = $images[$i]; preg_match("/([^ ]+) (.*)/",$line,$out); if ($out[1] != "") { Bild($out[1],$out[2]); } } echo " | \n"; } } ?> |
Made using arnep.de PhotoGallerie.
// Preloader: läd das vorhergehende und nächste Bild in ein 1x1 großes if ($last != "") { echo ""; } if ($next != "") { echo ""; } ?>