>>>>>>>>>>>>>>>>>>>>>>>>>>>> $subdir = "galerie"; //Bilderverzeichnis $heading = ""; //Überschrift $imagewidth = 100; //Thumbnailbreite (Min 50; Max 200) $bigimagewidth = 400; //Originalbild-Breite (Min 250; Max 600) $colums = 4; //Spalten (Min 2; Max 10) $shadow = true; //Schatten? Ja = true; Nein = False //<<<<<<<<<<<<<<<<<<<<<< KONFIGURATION ENDE >>>>>>>>>>>>>>>>>>>>>>>>>> function shadowtable($imagehtml) { $output .= "
$imagehtml
 
"; return $output; } function showpicture($image, $widthget, $subdir, $shadow) { if ($shadow == true) { $output = ""; $imagehtml = " $image"; $output .= shadowtable($imagehtml); $output .= "" .$image. ""; } else { $output = ""; $output .= "
"; $output .= " $image
" .$image. ""; } return $output; } function showbigpicture($subdir, $imagewidth, $image, $shadow, $von) { $i = 0; $dir = opendir($subdir); while ($file = readdir($dir)) { $imagechecker = @getimagesize($subdir. "/" .$file); if ($imagechecker[2] == 1 OR $imagechecker[2] == 2) { $images[$i] = $file; if ($file == $image) { $imagehtml = "$file"; $aktuell = count($images); if ($shadow == true) { echo shadowtable($imagehtml); echo "
Bild " .$aktuell. " von " .$von. " Bildname: $file
"; } else { echo $imagehtml. "
"; echo "Bild " .$aktuell. " von " .$von. ""; } $count = $i; } $i++; } } echo "
"; if ($count > 0) { $output .= " << Erstes"; $output .= " < Zurück "; } else {$output .= " ";} $output .= ""; $output .= "Back"; $output .= ""; if ($count < count($images)-1) { $output .= " Vorwärts > "; $output .= " Letztes >> "; } else {$output .= " ";} $output .= "
"; return $output; } //<<<<<<<<<<<<< HAUPTPROGRAMM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> echo "
$heading

"; $count = 1; $zaehler = 0; $dir = opendir($subdir); while ($file = readdir($dir)) { $imagechecker = @getimagesize($subdir. "/" .$file); if ($imagechecker[2] == 1 OR $imagechecker[2] == 2) { $zaehler ++; } } closedir($dir); if (!$view) { $dir = opendir($subdir); echo ""; while ($file = readdir($dir)) { $imagechecker = @getimagesize($subdir. "/" .$file); if ($imagechecker[2] == 1 OR $imagechecker[2] == 2) { $zaehler ++; if ($count == 1){echo "";} echo showpicture($file, $imagewidth, $subdir, $shadow); if ($count < $colums) {$count++;} else {$count = 1; echo "";} } } closedir($dir); echo "
"; } else { echo "
"; echo ""; echo "
"; echo showbigpicture($subdir, $bigimagewidth, $image, $shadow, $zaehler); echo "
"; } if ($shadow == true){$shaus = "Ja";} else {$shaus = "Nein";} ?>