From 40dfa7d5c0dc8e4cb2c95e403b6b4b2c4bf70644 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Sat, 4 Feb 2017 16:05:45 +0100 Subject: Original UTStats beta 4.2.8 --- html/pages/match_player.php | 151 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100755 html/pages/match_player.php (limited to 'html/pages/match_player.php') diff --git a/html/pages/match_player.php b/html/pages/match_player.php new file mode 100755 index 0000000..4cc73a0 --- /dev/null +++ b/html/pages/match_player.php @@ -0,0 +1,151 @@ +"; + } else { + echo "Sorry, this player has been banned!"; + include("includes/footer.php"); + exit; + } +} + +$playerid = $r_infos['playerid']; +$playername = $r_infos['name']; +$country = $r_infos['country']; +$gamename = $r_infos['gamename']; +$gid = $r_infos['gid']; + +echo' + + + + +
Individual Match Stats for '.FlagImage($country) .' '. htmlentities($playername) .' + '. RankImageOrText($pid, $playername, NULL, $gid, $gamename, true, '(%IT% in %GN% with %RP% ranking points)') .' +
+
'; + +// Get Summary Info +include("pages/match_info_server.php"); + +echo ' +
+ + + + + + + + + + + + + + '; + +$r_gsumm = zero_out(small_query("SELECT gamescore, frags, SUM(frags+suicides) AS kills, deaths, suicides, teamkills, eff, accuracy, ttl, gametime, spree_kill, spree_rampage, spree_dom, spree_uns, spree_god +FROM uts_player WHERE matchid = $mid AND pid = '$pid' +GROUP BY pid")); + + echo' + + + + + + + + + + '; + +echo' +
Game Summary
FragsKillsDeathsSuicidesEfficiencyAccuracyAvg TTLTime
'.$r_gsumm[frags].''.$r_gsumm[kills].''.$r_gsumm[deaths].''.$r_gsumm[suicides].''.$r_gsumm[eff].''.$r_gsumm[accuracy].''.$r_gsumm[ttl].''.GetMinutes($r_gsumm[gametime]).'
+
+ + + + + + + + + + + + + + + + + + + + '; + +$r_gsumm = zero_out(small_query("SELECT spree_double, spree_multi, spree_ultra, spree_monster, spree_kill, spree_rampage, spree_dom, spree_uns, spree_god +FROM uts_player WHERE matchid = $mid AND pid = '$pid' +GROUP BY pid")); + +$sql_firstblood = small_query("SELECT firstblood FROM uts_match WHERE id = $mid"); + +IF ($sql_firstblood[firstblood] == $pid) { + $firstblood = "Yes"; +} else { + $firstblood = "No"; +} + + + echo' + + + + + + + + + + + + +
Special Events
First BloodMultisSprees
DblMultiUltraMonsKillRamDomUnsGod
'.$firstblood.''.$r_gsumm[spree_double].''.$r_gsumm[spree_multi].''.$r_gsumm[spree_ultra].''.$r_gsumm[spree_monster].''.$r_gsumm[spree_kill].''.$r_gsumm[spree_rampage].''.$r_gsumm[spree_dom].''.$r_gsumm[spree_uns].''.$r_gsumm[spree_god].'
+
'; + +include('includes/weaponstats.php'); +weaponstats($mid, $pid); + +$r_pings = small_query("SELECT lowping, avgping, highping FROM uts_player WHERE pid = $pid and matchid = $mid and lowping > 0"); +if ($r_pings and $r_pings['lowping']) { +echo ' +
+ + + + + + + + + + + + + + +
Pings
MinAvgMax
'.ceil($r_pings['lowping']).''.ceil($r_pings['avgping']).''.ceil($r_pings['highping']).'
'; +} + +?> -- cgit