summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-01-10 03:13:17 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2018-01-10 19:31:41 +0100
commitfdd379c949056fb3a2198039e452f6aae600ef35 (patch)
tree864a7509c8010dfa342c47d2b95ecc62ede836de
parentcf540de5d3229941e4104e4d5b6b66681f97f4d3 (diff)
Cleanup images and markup
-rwxr-xr-xhtml/assets/style.css60
-rwxr-xr-xhtml/images/characters/char1.jpgbin4072 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char10.jpgbin4624 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char11.jpgbin4593 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char12.jpgbin5587 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char13.jpgbin3763 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char14.jpgbin3720 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char2.jpgbin3542 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char3.jpgbin3885 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char4.jpgbin3891 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char5.jpgbin4737 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char6.jpgbin4934 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char7.jpgbin4100 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char8.jpgbin4974 -> 0 bytes
-rwxr-xr-xhtml/images/characters/char9.jpgbin4292 -> 0 bytes
-rwxr-xr-xhtml/images/characters/index.htm0
-rw-r--r--html/images/maps/acrony_large.jpgbin206731 -> 313864 bytes
-rw-r--r--html/images/maps/blank_large.jpgbin61272 -> 97957 bytes
-rw-r--r--html/images/maps/bleak_large.jpgbin159171 -> 227538 bytes
-rw-r--r--html/images/maps/brokenlimits_large.jpgbin246705 -> 364081 bytes
-rw-r--r--html/images/maps/cityzen_large.jpgbin168825 -> 262079 bytes
-rw-r--r--html/images/maps/command_large.jpgbin151752 -> 230900 bytes
-rw-r--r--html/images/maps/complex_large.jpgbin161958 -> 237772 bytes
-rw-r--r--html/images/maps/curse_large.jpgbin182799 -> 272379 bytes
-rw-r--r--html/images/maps/deck16][_large.jpgbin122635 -> 111230 bytes
-rw-r--r--html/images/maps/diamondsword_large.jpgbin120917 -> 176153 bytes
-rw-r--r--html/images/maps/duku_large.jpgbin193732 -> 282510 bytes
-rw-r--r--html/images/maps/emptyfront.jpgbin39273 -> 75169 bytes
-rw-r--r--html/images/maps/eternalcave2_large.jpgbin203756 -> 303702 bytes
-rw-r--r--html/images/maps/eternalcave_large.jpgbin203756 -> 303702 bytes
-rw-r--r--html/images/maps/eternalcaves2_large.jpgbin203756 -> 303702 bytes
-rw-r--r--html/images/maps/eternalcaves_large.jpgbin203756 -> 303702 bytes
-rw-r--r--html/images/maps/grudge_large.jpgbin194292 -> 299180 bytes
-rw-r--r--html/images/maps/klondike_large.jpgbin203465 -> 303671 bytes
-rw-r--r--html/images/maps/malevolence_large.jpgbin245430 -> 333767 bytes
-rw-r--r--html/images/maps/mesmerize_large.jpgbin228485 -> 334930 bytes
-rw-r--r--html/images/maps/pryxon_large.jpgbin209891 -> 314823 bytes
-rw-r--r--html/images/maps/pyrolize_large.jpgbin211198 -> 295711 bytes
-rw-r--r--html/images/maps/rune][_large.jpgbin212973 -> 313601 bytes
-rw-r--r--html/images/maps/sprinta_large.jpgbin197057 -> 289521 bytes
-rw-r--r--html/images/maps/stalwartxl_large.jpgbin208249 -> 299006 bytes
-rw-r--r--html/images/maps/viridian-tourney_large.jpgbin157368 -> 242541 bytes
-rw-r--r--html/images/owshare.pngbin439 -> 0 bytes
-rw-r--r--html/images/stats.pngbin737 -> 0 bytes
-rwxr-xr-xhtml/images/utlogo.gifbin8765 -> 0 bytes
-rw-r--r--html/images/victim.pngbin807 -> 2054 bytes
-rwxr-xr-xhtml/pages/help.php14
-rwxr-xr-xhtml/pages/home.php2
-rw-r--r--html/pages/maps.php2
-rw-r--r--html/pages/maps_info.php220
-rw-r--r--html/pages/match_info_killsmatrix.php169
-rwxr-xr-xhtml/pages/match_info_other.php11
-rw-r--r--html/pages/servers.php2
-rw-r--r--html/pages/servers_query.php4
54 files changed, 235 insertions, 249 deletions
diff --git a/html/assets/style.css b/html/assets/style.css
index edec897..837ea0c 100755
--- a/html/assets/style.css
+++ b/html/assets/style.css
@@ -76,6 +76,25 @@ table {
input[type="text"] {
color: #bcbcbc;
}
+input[type="submit"] {
+ position: relative;
+ left: -4px;
+ height: 28px;
+ border: 1px solid #1e1e1e;
+ background-color: #2069a1;
+ color: #fff;
+ cursor: pointer;
+ -webkit-transition: background-color 0.4s;
+ -moz-transition: background-color 0.4s;
+ -o-transition: background-color 0.4s;
+ -ms-transition: background-color 0.4s;
+ transition: background-color 0.4s;
+}
+input[type="submit"]:hover {
+ background-color: #efc100;
+ color: #2d3035;
+ cursor: pointer;
+}
.navbar {
background: rgba(0, 0, 0, 0.7);
@@ -130,12 +149,10 @@ input[type="text"] {
.footer a {
color: #efc100;
text-decoration: none;
- /* padding: 0px; */
margin-left: 25px;
}
.footer a:hover {
color: #fff;
- /* padding: 0px; */
}
.darksearch {
@@ -158,34 +175,6 @@ input[type="text"] {
background: url("../images/search.png") no-repeat 8px 6px;
height: 28px;
}
-
-.owshare {
- padding: 6px 15px 6px 30px;
- margin: 3px;
- background: url("../images/owshare.png") no-repeat 8px 6px;
- height: 28px;
-}
-
-input[type="submit"] {
- position: relative;
- left: -4px;
- height: 28px;
- border: 1px solid #1e1e1e;
- background-color: #2069a1;
- color: #fff;
- cursor: pointer;
- -webkit-transition: background-color 1s;
- -moz-transition: background-color 1s;
- -o-transition: background-color 1s;
- -ms-transition: background-color 1s;
- transition: background-color 1s;
-}
-
-input[type="submit"]:hover {
- background-color: #efc100;
- color: #2d3035;
- cursor: pointer;
-}
.searchform {
border: 1px solid #1e1e1e;
background-color: #3b383b;
@@ -348,11 +337,11 @@ th {
background: rgba(30, 30, 30);
background: rgba(32, 105, 161, 0.8);
border: 1px #fff solid;
- -webkit-transition: background-color 1s;
- -moz-transition: background-color 1s;
- -o-transition: background-color 1s;
- -ms-transition: background-color 1s;
- transition: background-color 1s;
+ -webkit-transition: background-color 0.4s;
+ -moz-transition: background-color 0.4s;
+ -o-transition: background-color 0.4s;
+ -ms-transition: background-color 0.4s;
+ transition: background-color 0.4s;
}
.navCTA:hover {
margin-top: 15px;
@@ -572,7 +561,6 @@ input[type="button"].btn-block {
cursor: pointer;
}
.killsMatrix tbody tr:nth-child(odd) {
- background: rgb(103, 103, 103);
background: rgba(103, 103, 103, 1);
}
.killCell {
diff --git a/html/images/characters/char1.jpg b/html/images/characters/char1.jpg
deleted file mode 100755
index 3e9dc9d..0000000
--- a/html/images/characters/char1.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char10.jpg b/html/images/characters/char10.jpg
deleted file mode 100755
index d42ffd8..0000000
--- a/html/images/characters/char10.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char11.jpg b/html/images/characters/char11.jpg
deleted file mode 100755
index 2fc3adc..0000000
--- a/html/images/characters/char11.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char12.jpg b/html/images/characters/char12.jpg
deleted file mode 100755
index 0288d05..0000000
--- a/html/images/characters/char12.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char13.jpg b/html/images/characters/char13.jpg
deleted file mode 100755
index bfffa5d..0000000
--- a/html/images/characters/char13.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char14.jpg b/html/images/characters/char14.jpg
deleted file mode 100755
index ca92844..0000000
--- a/html/images/characters/char14.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char2.jpg b/html/images/characters/char2.jpg
deleted file mode 100755
index 8e9ef8c..0000000
--- a/html/images/characters/char2.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char3.jpg b/html/images/characters/char3.jpg
deleted file mode 100755
index eb1c174..0000000
--- a/html/images/characters/char3.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char4.jpg b/html/images/characters/char4.jpg
deleted file mode 100755
index f7edb22..0000000
--- a/html/images/characters/char4.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char5.jpg b/html/images/characters/char5.jpg
deleted file mode 100755
index 137e981..0000000
--- a/html/images/characters/char5.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char6.jpg b/html/images/characters/char6.jpg
deleted file mode 100755
index e2a8b31..0000000
--- a/html/images/characters/char6.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char7.jpg b/html/images/characters/char7.jpg
deleted file mode 100755
index a55d8c0..0000000
--- a/html/images/characters/char7.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char8.jpg b/html/images/characters/char8.jpg
deleted file mode 100755
index 8bb9040..0000000
--- a/html/images/characters/char8.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/char9.jpg b/html/images/characters/char9.jpg
deleted file mode 100755
index 581d022..0000000
--- a/html/images/characters/char9.jpg
+++ /dev/null
Binary files differ
diff --git a/html/images/characters/index.htm b/html/images/characters/index.htm
deleted file mode 100755
index e69de29..0000000
--- a/html/images/characters/index.htm
+++ /dev/null
diff --git a/html/images/maps/acrony_large.jpg b/html/images/maps/acrony_large.jpg
index fa5a560..ed50906 100644
--- a/html/images/maps/acrony_large.jpg
+++ b/html/images/maps/acrony_large.jpg
Binary files differ
diff --git a/html/images/maps/blank_large.jpg b/html/images/maps/blank_large.jpg
index f730c62..de22beb 100644
--- a/html/images/maps/blank_large.jpg
+++ b/html/images/maps/blank_large.jpg
Binary files differ
diff --git a/html/images/maps/bleak_large.jpg b/html/images/maps/bleak_large.jpg
index 5d3f321..273cf4a 100644
--- a/html/images/maps/bleak_large.jpg
+++ b/html/images/maps/bleak_large.jpg
Binary files differ
diff --git a/html/images/maps/brokenlimits_large.jpg b/html/images/maps/brokenlimits_large.jpg
index 1f95712..37ae7f6 100644
--- a/html/images/maps/brokenlimits_large.jpg
+++ b/html/images/maps/brokenlimits_large.jpg
Binary files differ
diff --git a/html/images/maps/cityzen_large.jpg b/html/images/maps/cityzen_large.jpg
index 4183076..b1ba750 100644
--- a/html/images/maps/cityzen_large.jpg
+++ b/html/images/maps/cityzen_large.jpg
Binary files differ
diff --git a/html/images/maps/command_large.jpg b/html/images/maps/command_large.jpg
index b7bede9..8af3f69 100644
--- a/html/images/maps/command_large.jpg
+++ b/html/images/maps/command_large.jpg
Binary files differ
diff --git a/html/images/maps/complex_large.jpg b/html/images/maps/complex_large.jpg
index e332522..7a75bfa 100644
--- a/html/images/maps/complex_large.jpg
+++ b/html/images/maps/complex_large.jpg
Binary files differ
diff --git a/html/images/maps/curse_large.jpg b/html/images/maps/curse_large.jpg
index f0e7668..4f1f568 100644
--- a/html/images/maps/curse_large.jpg
+++ b/html/images/maps/curse_large.jpg
Binary files differ
diff --git a/html/images/maps/deck16][_large.jpg b/html/images/maps/deck16][_large.jpg
index c8123f9..1967b84 100644
--- a/html/images/maps/deck16][_large.jpg
+++ b/html/images/maps/deck16][_large.jpg
Binary files differ
diff --git a/html/images/maps/diamondsword_large.jpg b/html/images/maps/diamondsword_large.jpg
index eb2924c..b2a7966 100644
--- a/html/images/maps/diamondsword_large.jpg
+++ b/html/images/maps/diamondsword_large.jpg
Binary files differ
diff --git a/html/images/maps/duku_large.jpg b/html/images/maps/duku_large.jpg
index d2efd32..4c5012d 100644
--- a/html/images/maps/duku_large.jpg
+++ b/html/images/maps/duku_large.jpg
Binary files differ
diff --git a/html/images/maps/emptyfront.jpg b/html/images/maps/emptyfront.jpg
index 5adfc10..d37d517 100644
--- a/html/images/maps/emptyfront.jpg
+++ b/html/images/maps/emptyfront.jpg
Binary files differ
diff --git a/html/images/maps/eternalcave2_large.jpg b/html/images/maps/eternalcave2_large.jpg
index bdb75d4..4b27062 100644
--- a/html/images/maps/eternalcave2_large.jpg
+++ b/html/images/maps/eternalcave2_large.jpg
Binary files differ
diff --git a/html/images/maps/eternalcave_large.jpg b/html/images/maps/eternalcave_large.jpg
index bdb75d4..4b27062 100644
--- a/html/images/maps/eternalcave_large.jpg
+++ b/html/images/maps/eternalcave_large.jpg
Binary files differ
diff --git a/html/images/maps/eternalcaves2_large.jpg b/html/images/maps/eternalcaves2_large.jpg
index bdb75d4..4b27062 100644
--- a/html/images/maps/eternalcaves2_large.jpg
+++ b/html/images/maps/eternalcaves2_large.jpg
Binary files differ
diff --git a/html/images/maps/eternalcaves_large.jpg b/html/images/maps/eternalcaves_large.jpg
index bdb75d4..4b27062 100644
--- a/html/images/maps/eternalcaves_large.jpg
+++ b/html/images/maps/eternalcaves_large.jpg
Binary files differ
diff --git a/html/images/maps/grudge_large.jpg b/html/images/maps/grudge_large.jpg
index 247cc3c..5119630 100644
--- a/html/images/maps/grudge_large.jpg
+++ b/html/images/maps/grudge_large.jpg
Binary files differ
diff --git a/html/images/maps/klondike_large.jpg b/html/images/maps/klondike_large.jpg
index dadbe9a..e4f60b7 100644
--- a/html/images/maps/klondike_large.jpg
+++ b/html/images/maps/klondike_large.jpg
Binary files differ
diff --git a/html/images/maps/malevolence_large.jpg b/html/images/maps/malevolence_large.jpg
index d4db883..773f833 100644
--- a/html/images/maps/malevolence_large.jpg
+++ b/html/images/maps/malevolence_large.jpg
Binary files differ
diff --git a/html/images/maps/mesmerize_large.jpg b/html/images/maps/mesmerize_large.jpg
index 02b706c..a0e60d1 100644
--- a/html/images/maps/mesmerize_large.jpg
+++ b/html/images/maps/mesmerize_large.jpg
Binary files differ
diff --git a/html/images/maps/pryxon_large.jpg b/html/images/maps/pryxon_large.jpg
index afed9a4..e0b0d8f 100644
--- a/html/images/maps/pryxon_large.jpg
+++ b/html/images/maps/pryxon_large.jpg
Binary files differ
diff --git a/html/images/maps/pyrolize_large.jpg b/html/images/maps/pyrolize_large.jpg
index 98b4009..4071cb9 100644
--- a/html/images/maps/pyrolize_large.jpg
+++ b/html/images/maps/pyrolize_large.jpg
Binary files differ
diff --git a/html/images/maps/rune][_large.jpg b/html/images/maps/rune][_large.jpg
index 49888c6..86f7770 100644
--- a/html/images/maps/rune][_large.jpg
+++ b/html/images/maps/rune][_large.jpg
Binary files differ
diff --git a/html/images/maps/sprinta_large.jpg b/html/images/maps/sprinta_large.jpg
index 090fb41..a91144a 100644
--- a/html/images/maps/sprinta_large.jpg
+++ b/html/images/maps/sprinta_large.jpg
Binary files differ
diff --git a/html/images/maps/stalwartxl_large.jpg b/html/images/maps/stalwartxl_large.jpg
index 1a795a6..89a04c1 100644
--- a/html/images/maps/stalwartxl_large.jpg
+++ b/html/images/maps/stalwartxl_large.jpg
Binary files differ
diff --git a/html/images/maps/viridian-tourney_large.jpg b/html/images/maps/viridian-tourney_large.jpg
index 92554d3..e868673 100644
--- a/html/images/maps/viridian-tourney_large.jpg
+++ b/html/images/maps/viridian-tourney_large.jpg
Binary files differ
diff --git a/html/images/owshare.png b/html/images/owshare.png
deleted file mode 100644
index bba3411..0000000
--- a/html/images/owshare.png
+++ /dev/null
Binary files differ
diff --git a/html/images/stats.png b/html/images/stats.png
deleted file mode 100644
index ffd44a0..0000000
--- a/html/images/stats.png
+++ /dev/null
Binary files differ
diff --git a/html/images/utlogo.gif b/html/images/utlogo.gif
deleted file mode 100755
index 4cc5c6e..0000000
--- a/html/images/utlogo.gif
+++ /dev/null
Binary files differ
diff --git a/html/images/victim.png b/html/images/victim.png
index 0d94338..920354e 100644
--- a/html/images/victim.png
+++ b/html/images/victim.png
Binary files differ
diff --git a/html/pages/help.php b/html/pages/help.php
index c156eae..51186c6 100755
--- a/html/pages/help.php
+++ b/html/pages/help.php
@@ -7,11 +7,17 @@
<td class="credits" align="left">
<blockquote>
<p>
- For help and documentation please visit
+ For installation instrcutions and documentation please visit
<a href="https://github.com/sn3p/utstats" target="_blank">https://github.com/sn3p/utstats</a>.
- <br>
- Please report issues and feature requests in the
- <a href="https://github.com/sn3p/utstats/issues" target="_blank">issue tracker</a>.
+ </p>
+ <p>
+ Still havind problems? Check out the
+ <a href="https://github.com/sn3p/utstats/wiki/Troubleshooting" target="_blank">Troubleshooting</a>
+ page.
+ </p>
+ <p>
+ UTStats is getting pretty old so errors or warnings you'll encounter are most likely caused by deprecated or functions that are not supported any more.
+ Please report issues and feature requests in the <a href="https://github.com/sn3p/utstats/issues" target="_blank">issue tracker</a>.
</p>
</blockquote>
</td>
diff --git a/html/pages/home.php b/html/pages/home.php
index d2d90cf..a61d7f9 100755
--- a/html/pages/home.php
+++ b/html/pages/home.php
@@ -1,7 +1,5 @@
<?php
-include_once("analytics.php");
-
// Get last map, time, scores
$qlastMaps = small_query("SELECT id, mapfile, time, t0score, t1score, t2score, t3score FROM uts_match WHERE time = (SELECT MAX(time) FROM uts_match)");
$lastMapId = $qlastMaps['id'];
diff --git a/html/pages/maps.php b/html/pages/maps.php
index 69c8785..1959085 100644
--- a/html/pages/maps.php
+++ b/html/pages/maps.php
@@ -83,7 +83,7 @@ echo'
<div class="pages">Page ['.$tfpage.'/'.$tlpage.'] Selection: '.$fpageurl.' / '.$ppageurl.' / '.$npageurl.' / '.$lpageurl.'</div>
<table class="zebra box" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
- <th class="heading" colspan="5" align="center">Maps List</th>
+ <th class="heading" colspan="5" align="center">Unreal Tournament Maps List</th>
</tr>
<tr>
<th class="smheading" align="center" width="100%" colspan="5">
diff --git a/html/pages/maps_info.php b/html/pages/maps_info.php
index a7c355e..fc0a9e3 100644
--- a/html/pages/maps_info.php
+++ b/html/pages/maps_info.php
@@ -19,19 +19,24 @@ if($map_matches[gametime]<= 0) {
// Map pic code
$mappic = getMapImageName($map);
- echo'
- <table class = "zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
- <tbody><tr>
- <th class="heading" align="center" colspan="4">Statistics for '.htmlentities($map).'</th>
- </tr><tr>
- <th colspan="4" class="mapheader"><img border="0" alt="'.$mapname.'" class="tooltip" title="'.$mapname.'" src="'.$mappic.'" width=698></th></tr>
+ echo '
+ <table class="zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
+ <tbody>
+ <tr>
+ <th class="heading" align="center" colspan="4">Statistics for '.htmlentities($map).'</th>
+ </tr>
+ <tr>
+ <th colspan="4" class="mapheader">
+ <img border="0" alt="'.$map.'" src="'.$mappic.'" width=698>
+ </th>
+ </tr>
<tr>
- <th align="center">Matches</th>
- <td align="center">'.$map_matches[matchcount].'</td>
+ <th align="center">Matches</th>
+ <td align="center">'.$map_matches[matchcount].'</td>
</tr>
<tr>
- <th align="center">Total Time</th>
- <td align="center">'.$map_tottime.' minutes</td>
+ <th align="center">Total Time</th>
+ <td align="center">'.$map_tottime.' minutes</td>
</tr>';
// Show some gametype specific stuff
if ((strtolower(substr($map, 0, 7)) == "ctf-bt-") or (strtolower(substr($map, 0, 3)) == "bt-")) {
@@ -40,25 +45,25 @@ if($map_matches[gametime]<= 0) {
if (!empty($record['time'])) {
echo '
<tr>
- <th align="center">Fastest Capture</th>
- <td align="center"><a href="?p=pinfo&amp;pid='.$record[id].'">'.FormatPlayerName($record['country'], $record['id'], $record['name']).'</a><br>' . btcaptime($record['time']) . ' minutes<BR>'.gmdate('d-m-Y h:i a', $record['date']).'</td>
+ <th align="center">Fastest Capture</th>
+ <td align="center"><a href="?p=pinfo&amp;pid='.$record[id].'">'.FormatPlayerName($record['country'], $record['id'], $record['name']).'</a><br>' . btcaptime($record['time']) . ' minutes<BR>'.gmdate('d-m-Y h:i a', $record['date']).'</td>
</tr>';
}
else {
echo '
<tr>
- <th align="center">Fastest Capture</th>
- <td align="center">No record set!</td>
+ <th align="center">Fastest Capture</th>
+ <td align="center">No record set!</td>
</tr>';
}
echo '
<tr>
- <th align="center">Total Flags Captured</th>
- <td align="center">'.$map_matches[gamescore].'</td>
+ <th align="center">Total Flags Captured</th>
+ <td align="center">'.$map_matches[gamescore].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
else if (strtolower(substr($map, 0, 4)) == "ctf-") {
@@ -66,28 +71,28 @@ if($map_matches[gametime]<= 0) {
$totals = small_query("SELECT SUM(p.flag_taken) as flag_taken, SUM(p.flag_return) AS flag_return, SUM(p.flag_cover) AS flag_cover FROM uts_player AS p, uts_match AS m WHERE m.id = p.matchid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap')");
echo '
<tr>
- <th align="center">Total Flags Captured</th>
- <td align="center">'.$map_matches[gamescore].'</td>
+ <th align="center">Total Flags Captured</th>
+ <td align="center">'.$map_matches[gamescore].'</td>
</tr>
<tr>
- <th align="center">Total Flags Taken</th>
- <td align="center">'.$totals['flag_taken'].'</td>
+ <th align="center">Total Flags Taken</th>
+ <td align="center">'.$totals['flag_taken'].'</td>
</tr>
<tr>
- <th align="center">Total Covers</th>
- <td align="center">'.$totals['flag_cover'].'</td>
+ <th align="center">Total Covers</th>
+ <td align="center">'.$totals['flag_cover'].'</td>
</tr>
<tr>
- <th align="center">Total Flags Returned</th>
- <td align="center">'.$totals['flag_return'].'</td>
+ <th align="center">Total Flags Returned</th>
+ <td align="center">'.$totals['flag_return'].'</td>
</tr>
<tr>
- <th align="center">Total Kills</th>
- <td align="center">'.$map_matches[kills].'</td>
+ <th align="center">Total Kills</th>
+ <td align="center">'.$map_matches[kills].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
else if (strtolower(substr($map, 0, 3)) == "as-") {
@@ -95,16 +100,16 @@ if($map_matches[gametime]<= 0) {
$totals = small_query("SELECT SUM(p.ass_obj) as ass_obj FROM uts_player AS p, uts_match AS m WHERE m.id = p.matchid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap')");
echo '
<tr>
- <th align="center">Total Objectives Achieved</th>
- <td align="center">'.$totals[ass_obj].'</td>
+ <th align="center">Total Objectives Achieved</th>
+ <td align="center">'.$totals[ass_obj].'</td>
</tr>
<tr>
- <th align="center">Total Kills</th>
- <td align="center">'.$map_matches[kills].'</td>
+ <th align="center">Total Kills</th>
+ <td align="center">'.$map_matches[kills].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
else if (strtolower(substr($map, 0, 3)) == "jb-") {
@@ -112,16 +117,16 @@ if($map_matches[gametime]<= 0) {
$totals = small_query("SELECT SUM(p.ass_obj) as ass_obj FROM uts_player AS p, uts_match AS m WHERE m.id = p.matchid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap')");
echo '
<tr>
- <th align="center">Team Releases</th>
- <td align="center">'.$totals[ass_obj].'</td>
+ <th align="center">Team Releases</th>
+ <td align="center">'.$totals[ass_obj].'</td>
</tr>
<tr>
- <th align="center">Total Kills</th>
- <td align="center">'.$map_matches[kills].'</td>
+ <th align="center">Total Kills</th>
+ <td align="center">'.$map_matches[kills].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
else if (strtolower(substr($map, 0, 4)) == "dom-") {
@@ -129,118 +134,119 @@ if($map_matches[gametime]<= 0) {
$totals = small_query("SELECT SUM(p.dom_cp) as dom_cp FROM uts_player AS p, uts_match AS m WHERE m.id = p.matchid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap')");
echo '
<tr>
- <th align="center">Total Control Points Captured</th>
- <td align="center">'.$totals['dom_cp'].'</td>
+ <th align="center">Total Control Points Captured</th>
+ <td align="center">'.$totals['dom_cp'].'</td>
</tr>
<tr>
- <th align="center">Total Kills</th>
- <td align="center">'.$map_matches[kills].'</td>
+ <th align="center">Total Kills</th>
+ <td align="center">'.$map_matches[kills].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
else {
echo '
<tr>
- <th align="center">Total Score</th>
- <td align="center">'.$map_matches[gamescore].'</td>
+ <th align="center">Total Score</th>
+ <td align="center">'.$map_matches[gamescore].'</td>
</tr>
<tr>
- <th align="center">Total Kills</th>
- <td align="center">'.$map_matches[kills].'</td>
+ <th align="center">Total Kills</th>
+ <td align="center">'.$map_matches[kills].'</td>
</tr>
<tr>
- <th align="center">Total Teamkills</th>
- <td align="center">'.$map_matches[teamkills].'</td>
+ <th align="center">Total Teamkills</th>
+ <td align="center">'.$map_matches[teamkills].'</td>
</tr>
<tr>
- <th align="center">Total Suicides</th>
- <td align="center">'.$map_matches[suicides].'</td>
+ <th align="center">Total Suicides</th>
+ <td align="center">'.$map_matches[suicides].'</td>
</tr>';
}
echo '
<tr>
- <th align="center">Last Match</th>
- <td align="center">'.$map_lastmatch.'</td>
+ <th align="center">Last Match</th>
+ <td align="center">'.$map_lastmatch.'</td>
</tr>
</tbody></table>
<br>';
-
// Show a list of recent matches
$mcount = small_count("SELECT id FROM uts_match WHERE mapfile = '$realmap' OR mapfile = '$bugmap' GROUP BY id");
$ecount = $mcount/25;
$ecount2 = number_format($ecount, 0, '.', '');
- IF($ecount > $ecount2) {
+ if ($ecount > $ecount2) {
$ecount2 = $ecount2+1;
}
$fpage = 0;
- IF($ecount < 1) { $lpage = 0; }
+ if ($ecount < 1) { $lpage = 0; }
else { $lpage = $ecount2-1; }
$cpage = preg_replace('/\D/', '', $_GET["page"]);
$qpage = $cpage*25;
- IF ($cpage == "") { $cpage = "0"; }
+ if ($cpage == "") { $cpage = "0"; }
$tfpage = $cpage+1;
$tlpage = $lpage+1;
$ppage = $cpage-1;
$ppageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;page=$ppage\">[Previous]</a>";
- IF ($ppage < "0") { $ppageurl = "[Previous]"; }
+ if ($ppage < "0") { $ppageurl = "[Previous]"; }
$npage = $cpage+1;
$npageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;page=$npage\">[Next]</a>";
- IF ($npage >= "$ecount") { $npageurl = "[Next]"; }
+ if ($npage >= "$ecount") { $npageurl = "[Next]"; }
$fpageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;page=$fpage\">[First]</a>";
- IF ($cpage == "0") { $fpageurl = "[First]"; }
+ if ($cpage == "0") { $fpageurl = "[First]"; }
$lpageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;page=$lpage\">[Last]</a>";
- IF ($cpage == "$lpage") { $lpageurl = "[Last]"; }
+ if ($cpage == "$lpage") { $lpageurl = "[Last]"; }
// list recent matches
- echo'
+ echo '
<div class="pages">Page ['.$tfpage.'/'.$tlpage.'] Selection: '.$fpageurl.' / '.$ppageurl.' / '.$npageurl.' / '.$lpageurl.'</div>
<table class="zebra box" border="0" cellpadding="0" cellspacing="0" width=700>
- <tbody><tr>
- <th class="heading" colspan="5" align="center">Recent Matches</th>
+ <tbody>
+ <tr>
+ <th class="heading" colspan="5" align="center">Recent Matches</th>
</tr>
<tr>
- <th class="smheading" align="center" width="250">Date</th>
- <th class="smheading" align="center" width="100">Match Type</th>
- <th class="smheading" align="center">Player Count</th>
- <th class="smheading" align="center" width="100">Time</th>
+ <th class="smheading" align="center" width="250">Date</th>
+ <th class="smheading" align="center" width="100">Match Type</th>
+ <th class="smheading" align="center">Player Count</th>
+ <th class="smheading" align="center" width="100">Time</th>
</tr>';
$sql_maps = "SELECT m.id, m.time, g.name AS gamename, m.gametime
- FROM uts_match AS m, uts_games AS g WHERE (m.mapfile = '$realmap' OR m.mapfile = '$bugmap') AND m.gid = g.id ORDER BY time DESC LIMIT $qpage,25";
+ FROM uts_match AS m, uts_games AS g WHERE (m.mapfile = '$realmap' OR m.mapfile = '$bugmap') AND m.gid = g.id ORDER BY time DESC LIMIT $qpage,25";
$q_maps = mysql_query($sql_maps) or die(mysql_error());
- while ($r_maps = mysql_fetch_array($q_maps)) {
- $r_mapfile = un_ut($r_maps[mapfile]);
- $r_matchtime = mdate($r_maps[time]);
- $r_gametime = GetMinutes($r_maps[gametime]);
+ while ($r_maps = mysql_fetch_array($q_maps)) {
+ $r_mapfile = un_ut($r_maps[mapfile]);
+ $r_matchtime = mdate($r_maps[time]);
+ $r_gametime = GetMinutes($r_maps[gametime]);
- $map_pcount = small_count("SELECT id FROM uts_player WHERE matchid = $r_maps[id]");
+ $map_pcount = small_count("SELECT id FROM uts_player WHERE matchid = $r_maps[id]");
- echo'
- <tr class="clickableRow" href="./?p=match&amp;mid='.$r_maps[id].'">
+ echo '
+ <tr class="clickableRow" href="./?p=match&amp;mid='.$r_maps[id].'">
<td align="center"><a href="./?p=match&amp;mid='.$r_maps[id].'">'.$r_matchtime.'</a></td>
<td align="center">'.$r_maps[gamename].'</td>
<td align="center">'.$map_pcount.'</td>
<td align="center">'.$r_gametime.'</td>
- </tr>';
+ </tr>';
}
- echo'
- </tbody></table>
+ echo '
+ </tbody>
+ </table>
<div class="pages">Page ['.$tfpage.'/'.$tlpage.'] Selection: '.$fpageurl.' / '.$ppageurl.' / '.$npageurl.' / '.$lpageurl.'</div>';
// Do graph stuff
@@ -254,71 +260,73 @@ if($map_matches[gametime]<= 0) {
$ecount = $mcount/25;
$ecount2 = number_format($ecount, 0, '.', '');
- IF($ecount > $ecount2) {
+ if ($ecount > $ecount2) {
$ecount2 = $ecount2+1;
}
$fpage = 0;
- IF($ecount < 1) { $lpage = 0; }
+ if ($ecount < 1) { $lpage = 0; }
else { $lpage = $ecount2-1; }
$cpage = preg_replace('/\D/', '', $_GET["rpage"]);
$qpage = $cpage*25;
- IF ($cpage == "") { $cpage = "0"; }
+ if ($cpage == "") { $cpage = "0"; }
$tfpage = $cpage+1;
$tlpage = $lpage+1;
$ppage = $cpage-1;
$ppageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;rpage=$ppage\">[Previous]</a>";
- IF ($ppage < "0") { $ppageurl = "[Previous]"; }
+ if ($ppage < "0") { $ppageurl = "[Previous]"; }
$npage = $cpage+1;
$npageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;rpage=$npage\">[Next]</a>";
- IF ($npage >= "$ecount") { $npageurl = "[Next]"; }
+ if ($npage >= "$ecount") { $npageurl = "[Next]"; }
$fpageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;rpage=$fpage\">[First]</a>";
- IF ($cpage == "0") { $fpageurl = "[First]"; }
+ if ($cpage == "0") { $fpageurl = "[First]"; }
$lpageurl = "<a class=\"pages\" href=\"./?p=minfo&amp;map=".htmlentities($map)."&amp;rpage=$lpage\">[Last]</a>";
- IF ($cpage == "$lpage") { $lpageurl = "[Last]"; }
+ if ($cpage == "$lpage") { $lpageurl = "[Last]"; }
- $sql_btrecords = "SELECT pi.id, pi.name AS name, pi.country, e.col3 AS time, e.col4 AS date FROM uts_events AS e, uts_pinfo AS pi, uts_player AS p, uts_match AS m WHERE m.id = e.matchid AND m.id = p.matchid AND p.playerid = e.playerid AND pi.id = p.pid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap') AND e.col1 = 'btcap' GROUP BY pi.id ORDER BY (0 + e.col3) ASC, e.col4 ASC LIMIT $qpage,25";
+ $sql_btrecords = "SELECT pi.id, pi.name AS name, pi.country, e.col3 AS time, e.col4 AS date FROM uts_events AS e, uts_pinfo AS pi, uts_player AS p, uts_match AS m WHERE m.id = e.matchid AND m.id = p.matchid AND p.playerid = e.playerid AND pi.id = p.pid AND (m.mapfile = '$realmap' OR m.mapfile = '$bugmap') AND e.col1 = 'btcap' GROUP BY pi.id ORDER BY (0 + e.col3) ASC, e.col4 ASC LIMIT $qpage,25";
$q_btrecords = mysql_query($sql_btrecords) or die (mysql_error());
+
if (mysql_num_rows($q_btrecords) > 0) {
echo '
<div class="pages">Page ['.$tfpage.'/'.$tlpage.'] Selection: '.$fpageurl.' / '.$ppageurl.' / '.$npageurl.' / '.$lpageurl.'</div>
- <table class = "zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
- <tbody>
+ <table class="zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
+ <tbody>
<tr>
- <th class="heading" colspan="4" align="center">Fastest captures</th>
+ <th class="heading" colspan="4" align="center">Fastest captures</th>
</tr>
<tr>
- <th class="smheading" align="center" width="40">N&deg;</th>
- <th class="smheading" align="center" width="200">Name</th>
- <th class="smheading" align="center" width="60">Time</th>
- <th class="smheading" align="center" width="180">Date</th>
- </tr>';
+ <th class="smheading" align="center" width="40">N&deg;</th>
+ <th class="smheading" align="center" width="200">Name</th>
+ <th class="smheading" align="center" width="60">Time</th>
+ <th class="smheading" align="center" width="180">Date</th>
+ </tr>';
+
$i = $qpage;
$lasttime = -1;
+
while ($r_btrecords = mysql_fetch_array($q_btrecords)) {
$i++;
$class = ($i%2) ? 'grey' : 'grey2';
echo '
<tr><td class = "'.$class.'" align = "right">'.($lasttime == $r_btrecords['time'] ? '' : $i).'&nbsp;</td>
- <td class = "'.$class.'" align = "center"><a href="?p=pinfo&amp;pid='.$r_btrecords[id].'">', FormatPlayerName($r_btrecords['country'], $r_btrecords['id'], $r_btrecords['name']), '</a></td>
- <td class = "'.$class.'" align = "center">', btcaptime($r_btrecords['time']), '</td>
- <td class = "'.$class.'" align = "center">', gmdate('d-m-Y h:i a', $r_btrecords['date']), '</td></tr>';
+ <td class="'.$class.'" align="center"><a href="?p=pinfo&amp;pid='.$r_btrecords[id].'">', FormatPlayerName($r_btrecords['country'], $r_btrecords['id'], $r_btrecords['name']), '</a></td>
+ <td class="'.$class.'" align="center">', btcaptime($r_btrecords['time']), '</td>
+ <td class="'.$class.'" align="center">', gmdate('d-m-Y h:i a', $r_btrecords['date']), '</td></tr>';
$lasttime = $r_btrecords['time'];
}
- echo '
- </tbody>
+
+ echo '</tbody>
</table>
<div class="pages">Page ['.$tfpage.'/'.$tlpage.'] Selection: '.$fpageurl.' / '.$ppageurl.' / '.$npageurl.' / '.$lpageurl.'</div><br>';
}
}
-
}
?>
diff --git a/html/pages/match_info_killsmatrix.php b/html/pages/match_info_killsmatrix.php
index 3b425e5..0ace5ac 100644
--- a/html/pages/match_info_killsmatrix.php
+++ b/html/pages/match_info_killsmatrix.php
@@ -1,23 +1,23 @@
<?php
function PrintVertical($text) {
- $len = strlen($text);
- $ret = '';
- for ($i = 0; $i < $len; $i++) {
- $ret .= substr($text, $i, 1) .'<br>';
- }
- return($ret);
+ $len = strlen($text);
+ $ret = '';
+ for ($i = 0; $i < $len; $i++) {
+ $ret .= substr($text, $i, 1) .'<br>';
+ }
+ return($ret);
}
// Retrieve the killmatrix
-$sql_km = " SELECT killer,
- victim,
- kills
- FROM uts_killsmatrix
- WHERE matchid = $mid;";
-
+$sql_km = " SELECT killer,
+ victim,
+ kills
+ FROM uts_killsmatrix
+ WHERE matchid = $mid;";
+
$q_km = mysql_query($sql_km) or die(mysql_error());
while ($r_km = mysql_fetch_array($q_km)) {
- $km[intval($r_km['killer'])][intval($r_km['victim'])] = $r_km['kills'];
+ $km[intval($r_km['killer'])][intval($r_km['victim'])] = $r_km['kills'];
}
// No matrix: bye
@@ -29,27 +29,27 @@ $teamgame = $qm_teamgame['teamgame'];
$teamgame = ($teamgame == 'False') ? false : true;
// Get the players of this match
-$sql_players = " SELECT p.pid,
- p.playerid,
- pi.name,
- pi.country,
- pi.banned,
- p.team,
- p.suicides
- FROM uts_player p,
- uts_pinfo pi
- WHERE (p.pid = pi.id)
- AND matchid = '$mid'
- ORDER BY team ASC,
- gamescore DESC;";
+$sql_players = " SELECT p.pid,
+ p.playerid,
+ pi.name,
+ pi.country,
+ pi.banned,
+ p.team,
+ p.suicides
+ FROM uts_player p,
+ uts_pinfo pi
+ WHERE (p.pid = pi.id)
+ AND matchid = '$mid'
+ ORDER BY team ASC,
+ gamescore DESC;";
$q_players = mysql_query($sql_players) or die(mysql_error());
while ($r_players = mysql_fetch_array($q_players)) {
- $players[intval($r_players['playerid'])] = array( 'pid' => $r_players['pid'],
- 'name' => $r_players['name'],
- 'country' => $r_players['country'],
- 'banned' => $r_players['banned'],
- 'suicides' => intval($r_players['suicides']),
- 'team' => intval($r_players['team']));
+ $players[intval($r_players['playerid'])] = array( 'pid' => $r_players['pid'],
+ 'name' => $r_players['name'],
+ 'country' => $r_players['country'],
+ 'banned' => $r_players['banned'],
+ 'suicides' => intval($r_players['suicides']),
+ 'team' => intval($r_players['team']));
}
@@ -58,7 +58,7 @@ $extra = $teamgame ? 3 : 2;
echo '
<table class="zebra" border="0" cellpadding="0" cellspacing="0" width="700">
-
+
<tbody><tr>
<th class="heading" colspan="'. (count($players) + $extra) .'" align="center">Kills Match Up</th>
</tr>
@@ -69,69 +69,66 @@ echo '
// Victims
foreach($players as $player) {
-
-
-
- echo '<th align="center" class="tooltip" title="'.($player['name']).'" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($player['pid']). '">
- <div class="vertical">';
- if (strlen($player['name']) > 10) {
-echo substr($player['name'],0,10);
-} else {
-echo $player['name'] ;
-};
-'</div></th>';
-}
+ echo '<th align="center" class="tooltip" title="'.($player['name']).'" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($player['pid']). '">
+ <div class="vertical">';
+ if (strlen($player['name']) > 10) {
+ echo substr($player['name'],0,10);
+ } else {
+ echo $player['name'] ;
+ };
+ '</div></th>';
+}
echo '</tr><tr>';
// Team colors victims
if ($teamgame) {
- foreach($players as $player) {
- switch($player['team']) {
- case 0: $teamcolor = 'redteamb'; break;
- case 1: $teamcolor = 'blueteamb'; break;
- case 2: $teamcolor = 'greenteamb'; break;
- case 3: $teamcolor = 'goldteamb'; break;
- }
- echo '<td class="'. $teamcolor .'" align="center" width="25" height="25">
- <img src="images/victim.png" height="15"></td>';
- }
- echo '</tr>';
+ foreach($players as $player) {
+ switch($player['team']) {
+ case 0: $teamcolor = 'redteamb'; break;
+ case 1: $teamcolor = 'blueteamb'; break;
+ case 2: $teamcolor = 'greenteamb'; break;
+ case 3: $teamcolor = 'goldteamb'; break;
+ }
+ echo '<td class="'. $teamcolor .'" align="center" width="25" height="25">
+ <img src="images/victim.png" height="15"></td>';
+ }
+ echo '</tr>';
}
// Killer rows
$first = true;
$i = 0;
foreach($players as $kid => $killer) {
- if ($killer['banned'] == 'Y') continue;
- $i++;
- echo '<tr class="clickableRow" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($killer['pid']). '">';
- if ($first) echo'<td class="smheading" rowspan="'. count($players) .'" align="center" width="20"> <img src="images/xhair.png"> </td>';
- echo '<td nowrap align="left" style="width: 220px;">';
- echo '<a href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($killer['pid']). '">'.
- FormatPlayerName($killer['country'], $killer['pid'], $killer['name'], $gid, $gamename) .'&nbsp;</a></td>';
- if ($teamgame) {
- switch($killer['team']) {
- case 0: $teamcolor = 'redteamb'; break;
- case 1: $teamcolor = 'blueteamb'; break;
- case 2: $teamcolor = 'greenteamb'; break;
- case 3: $teamcolor = 'goldteamb'; break;
- }
- echo '<td class="'. $teamcolor .'" align="center" width="30" height="25"><img src="images/xhair.png" height="15"></td>';
- }
- foreach($players as $vid => $victim) {
- $class = ($kid == $vid) ? 'suicide' : 'killCell';
- //if ($i % 2) $class .= '2';
- echo '<td class="'.$class.' tooltip" title="'.($victim['name']).'" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($player['pid']). '" align="center" width="20">';
- if ($kid == $vid) {
- $val = ($killer['suicides'] != 0) ? $killer['suicides'] : '&nbsp;';
- } else {
- $val = (isset($km[$kid][$vid])) ? $km[$kid][$vid] : '&nbsp';
- }
- echo $val .'</td>';
- }
+ if ($killer['banned'] == 'Y') continue;
+ $i++;
+ echo '<tr class="clickableRow" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($killer['pid']). '">';
+ if ($first) echo'<td class="smheading" rowspan="'. count($players) .'" align="center" width="20"> <img src="images/xhair.png"> </td>';
+ echo '<td nowrap align="left" style="width: 220px;">';
+ echo '<a href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($killer['pid']). '">'.
+ FormatPlayerName($killer['country'], $killer['pid'], $killer['name'], $gid, $gamename) .'&nbsp;</a></td>';
+ if ($teamgame) {
+ switch($killer['team']) {
+ case 0: $teamcolor = 'redteamb'; break;
+ case 1: $teamcolor = 'blueteamb'; break;
+ case 2: $teamcolor = 'greenteamb'; break;
+ case 3: $teamcolor = 'goldteamb'; break;
+ }
+ echo '<td class="'. $teamcolor .'" align="center" width="30" height="25"><img src="images/xhair.png" height="15"></td>';
+ }
+ foreach($players as $vid => $victim) {
+ $class = ($kid == $vid) ? 'suicide' : 'killCell';
+ //if ($i % 2) $class .= '2';
+ echo '<td class="'.$class.' tooltip" title="'.($victim['name']).'" href="?p=matchp&amp;mid='. $mid .'&amp;pid='. urlencode($player['pid']). '" align="center" width="20">';
+ if ($kid == $vid) {
+ $val = ($killer['suicides'] != 0) ? $killer['suicides'] : '&nbsp;';
+ } else {
+ $val = (isset($km[$kid][$vid])) ? $km[$kid][$vid] : '&nbsp';
+ }
+ echo $val .'</td>';
+ }
- $first = false;
-}
+ $first = false;
+}
echo '</tbody></table><br>';
-?> \ No newline at end of file
+?>
diff --git a/html/pages/match_info_other.php b/html/pages/match_info_other.php
index b92ae74..6547637 100755
--- a/html/pages/match_info_other.php
+++ b/html/pages/match_info_other.php
@@ -123,15 +123,4 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta
echo '</tbody></table>';
-/*
-// To add when forum widget is available
-
-echo '
-<br><table class = "zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
- <tbody><tr>
- <td class="share" colspan="4"><center>Share this match:<br> <div class="darksearch">
- <span><input type="text" class="owshare square" value="[stats]'.$mid.'[/stats]" name="name" value="'.htmlentities($playername).'"></span></div>
-</td></tr></tbody></table>';
-*/
-
?>
diff --git a/html/pages/servers.php b/html/pages/servers.php
index 770796b..bb54d75 100644
--- a/html/pages/servers.php
+++ b/html/pages/servers.php
@@ -39,7 +39,7 @@ echo '
<table class="zebra box" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
- <th class="heading" colspan="6" align="center">Server List</th>
+ <th class="heading" colspan="6" align="center">Unreal Tournament Server List</th>
</tr>
<tr>
<td class="smheading" align="center" width="250">Server Name</td>
diff --git a/html/pages/servers_query.php b/html/pages/servers_query.php
index c44a718..d6228a6 100644
--- a/html/pages/servers_query.php
+++ b/html/pages/servers_query.php
@@ -70,7 +70,7 @@ if (file_exists($mappic)) {
$mapname = getiteminfo("mapname",$chunks);
$mappic = strtolower("images/maps/".$mapname.".jpg");
-IF (file_exists($mappic)) {
+if (file_exists($mappic)) {
} else {
$mappic = "images/maps/blank.jpg";
}
@@ -173,4 +173,4 @@ for ($i = 0; $i < $r_numplayers; $i++) {
}
echo'</tbody></table>';
-?> \ No newline at end of file
+?>