session->albumName = ""; $page = 1; /* If there are albums in our list, display them in the table */ $numAlbums = $albumDB->numAlbums($gallery->user); $numPhotos = $albumDB->numPhotos($gallery->user); if (!$gallery->session->albumListPage) { $gallery->session->albumListPage = 1; } $perPage = $gallery->app->default["albumsPerPage"]; $maxPages = max(ceil($numAlbums / $perPage), 1); if ($gallery->session->albumListPage > $maxPages) { $gallery->session->albumListPage = $maxPages; } $pixelImage = ""; $borderColor = $gallery->app->default["bordercolor"]; $navigator["page"] = $gallery->session->albumListPage; $navigator["pageVar"] = "set_albumListPage"; $navigator["url"] = makeGalleryUrl("albums.php"); $navigator["maxPages"] = $maxPages; $navigator["spread"] = 6; $navigator["fullWidth"] = 100; $navigator["widthUnits"] = "%"; $navigator["bordercolor"] = $borderColor; ?> <?= $gallery->app->galleryTitle ?> app->default["showSearchEngine"], "yes")) { ?>
Search:
app->photoAlbumURL ?>/images/pixel_trans.gif>
"; $adminText .= pluralize($numAlbums, "Section", "no"); $adminText .= ", " . pluralize($numPhotos, "Item", "no"); if ($maxPages > 1) { $adminText .= " on " . pluralize($maxPages, "page", "no") . " "; } $adminText .= ""; $adminCommands = ""; if ($gallery->user->isLoggedIn()) { $adminCommands .= "Welcome, " . $gallery->user->getFullname() . "  
"; } if ($gallery->user->canCreateAlbums()) { $adminCommands .= "[new album] "; } if ($gallery->user->isAdmin()) { if ($gallery->userDB->canModifyUser() || $gallery->userDB->canCreateUser() || $gallery->userDB->canDeleteUser()) { $adminCommands .= '[manage users] '; } } if ($gallery->user->isLoggedIn()) { if ($gallery->userDB->canModifyUser()) { $adminCommands .= '[preferences] '; } if (!$GALLERY_EMBEDDED_INSIDE) { $adminCommands .= "[logout]"; } } else { if (!$GALLERY_EMBEDDED_INSIDE) { //$adminCommands .= '[login]'; } } $adminCommands .= "
"; $adminbox["text"] = $adminText; $adminbox["commands"] = $adminCommands; $adminbox["bordercolor"] = $borderColor; $adminbox["top"] = true; include ($GALLERY_BASEDIR . "layout/adminbox.inc"); ?> brokenAlbums) && $gallery->user->isAdmin()) { print ""; print ""; print ""; } ?> session->albumListPage - 1) * $perPage + 1; $end = min($start + $perPage - 1, $numAlbums); for ($i = $start; $i <= $end; $i++) { $gallery->album = $albumDB->getAlbum($gallery->user, $i); $isRoot = $gallery->album->isRoot(); // Only display album if it is a root album if($isRoot) { if (strcmp($gallery->app->default["showOwners"], "no")) { $owner = $gallery->album->getOwner(); } $tmpAlbumName = $gallery->album->fields["name"]; $albumURL = makeAlbumUrl($tmpAlbumName); ?> app->showAlbumTree, "yes")) { ?> app->showAlbumTree, "yes")) { ?>
"; print "
"; print "
Attention Administrator!

"; print "Program has detected the following directories:

"; print "
"; foreach ($albumDB->brokenAlbums as $tmpAlbumName) { print "$tmpAlbumName
"; } print "
"; print "
in your albums directory (" . $gallery->app->albumDir . ").
These "; print "are not valid albums. Please move them out of the albums directory."; print "
"; print "
html_wrap['borderColor'] = $borderColor; $gallery->html_wrap['borderWidth'] = 1; $gallery->html_wrap['pixelImage'] = $imageDir . "/pixel_trans.gif"; $scaleTo = $gallery->app->highlight_size; $highlightIndex = $gallery->album->getHighlight(); if (isset($highlightIndex)) { list($iWidth, $iHeight) = $gallery->album->getThumbDimensions($highlightIndex, $scaleTo); } else { $iWidth = $gallery->app->highlight_size; $iHeight = 100; } $gallery->html_wrap['thumbWidth'] = $iWidth; $gallery->html_wrap['thumbHeight'] = $iHeight; $gallery->html_wrap['thumbTag'] = $gallery->album->getHighlightTag($scaleTo); $gallery->html_wrap['thumbHref'] = $albumURL; includeHtmlWrap('inline_gallerythumb.frame'); ?> album, "title", $edit) ?>
album, "description", $edit) ?>
app->default["showOwners"], "no")) { ?> Owner: getFullName()?>
user->canDeleteAlbum($gallery->album)) { ?> ">[delete album] user->canWriteToAlbum($gallery->album)) { ?> ">[move album] ">[rename album] user->canChangeTextOfAlbum($gallery->album)) { ?> $tmpAlbumName))?>>[edit captions] user->isAdmin() || $gallery->user->isOwnerOfAlbum($gallery->album)) { ?> ">[permissions] album->fields["public_comments"],"yes")) { ?> $tmpAlbumName))?>>[view comments]
url: >
Hey! ">Rename this album so that the URL is not so generic! album->versionOutOfDate()) { ?> user->isAdmin()) { ?>
Note: This album is out of date! ">[upgrade album]
This album contains album->numPhotos(0), "item", "no")?>. album->fields["display_clicks"] == "no")) { ?>

This album has been viewed album->getClicks(), "time", "0")?> since album->getClicksDate()?>. album->fields["name"]; if ($gallery->user->canWriteToAlbum($gallery->album) && (!($gallery->album->fields["display_clicks"] == "no"))) { ?> $albumName), "albums.php") . "'" , 1)?>">[reset counter]