getBases(); if(isset($_GET['system'])) { $system = basename($_GET['system']); $numGames = $db->getNumGames($system); } ?> games
searchGames($_GET['system'], $_GET['search']); ?> 0 results
getGames($_GET['system'], $_GET['GE_Id']); $globs = array(); foreach($games as $g) { echo "

".htmlspecialchars($g['Name'])."

"; echo "Published: $g[Year], $g[Publisher]
"; $scrnshotUrl = findScreenshot($paths, $g['ScrnshotFilename']); if($scrnshotUrl) { $scrnshotUrl = htmlspecialchars(implode('/', array_map('rawurlencode', explode('/', $scrnshotUrl)))); echo "\"\""; } echo nl2br(htmlspecialchars(substr($g['MemoText'], 0, 200)))."
"; echo "
"; } } else if(isset($_GET['GA_Id'])) { $game = $db->getGame($_GET['system'], $_GET['GA_Id']); $gbPrefix = "gamebases/".htmlspecialchars($_GET['system']); $scrnshot = findScreenshot($paths, $game['ScrnshotFilename']); if($scrnshot) { $scrnshotUrl = htmlspecialchars(implode('/', array_map('rawurlencode', explode('/', $scrnshot)))); echo "\"\""; for($i = 1; $i <= 2; $i++) { $extraScrnshot = preg_replace('#(\.[a-z]{3})$#i', "_$i\\1", $scrnshot); if(file_exists($extraScrnshot)) { $scrnshotUrl = htmlspecialchars(implode('/', array_map('rawurlencode', explode('/', $extraScrnshot)))); echo " \"\""; } } } echo '
'; echo '

'.htmlspecialchars($game['Name']).'

'; if($game['SidFilename']) { $sidUrl = $gbPrefix."/Music/".htmlspecialchars(str_replace('\\', '/', $game['SidFilename'])); if($_GET['system'] == 'NES') { echo ''.htmlspecialchars($game['SidFilename']).'
'; ?>
Requires Flash10
'; foreach($game as $k => $v) { if($v) echo ''.htmlspecialchars($k).''.htmlspecialchars($v).''; } echo ''; } else if(isset($_GET['PG_Id'])) { $subGenres = $db->fetch_rows("SELECT g.*, (SELECT COUNT(*) FROM GameBase_Games gg WHERE gg.Base = g.Base AND gg.GE_Id = g.GE_Id) AS games FROM GameBase_Genres g WHERE g.PG_Id = ".$db->quote($_GET['PG_Id'])." AND g.Base=".$db->quote($_GET['system'])); foreach($subGenres as $g) { echo "$g[Genre] ($g[games])
"; } } else { ?>
Genres getGenres($_GET['system']); foreach($genres as $g) { echo "» ${g['ParentGenre']} ($g[games])
\n"; } ?>