$imagehtml   "; return $output; } function showthumb($image, $widthget, $thumbdir) { $output = ""; $imagehtml = "$image"; $output .= shadowtable($imagehtml); $output .= "" .$image. ""; return $output; } // wenn swf, dann einen platzhalter anzeigen function showswfthumb($imgrealname, $image, $widthget, $realdir) { $output = ""; $imagehtml = "$image"; $output .= shadowtable($imagehtml); $output .= "" .$imgrealname. ""; return $output; } function showswf($image, $imagedir) { $imagechecker = @getimagesize($imagedir.$image); $output = ""; $output=" "; return $output; } function showimage($imagedir, $imagewidth, $image, $shadow, $domain, $imgtotal) { $i = 0; $dir = opendir($imagedir); while (false !== ($file = readdir($dir))) { if ( $file != "." && $file != ".." && $file != "Thumbs.db" && $file != "index.php"){ $imagechecker = @getimagesize($imagedir.$file); $images[$i] = $file; if ($file == $image) { $imgtyp = substr($image, -3); ## file ext finden if ($imgtyp != 'swf') ## nicht swf datei { $aktuell = count($images); $output = ""; $bigimagewidth = '500'; $bigimageheight = '500'; $src_w = $imagechecker[0]; $src_h = $imagechecker[1]; if ($src_w > '500'){$pic_dimension="width=500";} else if ($src_h < '500'){$width="width=".$src_w; $height=" height=".$src_h; $pic_dimension =$width.$height;} $imagesrc = "Bild in Originalgrösse anzeigen"; $output .= shadowtable($imagesrc); $output .= "

Link zum Bild:


"; //echo $output; $output .= "
Bildhöhe: $imagechecker[1] | Bildbreite: $imagechecker[0] | ".imagesize_kb($imagedir.$file)."
Bildname: $file
Bildnr. " .$aktuell. "
"; $count = $i; } elseif ($imgtyp == 'swf') ## hier swf datei { $aktuell = count($images); $output = showswf($file, $imagedir); $output .= "
Bildhöhe: $imagechecker[1] | Bildbreite: $imagechecker[0] | ".imagesize_kb($imagedir.$file)."
Moviename: $file
Bildnr. " .$aktuell. "
"; $count = $i; } } $i++; } } // ende while if ($count > 0) { $output .= " Erstes  | "; $output .= " Bild zurück  | "; } else {$output .= " ";} $output .= "Galerie Hauptseite  | "; if ($count < count($images)-1) { $output .= " Bild vor  | "; $output .= " Letztes "; } else {$output .= " ";} return $output; } // ende function showimage ########### MAIN - PRETTY STUFF ########### echo "
$galnam

"; if (!$view) { $dir = opendir($thumbdir); //Verzeichnis $verzeichnisinhalt = array(); while (true == ($file = readdir($dir))) { if ( $file != "." && $file != ".." && $file != "Thumbs.db" && $file != "index.php") { $verzeichnisinhalt[] = $file; } } echo ""; for($i=0;$i"; } closedir($dir); echo "
"; } else { // verzeichnis eintraege auslesen und zaehlen // benoetigt fuer uebergabe an showimage funktion $imgdir = opendir($imagedir); //Verzeichnis $verzeichnisinhalt2 = array(); while (false !== ($file = readdir($imgdir))) { if ( $file != "." && $file != ".." && $file != "Thumbs.db" && $file != "index.php") { $verzeichnisinhalt2[] = $file; } $i++; } $imgtotal = count($verzeichnisinhalt2); closedir($imgdir); // ende verzeichnis auslesen echo "
"; echo ""; echo "
"; include("../inc/footer.php"); echo get_footer("../", $image, "1"); } ?>