=0) echo "<< previous |"; else echo "<< previous |"; $pages=ceil(count($allFiles)/$iPP); for ($i=0; $i<$pages; $i++) { if (($requestFirstIndex/$iPP)==$i) echo " ".($i+1)." |"; else echo " ".($i+1)." |"; } if (($requestFirstIndex+$iPP)next >>"; else echo " next >>"; } function outputFiles($allFiles) { global $cols; ?> "; if (($i+1)%$cols==0)echo "\n\n"; } ?>