From d0102c6fd4b188b0a1c5ffd3bf9a834a64a5c709 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Mon, 8 Jan 2018 16:30:56 +0100 Subject: Match info --- html/pages/match_info.php | 48 +++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) (limited to 'html/pages/match_info.php') diff --git a/html/pages/match_info.php b/html/pages/match_info.php index 31edc2d..8d77186 100755 --- a/html/pages/match_info.php +++ b/html/pages/match_info.php @@ -3,39 +3,46 @@ $r_info = small_query("SELECT teamgame, t0, t1, t2, t3, t0score, t1score, t2scor if (!$r_info) die("Match not found"); $teamgame = ($r_info['teamgame'] == 'True') ? true : false; -echo ' - - - - -
Unreal Tournament Match
-
'; include("pages/match_info_server.php"); -include("pages/match_info_charts.php"); $GLOBALS['gid'] = $gid; $_GLOBALS['gid'] = $gid; $GLOBALS['gamename'] = $gamename; $_GLOBALS['gamename'] = $gamename; -include('includes/teamstats.php'); +include("includes/teamstats.php"); +include("pages/match_info_charts.php"); +echo "

WOOOt

"; + switch($real_gamename) { + case "Assault": case "Assault (insta)": include("pages/match_info_ass.php"); break; - + case "Capture the Flag": case "Capture the Flag (insta)": + case "5v5 iCTF": + case "1v1 iCTF": + case "2v2 iCTF": + case "3v3 iCTF": + case "5v5 teleCTF": + case "5v5 saCTF": + case "5v5 nwCTF": + case "3v3 nwCTF": include("pages/match_info_ctf.php"); teamstats($mid, 'Match Summary'); - break; - + break; + case "Domination": case "Domination (insta)": + case "4v4 iDOM": + case "4v4 sDOM": + case "4v4 nwDOM": teamstats($mid, 'Match Summary', 'dom_cp', 'Dom Pts'); break; - + case "JailBreak": case "JailBreak (insta)": teamstats($mid, 'Match Summary', 'ass_obj', 'Team Releases'); @@ -44,11 +51,13 @@ switch($real_gamename) { case "Bunny Track": include("pages/match_info_bt.php"); break; - + case "Tournament DeathMatch": case "Tournament Team Game": case "Tournament DeathMatch (insta)": case "Tournament Team Game (insta)": + case "FFA iDM": + case "2v2v2v2 iTDM": teamstats($mid, 'Match Summary'); break; @@ -66,21 +75,20 @@ switch($real_gamename) { default: if ($teamgame) { teamstats($mid, 'Match Summary'); - } else { + } else { teamstats($mid, 'Player Summary'); } } - -if ($real_gamename == "Assault" or $real_gamename== "Assault (insta)") { +if ($real_gamename == "Assault" or $real_gamename == "Assault (insta)") { include("pages/match_info_other2.php"); } else if ($real_gamename != "Bunny Track") { include("pages/match_info_other.php"); } -if ($real_gamename == "Capture the Flag" or $real_gamename== "Capture the Flag (insta)") { - include("pages/match_report.php"); +if ($real_gamename == "Capture the Flag" or $real_gamename == "Capture the Flag (insta)") { + include("pages/match_report.php"); } -?> \ No newline at end of file +?> -- cgit From 3a58cb2802c8be14f78015105afe759b1c7ce692 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Tue, 9 Jan 2018 00:43:43 +0100 Subject: Implement design for pages and update includes --- html/pages/match_info.php | 115 +++++++++++++++++++++++----------------------- 1 file changed, 57 insertions(+), 58 deletions(-) (limited to 'html/pages/match_info.php') diff --git a/html/pages/match_info.php b/html/pages/match_info.php index 8d77186..aea8bc2 100755 --- a/html/pages/match_info.php +++ b/html/pages/match_info.php @@ -12,79 +12,78 @@ $_GLOBALS['gamename'] = $gamename; include("includes/teamstats.php"); include("pages/match_info_charts.php"); -echo "

WOOOt

"; switch($real_gamename) { - case "Assault": - case "Assault (insta)": - include("pages/match_info_ass.php"); - break; + case "Assault": + case "Assault (insta)": + include("pages/match_info_ass.php"); + break; - case "Capture the Flag": - case "Capture the Flag (insta)": - case "5v5 iCTF": - case "1v1 iCTF": - case "2v2 iCTF": - case "3v3 iCTF": - case "5v5 teleCTF": - case "5v5 saCTF": - case "5v5 nwCTF": - case "3v3 nwCTF": - include("pages/match_info_ctf.php"); - teamstats($mid, 'Match Summary'); - break; + case "Capture the Flag": + case "Capture the Flag (insta)": + case "5v5 iCTF": + case "1v1 iCTF": + case "2v2 iCTF": + case "3v3 iCTF": + case "5v5 teleCTF": + case "5v5 saCTF": + case "5v5 nwCTF": + case "3v3 nwCTF": + include("pages/match_info_ctf.php"); + teamstats($mid, 'Match Summary'); + break; - case "Domination": - case "Domination (insta)": - case "4v4 iDOM": - case "4v4 sDOM": - case "4v4 nwDOM": - teamstats($mid, 'Match Summary', 'dom_cp', 'Dom Pts'); - break; + case "Domination": + case "Domination (insta)": + case "4v4 iDOM": + case "4v4 sDOM": + case "4v4 nwDOM": + teamstats($mid, 'Match Summary', 'dom_cp', 'Dom Pts'); + break; - case "JailBreak": - case "JailBreak (insta)": - teamstats($mid, 'Match Summary', 'ass_obj', 'Team Releases'); - break; + case "JailBreak": + case "JailBreak (insta)": + teamstats($mid, 'Match Summary', 'ass_obj', 'Team Releases'); + break; - case "Bunny Track": - include("pages/match_info_bt.php"); - break; + case "Bunny Track": + include("pages/match_info_bt.php"); + break; - case "Tournament DeathMatch": - case "Tournament Team Game": - case "Tournament DeathMatch (insta)": - case "Tournament Team Game (insta)": - case "FFA iDM": - case "2v2v2v2 iTDM": - teamstats($mid, 'Match Summary'); - break; + case "Tournament DeathMatch": + case "Tournament Team Game": + case "Tournament DeathMatch (insta)": + case "Tournament Team Game (insta)": + case "FFA iDM": + case "2v2v2v2 iTDM": + teamstats($mid, 'Match Summary'); + break; - case "Extended Last Man Standing": - case "Extended Last Man Standing (insta)": - case "Last Man Standing": - case "Last Man Standing (insta)": - case "Last Man Standing +": - case "Last Man Standing + (insta)": - case "Last Man Standing++": - case "Last Man Standing++ (insta)": - include("pages/match_info_lms.php"); - break; + case "Extended Last Man Standing": + case "Extended Last Man Standing (insta)": + case "Last Man Standing": + case "Last Man Standing (insta)": + case "Last Man Standing +": + case "Last Man Standing + (insta)": + case "Last Man Standing++": + case "Last Man Standing++ (insta)": + include("pages/match_info_lms.php"); + break; - default: - if ($teamgame) { - teamstats($mid, 'Match Summary'); - } else { - teamstats($mid, 'Player Summary'); - } + default: + if ($teamgame) { + teamstats($mid, 'Match Summary'); + } else { + teamstats($mid, 'Player Summary'); + } } if ($real_gamename == "Assault" or $real_gamename == "Assault (insta)") { - include("pages/match_info_other2.php"); + include("pages/match_info_other2.php"); } else if ($real_gamename != "Bunny Track") { - include("pages/match_info_other.php"); + include("pages/match_info_other.php"); } if ($real_gamename == "Capture the Flag" or $real_gamename == "Capture the Flag (insta)") { -- cgit From 5e85454dee78e342c7d6d6860839848653a9262a Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Fri, 12 Jan 2018 01:46:39 +0100 Subject: Remove custom gametypes --- html/pages/match_info.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'html/pages/match_info.php') diff --git a/html/pages/match_info.php b/html/pages/match_info.php index aea8bc2..6956976 100755 --- a/html/pages/match_info.php +++ b/html/pages/match_info.php @@ -14,7 +14,6 @@ include("includes/teamstats.php"); include("pages/match_info_charts.php"); switch($real_gamename) { - case "Assault": case "Assault (insta)": include("pages/match_info_ass.php"); @@ -22,23 +21,12 @@ switch($real_gamename) { case "Capture the Flag": case "Capture the Flag (insta)": - case "5v5 iCTF": - case "1v1 iCTF": - case "2v2 iCTF": - case "3v3 iCTF": - case "5v5 teleCTF": - case "5v5 saCTF": - case "5v5 nwCTF": - case "3v3 nwCTF": include("pages/match_info_ctf.php"); teamstats($mid, 'Match Summary'); - break; + break; case "Domination": case "Domination (insta)": - case "4v4 iDOM": - case "4v4 sDOM": - case "4v4 nwDOM": teamstats($mid, 'Match Summary', 'dom_cp', 'Dom Pts'); break; @@ -55,8 +43,6 @@ switch($real_gamename) { case "Tournament Team Game": case "Tournament DeathMatch (insta)": case "Tournament Team Game (insta)": - case "FFA iDM": - case "2v2v2v2 iTDM": teamstats($mid, 'Match Summary'); break; -- cgit