From 38c306c40d1c8692253b9e4a4357772b73c82bd6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 11 Apr 2005 18:24:36 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5826 --- html/inc/gallery.inc | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/html/inc/gallery.inc b/html/inc/gallery.inc index cceb304289..b0f5db58df 100644 --- a/html/inc/gallery.inc +++ b/html/inc/gallery.inc @@ -20,28 +20,24 @@ function write_page_links($filename, $currPageNum, $numPages) { // Make the 'previous' and 'next' page links as appropriate. if ($currPageNum > 1) { - echo "Previous Page"; + echo "Previous page"; if ($currPageNum != $numPages) { echo " | "; } } if ($currPageNum != $numPages) { - //fwrite($descriptor, "Next Page"); - echo "Next Page"; + echo "Next page"; } - //fwrite($descriptor, "

Jump to Page:\n"); echo "

Jump to Page:\n"; // Make the individual page links (or a bold non-link for the current page). // for ($i = 1; $i <= $numPages; $i++) { if ($i != $currPageNum) { - //fwrite($descriptor, "$i\n"); echo "$i\n"; } else { - //fwrite($descriptor, "$i\n"); echo "$i\n"; } } @@ -96,37 +92,21 @@ function build_picture_pages($width, $height) { for ($page = 1; $page <= $numPages; $page++) { $filename = PROFILE_PATH . "user_gallery_" . $page . ".html"; - //$descriptor = fopen($file, "w"); open_output_buffer(); - page_head("User Picture Gallery: Page $page of $numPages"); + page_head("Profile gallery: page $page of $numPages"); - //fwrite($descriptor, - // "Last updated " - // . pretty_time_str(time()) - // . "\n

Browse the user profiles by picture. - // Only user profiles with pictures are listed here." - //); echo "Last updated ", pretty_time_str(time()), "\n

Browse the user profiles by picture. Only user profiles with pictures are listed here."; - //fwrite($descriptor, "\n"); echo "
"); echo ""; for ($col = 0; $col < $width; $col++) { if ($count < $numIds) { - //fwrite($descriptor, - // "" - //); echo "\n"; if ($count == $numIds) { break; } } - //fwrite($descriptor, "
\n"); echo "
\n"); echo "\n"; // Previous and Next links @@ -152,7 +130,6 @@ function build_picture_pages($width, $height) { page_tail(false); - //fclose($descriptor); close_output_buffer($filename); } @@ -276,13 +253,11 @@ function build_profile_pages($members, $pageHead, $pageTitle, $rowsPerPage, $col for ($page = 1; $page <= $numPages; $page++) { $filename = $filePath . $baseFileName . "_" . $page . ".html"; - //$descriptor = fopen($filename, "w"); open_output_buffer(); $head = $pageHead . ": Page $page of $numPages"; page_head($pageTitle); - //fwrite($descriptor, "Last updated " . pretty_time_str(time()) . "

\n"); echo "Last updated ", pretty_time_str(time()), "

\n"; $offset = (($page-1) * $rowsPerPage * $colsPerPage); @@ -302,7 +277,6 @@ function build_country_summary_page($countryMembers) { $countries = array_keys($countryMembers); $filename = PROFILE_PATH . "profile_country.html"; - //$descriptor = fopen($filename, "w"); open_output_buffer(); page_head("User Profiles by Country"); @@ -322,7 +296,6 @@ function build_country_summary_page($countryMembers) { echo ""; page_tail(false); - //fclose($descriptor); close_output_buffer($filename); } @@ -330,7 +303,6 @@ function build_alpha_summary_page($characters_used) { global $alphabet; $filename = PROFILE_PATH."profile_alpha.html"; - //$descriptor = fopen($filename, "w"); open_output_buffer(); foreach ($alphabet as $character) {