0 && $_GET['showmany'] < 4 && is_numeric($_GET['showmany'])) { // set $showmany to number of comics to display, // minus 1 for the default $_GET['comi'] that is displayed $showmany=$_GET['showmany']-1; $self="$self&showmany=$_GET[showmany]"; } else $showmany=0; if($current == 0 || $current < 0) { $back=$last-$showmany; $current=0; $forward=1+$showmany; $skipforward=0+$skipblocks; $skipback=$back-$skipblocks; } elseif($current >= $last) { $back=$last-1-$showmany; $current=$last; $forward=0; $skipforward=0+$skipblocks-1; $skipback=$current-$skipblocks; } else { $back=$current-1-$showmany; $forward=$current+1+$showmany; //$current=$current; $skipforward=$current+$skipblocks; $skipback=$current-$skipblocks; } function dohtml($back,$current,$forward,$files_current,$self,$skipforward,$skipback) { echo "
"; echo "
    "; if(isset($_GET['index'])) echo "no index\n"; else echo "index\n"; echo "  |  \n"; echo "back\n"; echo "  |  \n"; echo "forward
\n"; if(isset($_GET['showmany']) && $_GET['showmany'] > 0) echo "No Show Many | \n"; else echo "Show Many | \n"; echo "Skipback\n"; echo "  |  \n"; echo "Skipforward
\n"; echo "--"; echo " Rotate Image FireFox plugin --"; echo "
\n"; echo "$files_current\n
\n"; echo "
\n"; echo "$files_current\n"; echo "
\n"; } dohtml($back,$current,$forward,$files[$current],$self,$skipforward,$skipback); while ( $showmany > 0 && $current < $last && $current >= 0 ) { $current=$current+1; echo "
\n"; echo "
\n"; echo "$files[$current]
\n"; echo "
\n"; $showmany--; } // display links to comics every $fourcount echo " 0 - $files[0]
"; while ( $fourcount <= $arraysize ) { echo "  $fourcount - $files[$fourcount]
"; $fourcount=$fourcount+$fourcount; } echo " $last - $files[$last]
"; if(isset($_GET['index'])) { $fourcount=0; foreach ($files as &$value) { echo "
$fourcount - $value\n"; $fourcount=$fourcount+1; } } require("../../FOOTER.php"); ?>