" . $album->title . "
\n";
echo " \n";
}
}
echo "\n";
}
/*************
View photo
*************/
else {
function image($album, $file) {
global $ALBUMS_DIR;
echo $ALBUMS_DIR . "/" . $album . "/" . $file;
}
if($album) {
$a = new Album($album);
if($image) {
$photo = new Photo("", "");
$prev = "";
$next = "";
foreach($a->photos as $p) {
if($image == $p->file) {
$photo = $p;
}
if($image == $last->file) {
$next = $p;
break;
}
$prev = $last;
$last = $p;
}
?>
\n";
foreach($a->photos as $photo) {
?>
\n";
echo "\n";
}
}
}
?>