'; echo ''; foreach ( $fotos As $n => $f){ $c++; # Galerie # Titel # Fotonr $at = $text[$f]; echo ''.$at.''; if ($c == 4){ $c = 0; echo ""; } } echo ''; } function einzelbild($n,$t){ global $fotos, $anz_fotos, $gverz, $galerie, $titel, $text; echo ''; if ($t) {echo '

'.$t.'

';} echo '

'; $np = $n + 1; $zp = $n - 1; $mf = $anz_fotos - 1; if ($n) { echo '<< Anfang | '; echo '< Zurück'; } else { echo '<< Anfang | < Zurück'; } echo ' | Übersicht | '; if ($n < $mf){ echo 'Weiter > | '; echo 'Ende >>'; } else { echo 'Weiter > | Ende >>'; } echo "


"; $n++; echo '

Bild '.$n.' von '.$anz_fotos.'

'; } ?>

Galerie


read()){ if (strlen($e)>4 && stristr($e,".jpg") ){ $fotos[]= $e; } if (strlen($e)>4 && stristr($e,".txt") ){ $tdatei = $e; } } if (is_array($fotos)){ sort($fotos); $anz_fotos = count($fotos); } if ($tdatei){ $fdaten = file($gverz.$tdatei); foreach ($fdaten as $fd){ $tt = explode("#",$fd); if ($tt[0] && $tt[1]){ $text[$tt[0]] = $tt[1];} } } if ($text['titel']){echo "

".$text['titel']."

";} # normal klein if ($art == "einzel"){ $ft = $text[$fotos[$bnr]]; einzelbild($bnr,$ft); } else {uebersicht();} ?>