session->offlineAlbums["albums.php"]=true; /* Read the album list */ $albumDB = new AlbumDB(FALSE); $gallery->session->albumName = ""; $page = 1; /* If there are albums in our list, display them in the table */ $numAlbums = $albumDB->numAlbums($gallery->user); $numPhotos = $albumDB->getCachedNumPhotos($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; } $imageDir = $gallery->app->photoAlbumURL . '/images'; $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; ?> <?php echo $gallery->app->galleryTitle ?> 1) { ?> session->offline && !strcmp($gallery->app->default["showSearchEngine"], "yes")) { ?>
Search:
app->photoAlbumURL ?>/images/pixel_trans.gif>
"; $adminText .= pluralize($numAlbums, "album", "no"); $adminText .= ", " . pluralize($numPhotos, "photo", "no"); if ($maxPages > 1) { $adminText .= " on " . pluralize($maxPages, "page", "no") . " "; } $adminText .= ""; $adminCommands = ""; if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { $displayName = $gallery->user->getFullname(); if (empty($displayName)) { $displayName = $gallery->user->getUsername(); } $adminCommands .= "Welcome, $displayName   
"; } if ($gallery->user->canCreateAlbums() && !$gallery->session->offline) { $adminCommands .= "[new album] "; } if ($gallery->user->isAdmin()) { if ($gallery->userDB->canModifyUser() || $gallery->userDB->canCreateUser() || $gallery->userDB->canDeleteUser()) { $adminCommands .= popup_link("[manage users]", "manage_users.php"); } } if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { if ($gallery->userDB->canModifyUser()) { $adminCommands .= popup_link("[preferences]", "user_preferences.php"); } if (!$GALLERY_EMBEDDED_INSIDE) { $adminCommands .= "[logout]"; } } else { if (!$GALLERY_EMBEDDED_INSIDE) { $adminCommands .= popup_link("[login]", "login.php", 0); } } $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 Gallery Administrator!

"; print "Gallery 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") ?>
album, "description") ?>
app->default["showOwners"], "no")) { ?> Owner: getEmail()?>>getFullName()?>
user->canDeleteAlbum($gallery->album)) { ?> user->canWriteToAlbum($gallery->album)) { ?> user->canChangeTextOfAlbum($gallery->album) && !$gallery->session->offline) { ?> $tmpAlbumName))?>>[edit captions] user->isAdmin() || $gallery->user->isOwnerOfAlbum($gallery->album)) { ?> album->fields["public_comments"],"yes")) { ?> $tmpAlbumName))?>>[view comments]
url: > session->offline) { echo breakString($albumURL, 60, '&', 5); } else { echo $tmpAlbumName; } ?> session->offline) { ?>
Hey! this album so that the URL is not so generic! album->versionOutOfDate()) { ?> user->isAdmin()) { ?>
Note: This album is out of date!
Last changed on album->getLastModificationDate()?>. This album contains album->numPhotos(0), "item", "no")?>. album->fields["display_clicks"] == "no") && !$gallery->session->offline) { ?>

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)?>