count($imglist)-1) $img = count($imglist)-1; echo '
Bilder-Galerie-

'; if($img > 0) $back = $img -1; else $back = count($imglist)-1; if($img < count($imglist)-1) $next = $img +1; else $next = 0; echo '
Zurück
Vorwärts
'; ?>