$allFiles=readFiles(); $nextIndex=findFile($_REQUEST['image']); ?>
if ($nextIndex>0) echo "
"; else echo "
"; ?>
echo "
"; ?>
if ($nextIndex<(count($allFiles)-1)) echo "
"; else echo "
"; ?>