summaryrefslogtreecommitdiff
path: root/html/pages/match_info.php
blob: 8d77186e2685f3f0d99c18ee86e4ae2793d94a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
$r_info = small_query("SELECT teamgame, t0, t1, t2, t3, t0score, t1score, t2score, t3score FROM uts_match WHERE id = '$mid'");
if (!$r_info) die("Match not found");
$teamgame = ($r_info['teamgame'] == 'True') ? true : false;

include("pages/match_info_server.php");

$GLOBALS['gid'] = $gid;
$_GLOBALS['gid'] = $gid;
$GLOBALS['gamename'] = $gamename;
$_GLOBALS['gamename'] = $gamename;

include("includes/teamstats.php");
include("pages/match_info_charts.php");
echo "<h1>WOOOt<h1>";

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;

	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 "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 "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');
		}
}

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");
}

?>