session->offline && ( (!strcmp($gallery->app->showSearchEngine, "yes") && $numPhotos != 0 ) || $GALLERY_EMBEDDED_INSIDE =='phpBB2')) { ?> '. sprintf($lang['Forum_Index'], $board_config['sitename']) . ''; } if ($numPhotos != 0) { echo ''; } ?>
'; echo makeFormIntro('search.php', array( 'name' => 'search_form', 'method' => 'post')); echo ''. _("Search") .': '; echo ''; echo '
1) { $adminText .= sprintf(_("%s (%s), %s on %s"), $toplevel_str, $total_str, $image_str, $page_str); } else if ($numAccess != $numAlbums) { $adminText .= sprintf(_("%s (%s), %s"), $toplevel_str, $total_str, $image_str); } else if ($maxPages > 1) { $adminText .= sprintf(_("%s, %s on %s"), $toplevel_str, $image_str, $page_str); } else { $adminText .= sprintf(_("%s, %s"), $toplevel_str, $image_str); } if (!empty($gallery->app->stats_foruser) && $numPhotos != 0) { $adminText .= "\n
". generateStatsLinks(); } /* Admin Text (right side) */ $adminCommands = ''; if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { $displayName = $gallery->user->displayName(); $adminCommands .= sprintf(_("Welcome, %s"), $displayName) . "  
"; } if ($gallery->app->gallery_slideshow_type != "off" && $numPhotos != 0) { $iconText = getIconText('display.gif', _("slideshow")); $iconElements[] = ' null)) .'">'. $iconText .''; } if ($gallery->user->canCreateAlbums() && !$gallery->session->offline) { $iconText = getIconText('folder_new.gif', _("new album")); $iconElements[] = ''. $iconText .''; } if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { if ($gallery->userDB->canModifyUser()) { $iconText = getIconText('yast_sysadmin.gif', _("preferences")); $iconElements[] = popup_link($iconText, "user_preferences.php", false, true, 500, 500); } if ($gallery->user->isAdmin()) { $docsUrl = galleryDocs('admin'); if ($docsUrl) { $iconText = getIconText('info.gif', _("documentation")); $iconElements[] = "". $iconText .''; } $iconText = getIconText('kdf.gif', _("admin page")); $iconElements[] = ''. $iconText .' '; } if (!$GALLERY_EMBEDDED_INSIDE) { $iconText = getIconText('exit.gif', _("logout")); $iconElements[] = ''. $iconText .''; } } else { if (!$GALLERY_EMBEDDED_INSIDE) { $iconText = getIconText('identity.gif', _("login")); $iconElements[] = popup_link($iconText, "login.php", false, true, 500, 500); if (!strcmp($gallery->app->selfReg, 'yes')) { $iconText = getIconText('yast_sysadmin2.gif', _("register")); $iconElements[] = popup_link($iconText, "register.php", false, true, 500, 500); } } } $adminbox["text"] = $adminText; $adminbox["commands"] = $adminCommands . makeIconMenu($iconElements); $adminbox["bordercolor"] = $borderColor; includeLayout('navtablebegin.inc'); includeLayout('adminbox.inc'); includeLayout('navtablemiddle.inc'); echo ""; includeLayout('navigator.inc'); includeLayout('navtableend.inc'); includeLayout('ml_pulldown.inc'); echo ""; /* Display warnings about broken albums */ if ( (sizeof($albumDB->brokenAlbums) || sizeof($albumDB->outOfDateAlbums)) && $gallery->user->isAdmin()) { echo "\n
"; echo "\n

". _("Attention Gallery Administrator!") ."

"; if (sizeof($albumDB->brokenAlbums)) { echo sprintf(_("%s has detected the following %d invalid album(s) in your albums directory
(%s):"), Gallery(), sizeof($albumDB->brokenAlbums), $gallery->app->albumDir); echo "\n

"; foreach ($albumDB->brokenAlbums as $tmpAlbumName) { echo "
$tmpAlbumName\n"; } echo "\n

". _("Please move it/them out of the albums directory.") ; } if(sizeof($albumDB->outOfDateAlbums)) { echo sprintf(_("%s has detected that %d of your albums are out of date."), Gallery(), sizeof($albumDB->outOfDateAlbums)); echo "\n
"; echo sprintf(_("Please %s."), popup_link(_("upgrade those albums"), "upgrade_album.php",0,0,500,500,"error")); } echo "\n
\n"; } if (getRequestVar('gRedir') == 1) { echo "\n
"; echo "\n

". _("Attention!") ."

"; echo sprintf(_('The album or photo that you were attempting to view either does not exist, or requires user privileges that you do not posess. %s'), ($gallery->user->isLoggedIn() && !$GALLERY_EMBEDDED_INSIDE ? '' : sprintf(_("%s and try again."), popup_link(_("Log in"), "login.php", false, true, 500, 500)))); echo "\n
\n"; } ?> 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->showOwners, "no")) { $owner = $gallery->album->getOwner(); } $tmpAlbumName = $gallery->album->fields["name"]; $albumURL = makeAlbumUrl($tmpAlbumName); ?> app->albumTreeDepth) && $gallery->app->albumTreeDepth >0) { ?> app->albumTreeDepth) && $gallery->app->albumTreeDepth >0) { ?>
html_wrap['borderColor'] = $borderColor; $gallery->html_wrap['borderWidth'] = 1; $gallery->html_wrap['pixelImage'] = getImagePath('pixel_trans.gif'); $scaleTo = $gallery->app->highlight_size; list($iWidth, $iHeight) = $gallery->album->getHighlightDimensions($scaleTo); if (!$iWidth) { $iWidth = $gallery->app->highlight_size; $iHeight = 100; } $gallery->html_wrap['imageWidth'] = $iWidth; $gallery->html_wrap['imageHeight'] = $iHeight; $gallery->html_wrap['imageTag'] = $gallery->album->getHighlightTag($scaleTo,'', _("Highlight for Album:") ." ". $gallery->album->fields["title"]); $gallery->html_wrap['imageHref'] = $albumURL; $gallery->html_wrap['frame'] = $gallery->app->gallery_thumb_frame_style; includeHtmlWrap('inline_gallerythumb.frame'); ?>
album, "title", $albumURL) ?>
album, "description") ; if ($description != "") { echo "\n
"; echo "\n\t$description"; echo "\n
"; } if (strcmp($gallery->app->showOwners, "no")) { echo "\n
"; echo _("Owner:") . ' '. showOwner($owner); echo '
'; } if ($gallery->user->isAdmin() || $gallery->user->isOwnerOfAlbum($gallery->album)) { echo _("url:") . ''; if (!$gallery->session->offline) { echo breakString(urldecode($albumURL), 60, '&', 5); } else { echo $tmpAlbumName; } echo ''; if (ereg("album[[:digit:]]+$", $albumURL)) { if (!$gallery->session->offline) { echo '
'. _("Hey!") . sprintf(_("%s so that the URL is not so generic!"), popup_link(_("Rename this album"), "rename_album.php?set_albumName={$tmpAlbumName}&index=$i",0,0,500,500,"error")); echo ''; } } } ?>
album->getLastModificationDate() ); $visibleItems=array_sum($gallery->album->numVisibleItems($gallery->user)); echo " "; // Need a space between these two text blocks echo pluralize_n2(ngettext("This album contains 1 item.", "This album contains %d items.", $visibleItems), $visibleItems); if (!($gallery->album->fields["display_clicks"] == "no") && !$gallery->session->offline) { ?>
album->getClicks(); echo sprintf(_("This album has been viewed %s since %s."), pluralize_n2(ngettext("1 time", "%d times", $clickCount), $clickCount, _("0 times")), $gallery->album->getClicksDate()); } $albumName=$gallery->album->fields["name"]; if ($gallery->user->canWriteToAlbum($gallery->album) && (!($gallery->album->fields["display_clicks"] == "no"))) { echo " ".popup_link("[" . _("reset counter") ."]", doCommand("reset-album-clicks", array("set_albumName" => $albumName), "albums.php"), 1); } if($gallery->app->comments_enabled == 'yes') { // if comments_indication are "albums" or "both" switch ($gallery->app->comments_indication) { case "albums": case "both": $lastCommentDate = $gallery->album->lastCommentDate($gallery->app->comments_indication_verbose); print lastCommentString($lastCommentDate, $displayCommentLegend); } // end switch } ?>
*'; echo ''. _("Comments available for this item.") .'

'; } ?>