Screenshots

Error: Unknown image ID"; } else { echo html_frame_start("Screenshot Viewer","540",2,0,"color0"), html_frame_tr( html_frame_td( '', 'align=center class="color0"' ) ), html_frame_tr( html_frame_td( html_ahref("  << Back",$PHP_SELF."?offset=".$offset,"class=menuItem"), 'align=left class="color4"' ) ), html_frame_end(); } } else { // Grab list of images from screenshot dir // and loop through them and add to $shots array $shots = array(); $images = get_files($file_root."/screenshots","png"); while (list($key,$image) = each($images)) { if (ereg("big",$image)) continue; array_push($shots,$image); } // counter vars $total = count($shots); $num = 0; $where = 0; echo html_frame_start("Screenshot Gallery","540",2,0,"color0").""; // loop and display images while (list($c,$image) = each($shots)) { // do not show images less than current pos if ($offset > $c) continue; // display image echo html_frame_td( ''. '', 'align=center class="color0"' ); // count number of images displayed. $num++; // end row at 2 if (($num % 2 == 0) && ($num != 1)) { echo "\n"; } // end at 4 if ($num == 4) { $where = $c; break; } } echo ""; $nextLink = " "; $nextLink = " "; // display prev link if ($offset) { $prev = $offset - 4; $prevLink = html_ahref("<< Prev 4 Images",$PHP_SELF."?offset=".$prev,"class=menuItem"); } // display next link if (($offset + 4) < $total) { $next = $where + 1; $nextLink = html_ahref("Next 4 Images >>",$PHP_SELF."?offset=".$next,"class=menuItem"); } echo html_frame_tr( html_frame_td("  ".$prevLink,"align=left"). html_frame_td($nextLink."  ","align=right"), "color4" ); echo html_frame_end(); //end view } // close table echo html_p(); echo html_round_frame_end(" "); // end of html sidebar_end(); html_footer(); // end ?>