query("SELECT name FROM hlstats_Games WHERE code='$game'"); if ($db->num_rows() < 1) error("No such game '$game'."); list($gamename) = $db->fetch_row(); $db->free_result(); $type = valid_request($_GET['type']); $tab = valid_request($_GET['tab']); if ($type == 'ajax' ) { $tabs = explode('|', preg_replace('[^a-z]', '', $tab)); foreach ( $tabs as $tab ) { if ( file_exists(PAGE_PATH . '/awards_' . $tab . '.php') ) { @include(PAGE_PATH . '/awards_' . $tab . '.php'); } } exit; } pageHeader( array($gamename, 'Awards Info'), array($gamename=>"%s?game=$game", 'Awards Info'=>'') ); ?>