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, "
" - //); echo " | \n"); echo " |
\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) {