1) $paget=" - Page ".$p; $page="
Games.FilesPack.com - Free Games Download for Windows and Mac".$paget."
"; $page.="

Games.FilesPack.com Casual Games list

"; $numfiles = $GLOBALS['GlobalReader']->GetNumberOfGamesInCategory("All"); echo $numfiles; $numpages=ceil(strval($numfiles/$filesperpage)); $startfile=($p-1)*$filesperpage; $page.="Pages: "; for($i=1;$i<$numpages;$i++) { if($i!=$p) $page.="$i "; else $page.=$i." "; } $in_type='Downloads'; $page.="

"; if ($numfiles > 0) { for ($i = $startfile; $i < min($filesperpage + $startfile, $numfiles); $i++) { RA_SetGame( $in_type . '|All[' . ($i+1) . ']'); $title=RA_GameTitle(); $fileurl="http://games.filespack.com/".generateSlug($title).".html"; $page.="".$title."
"; } } $page.=""; echo $page;?>