[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]if([/COLOR][COLOR="#0000BB"]$_GET[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'search_pid'[/COLOR][COLOR="#007700"]] ) { echo[/COLOR][COLOR="#DD0000"]'Find Player: "'[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]$_GET[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'search_pid'[/COLOR][COLOR="#007700"]] .[/COLOR][COLOR="#DD0000"]'"'[/COLOR][COLOR="#007700"]; [/COLOR][COLOR="#0000BB"]$players[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]$stats[/COLOR][COLOR="#007700"]->[/COLOR][COLOR="#0000BB"]findPlayer[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$_GET[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'search_pid'[/COLOR][COLOR="#007700"]],[/COLOR][COLOR="#0000BB"]$_GET[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'searchAt'[/COLOR][COLOR="#007700"]]); if([/COLOR][COLOR="#0000BB"]$players[/COLOR][COLOR="#007700"]) { echo[/COLOR][COLOR="#DD0000"]""[/COLOR][COLOR="#007700"]; foreach([/COLOR][COLOR="#0000BB"]$players[/COLOR][COLOR="#007700"]as[/COLOR][COLOR="#0000BB"]$r[/COLOR][COLOR="#007700"]) echo[/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#0000BB"]$r[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#0000BB"]nick[/COLOR][COLOR="#007700"]][/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#007700"]; echo[/COLOR][COLOR="#DD0000"]""[/COLOR][COLOR="#007700"]; echo[/COLOR][COLOR="#DD0000"]"Not finding your nick? Try to get more specific.The BF2 stat servers only return 100 matches in a set.Also, players with a score of 0 are exlcuded."[/COLOR][COLOR="#007700"];....[/COLOR][/COLOR]
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]function[/COLOR][COLOR="#0000BB"]additionalSearchResults[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$search_result[/COLOR][COLOR="#007700"],[/COLOR][COLOR="#0000BB"]$nick[/COLOR][COLOR="#007700"]) { if([/COLOR][COLOR="#0000BB"]count[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$search_result[/COLOR][COLOR="#007700"]>[/COLOR][COLOR="#0000BB"]0[/COLOR][COLOR="#007700"])) { [/COLOR][COLOR="#FF8000"]// format output[/COLOR][COLOR="#0000BB"]$j[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]0[/COLOR][COLOR="#007700"];[/COLOR][COLOR="#0000BB"]$max[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]count[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$search_result[/COLOR][COLOR="#007700"]); for([/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]0[/COLOR][COLOR="#007700"];[/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]"[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]$search_result[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]][[/COLOR][COLOR="#DD0000"]"nick"[/COLOR][COLOR="#007700"]].[/COLOR][COLOR="#DD0000"]""[/COLOR][COLOR="#007700"];[/COLOR][COLOR="#0000BB"]$j[/COLOR][COLOR="#007700"]++; } } ....[/COLOR][/COLOR]
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]if (![/COLOR][COLOR="#0000BB"]file_exists[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$cachefilename[/COLOR][COLOR="#007700"])) {[/COLOR][COLOR="#0000BB"]$error[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#DD0000"]"BF2Web Down and no cache file exists."[/COLOR][COLOR="#007700"];[/COLOR][COLOR="#0000BB"]$mode[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]error[/COLOR][COLOR="#007700"]; include([/COLOR][COLOR="#DD0000"]"themes/"[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]$theme[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#DD0000"]"/theme.php"[/COLOR][COLOR="#007700"]); exit; }[/COLOR][/COLOR]