summaryrefslogtreecommitdiff
path: root/html/pages
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2018-01-10 20:08:33 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2018-01-10 20:08:33 +0100
commit861e3230f0154e6a5942698adedf18d5eb0e0b8a (patch)
tree904f4efa242804c12f6989bd825b93534ef0a599 /html/pages
parentfdd379c949056fb3a2198039e452f6aae600ef35 (diff)
Move imaegs to assets folder
Diffstat (limited to 'html/pages')
-rw-r--r--html/pages/admin/acelog.php14
-rw-r--r--html/pages/admin/aclog.php4
-rw-r--r--html/pages/admin/editgamestype.php46
-rw-r--r--html/pages/admin/editweapons.php8
-rw-r--r--html/pages/admin/main.php4
-rw-r--r--html/pages/admin/utdclog.php25
-rwxr-xr-xhtml/pages/graph_mbreakdown.php10
-rw-r--r--html/pages/graph_pbreakdown.php8
-rwxr-xr-xhtml/pages/home.php4
-rw-r--r--html/pages/maps.php2
-rw-r--r--html/pages/match_info_killsmatrix.php8
-rwxr-xr-xhtml/pages/match_info_other.php4
-rwxr-xr-xhtml/pages/players.php2
-rwxr-xr-xhtml/pages/players_info.php4
-rw-r--r--html/pages/players_search.php10
-rw-r--r--html/pages/report/bbcode.php4
-rw-r--r--html/pages/report/clanbase.php4
-rw-r--r--html/pages/servers.php2
-rw-r--r--html/pages/servers_query.php8
19 files changed, 86 insertions, 85 deletions
diff --git a/html/pages/admin/acelog.php b/html/pages/admin/acelog.php
index a9c80c0..31f98e8 100644
--- a/html/pages/admin/acelog.php
+++ b/html/pages/admin/acelog.php
@@ -12,7 +12,7 @@ function InvertSort($curr_field, $order, $sort) {
function SortPic($curr_field, $order, $sort) {
if ($curr_field != $order) return;
- $fname = 'images/s_'. strtolower($sort) .'.png';
+ $fname = 'assets/images/s_'. strtolower($sort) .'.png';
if (!file_exists($fname)) return;
return('&nbsp;<img src="'. $fname .'" border="0" width="11" height="9" alt="" title="('.strtolower($sort).'ending)">');
}
@@ -147,7 +147,7 @@ if (empty($filename)) {
$fp = my_fopen('logs/ace/'.$filename, 'rb', $compression = NULL);
if (!$fp) die("Error opening file");
-
+
while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) {
$info = preg_split('/\s/', $line, 3);
$info[2] = preg_replace('/[\r\n]+/', '', $info[2]);
@@ -242,7 +242,7 @@ if (empty($filename)) {
$d_size = file_size_info(filesize('logs/ace/'. $log));
echo $d_size['size'] .' '. $d_size['type'];
echo '</td><td class="'.$class.'" align="center">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td></tr>';
}
}
@@ -256,7 +256,7 @@ if (!empty($filename)) {
<tr>
<td class="smheading" align="center" width="95%" colspan="4">'.$filename.'</td>
<td class="smheading" align="center" width="5%" align="right">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td>
</tr>';
if (substr($filename, strlen($filename) - strlen($import_ace_screenshot_extension)) == $import_ace_screenshot_extension
@@ -269,10 +269,10 @@ if (!empty($filename)) {
else {
$fp = my_fopen('logs/ace/'.$filename, 'rb', $compression = NULL);
if (!$fp) die("Error opening file");
-
+
$i = 0;
echo '<tr><td class="grey" colspan="5"><span style="font-family: monospace;">';
-
+
while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) {
/*
$i++;
@@ -299,7 +299,7 @@ if (!empty($filename)) {
echo '<tr>
<td class="smheading" align="center" width="95%" colspan="4">'.$Screenshot.'</td>
<td class="smheading" align="center" width="5%" align="right">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.preg_replace('/\+/', '%20', urlencode($Screenshot)).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.preg_replace('/\+/', '%20', urlencode($Screenshot)).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td>
</tr>';
diff --git a/html/pages/admin/aclog.php b/html/pages/admin/aclog.php
index 2d78b77..d057c9f 100644
--- a/html/pages/admin/aclog.php
+++ b/html/pages/admin/aclog.php
@@ -70,7 +70,7 @@ if (empty($filename)) {
echo $d_size['size'] .' '. $d_size['type'];
echo '</td><td class="'.$class.'" align="center">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td></tr>';
}
}
@@ -83,7 +83,7 @@ if (!empty($filename)) {
<tr>
<td class="smheading" align="center" width="95%" colspan="3">'.$filename.'</td>
<td class="smheading" align="center" width="5%" align="right">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td>
</tr>';
diff --git a/html/pages/admin/editgamestype.php b/html/pages/admin/editgamestype.php
index 26bff62..0b8ac30 100644
--- a/html/pages/admin/editgamestype.php
+++ b/html/pages/admin/editgamestype.php
@@ -1,6 +1,6 @@
<?php
if (empty($import_adminkey) or isset($_REQUEST['import_adminkey']) or $import_adminkey != $adminkey) die('bla');
-
+
$sql_server = "SELECT id, servername, serverip FROM uts_match GROUP BY servername, serverip ORDER BY servername ASC";
$q_server = mysql_query($sql_server) or die(mysql_error());
$servernames = array('0' => '');
@@ -27,15 +27,15 @@ if (isset($_REQUEST['submit'])) {
mutator = '". my_addslashes($_REQUEST['mutator']) ."',
gid = '". my_addslashes($_REQUEST['gid']) ."'
") or die(mysql_error());
-
+
if (isset($_REQUEST['update'])) {
echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Updating...</td>
</tr>
-
-
-
+
+
+
<tr>
<td class="smheading" align="left" width="200">Updating Player Records</td>';
$where = 'WHERE 1';
@@ -49,27 +49,27 @@ if (isset($_REQUEST['submit'])) {
if ($_REQUEST['mutator'] != '*') {
$where .= " AND m.mutators LIKE '%".my_addslashes($_REQUEST['mutator'])."%'";
}
-
+
mysql_query("UPDATE uts_player p, uts_match m SET p.gid = '". my_addslashes($_REQUEST['gid']) ."' $where AND m.id = p.matchid;") or die(mysql_error());
echo'<td class="grey" align="left" width="400">Done (updated '.mysql_affected_rows().' records)</td>
</tr>
-
-
-
-
+
+
+
+
<tr>
<td class="smheading" align="left" width="200">Updating Matches</td>';
mysql_query("UPDATE uts_match m SET m.gid = '". my_addslashes($_REQUEST['gid']) ."' $where;") or die(mysql_error());
echo'<td class="grey" align="left" width="400">Done (updated '.mysql_affected_rows().' matches)</td>
</tr>
-
-
-
-
-
+
+
+
+
+
<tr>
<td class="smheading" align="left" width="200">Re-Calcuating Rankings</td>';
-
+
if ($_REQUEST['gamename'] != '*') {
$gids[] = $_REQUEST['gid'];
$where = "WHERE gid IN (".implode(',', $gids).")";
@@ -77,7 +77,7 @@ if (isset($_REQUEST['submit'])) {
$where = 'WHERE 1';
}
mysql_query("DELETE FROM uts_rank $where;") or die(mysql_error());
-
+
$sql_nrank = "SELECT SUM(p.gametime) AS time, p.pid, p.gid, SUM(p.rank) AS rank, COUNT(p.matchid) AS matches FROM uts_player p, uts_pinfo pi $where AND pi.id = p.pid AND pi.banned <> 'Y' GROUP BY p.gid, p.pid";
$q_nrank = mysql_query($sql_nrank) or die(mysql_error());
$num_ranks = 0;
@@ -138,7 +138,7 @@ while ($r_gamestype = mysql_fetch_array($q_gamestype)) {
echo '<td class="'.$class.'">&nbsp;'.htmlentities($gamedisplaynames[$r_gamestype['gid']]).'</td>';
echo '<td class="'.$class.'" align="center">';
echo '<a href="'.$_SERVER['PHP_SELF'].'?action='.$action.'&amp;key='.$adminkey.'&amp;del='.$r_gamestype['id'].'">';
- echo '<img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" />';
+ echo '<img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" />';
echo '</a>';
echo '</td>';
echo '</tr>';
@@ -168,7 +168,7 @@ echo '<td class="smheading" width="170">If server =</td>';
echo '<td class="'.$class.'">';
echo '<select class="searchform" name="serverip">';
foreach($serverips as $id => $bla) {
- echo '<option value="'.$serverips[$id].'">'. $serverips[$id];
+ echo '<option value="'.$serverips[$id].'">'. $serverips[$id];
if (!empty($servernames[$id])) echo ' ('. $servernames[$id] .')';
echo '</option>';
}
@@ -182,7 +182,7 @@ echo '<td class="'.$class.'">';
echo '<select class="searchform" name="gamename">';
foreach($gamenames as $id => $bla) {
if ($gamenames[$id] == '(user defined)') continue;
- echo '<option value="'.$gamenames[$id].'">'. $gamenames[$id];
+ echo '<option value="'.$gamenames[$id].'">'. $gamenames[$id];
if (!empty($gamedisplaynames[$id])) echo ' ('. $gamedisplaynames[$id] .')';
echo '</option>';
}
@@ -198,11 +198,11 @@ echo '</td></tr>';
echo '<tr><td class="smheading" nowrap>==&gt; assume gametype:</td>';
echo '<td class="'.$class.'">';
-
+
echo '<select class="searchform" name="gid">';
foreach($gamenames as $id => $bla) {
if ($gamenames[$id] == '*') continue;
- echo '<option value="'.$id.'">'. $gamenames[$id];
+ echo '<option value="'.$id.'">'. $gamenames[$id];
if (!empty($gamedisplaynames[$id])) echo ' ['. $gamedisplaynames[$id] .']';
echo '</option>';
}
@@ -224,5 +224,5 @@ echo'</form>
<td class="smheading" align="center" colspan="2"><a class="grey" href="./admin.php?key='.$_REQUEST[key].'">Go Back To Admin Page</a></td>
</tr>
</table>';
-
+
?>
diff --git a/html/pages/admin/editweapons.php b/html/pages/admin/editweapons.php
index dec6b64..e7b3251 100644
--- a/html/pages/admin/editweapons.php
+++ b/html/pages/admin/editweapons.php
@@ -1,6 +1,6 @@
<?php
if (empty($import_adminkey) or isset($_REQUEST['import_adminkey']) or $import_adminkey != $adminkey) die('bla');
-
+
if (isset($_REQUEST['submit'])) {
foreach($_REQUEST['image'] as $id => $bla) {
mysql_query(" UPDATE uts_weapons
@@ -17,7 +17,7 @@ echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
</tr>
<tr>
<td class="smheading">Name</td>
- <td class="smheading" align="center" '.OverlibPrintHint('', 'Image to display instead of the weapon\'s name<br>Should exist in images/weapons/<br>Leave empty to display the weapon name').'>Image</td>
+ <td class="smheading" align="center" '.OverlibPrintHint('', 'Image to display instead of the weapon\'s name<br>Should exist in assets/images/weapons/<br>Leave empty to display the weapon name').'>Image</td>
<td class="smheading" '.OverlibPrintHint('', 'Use this number to set the weapons order to your liking').'>Order</td>
<td class="smheading" '.OverlibPrintHint('', 'If checked, this weapon won\'t be shown (including kills, shots, acc, ...)').'>Hide</td>
</tr>
@@ -39,7 +39,7 @@ while ($r_weapons = mysql_fetch_array($q_weapons)) {
echo '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td width="60%">';
echo '<input class="searchform" type="text" name="image['.$r_weapons['id'].']" value="'.$r_weapons['image'].'">';
echo '</td><td width="40%" align="center">';
- if (!empty($r_weapons['image'])) echo ' <img src="images/weapons/'. $r_weapons['image'] .'" border="0">';
+ if (!empty($r_weapons['image'])) echo ' <img src="assets/images/weapons/'. $r_weapons['image'] .'" border="0">';
echo' </td></tr></table></td>';
echo '<td class="'.$class.'"><input class="searchform" type="text" name="sequence['.$r_weapons['id'].']" value="'.$r_weapons['sequence'].'" size="3" maxlength="3"></td>';
echo '<td class="'.$class.'"><input class="searchform" type="checkbox" name="hide['.$r_weapons['id'].']" '.($r_weapons['hide'] == 'Y' ? 'checked' : '').'></td>';
@@ -54,5 +54,5 @@ echo'</form>
<tr>
<td class="smheading" align="center" colspan="4"><a class="grey" href="./admin.php?key='.$_REQUEST[key].'">Go Back To Admin Page</a></td>
</tr></table>';
-
+
?>
diff --git a/html/pages/admin/main.php b/html/pages/admin/main.php
index e2c191e..697909a 100644
--- a/html/pages/admin/main.php
+++ b/html/pages/admin/main.php
@@ -51,14 +51,14 @@ foreach($tables as $table) {
echo'<tr>
<td class="smheading" align="left" width="200">';
if (substr($table['name'], 0, 9) == 'uts_temp_' and strlen($table['name']) == 17) {
- echo '<a href="admin.php?key='. urlencode($adminkey) .'&amp;action=main&amp;droptable='.htmlentities($table['name']).'"><img src="images/del.png" border="0" width="16" height="16" title="Click to drop this table" alt="Delete" /></a><em>'.$table['name'].'</em>';
+ echo '<a href="admin.php?key='. urlencode($adminkey) .'&amp;action=main&amp;droptable='.htmlentities($table['name']).'"><img src="assets/images/del.png" border="0" width="16" height="16" title="Click to drop this table" alt="Delete" /></a><em>'.$table['name'].'</em>';
} else {
echo $table['name'];
}
echo '</td>
<td class="'.$class.'" align="right">'.nf($table['rows']).' rows</td>
<td class="'.$class.'" align="right">'.$d_size['size'] .' '. $d_size['type'].'</td>
- <td class="'.$class.'" width="'.($max_width + 5).'"><img border="0" src="images/bars/h_bar'. ($i % 16 + 1) .'.png" height="10" width="'.(int)($table['size'] / $max_size * $max_width).'" alt="'. $title .'" title="'. $title .'"></td>
+ <td class="'.$class.'" width="'.($max_width + 5).'"><img border="0" src="assets/images/bars/h_bar'. ($i % 16 + 1) .'.png" height="10" width="'.(int)($table['size'] / $max_size * $max_width).'" alt="'. $title .'" title="'. $title .'"></td>
</tr>';
}
diff --git a/html/pages/admin/utdclog.php b/html/pages/admin/utdclog.php
index b81f8d4..53ef2cd 100644
--- a/html/pages/admin/utdclog.php
+++ b/html/pages/admin/utdclog.php
@@ -61,9 +61,9 @@ if (empty($filename)) {
$d_size = file_size_info(filesize('logs/utdc/'. $log));
echo $d_size['size'] .' '. $d_size['type'];
echo '</td><td class="'.$class.'" align="center">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($log).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td></tr>';
- }
+ }
}
}
@@ -74,7 +74,7 @@ if (!empty($filename)) {
<tr>
<td class="smheading" align="center" width="95%" colspan="3">'.$filename.'</td>
<td class="smheading" align="center" width="5%" align="right">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($filename).'&amp;del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td>
</tr>';
if (substr($filename, -4) == '.enc') {
@@ -85,10 +85,10 @@ if (!empty($filename)) {
else {
$fp = my_fopen('logs/utdc/'.$filename, 'rb', $compression = NULL);
if (!$fp) die("Error opening file");
-
+
$i = 0;
echo '<tr><td class="grey" colspan="4"><span style="font-family: monospace;">';
-
+
while (($line = my_fgets($fp, 5000, $compression)) !== FALSE) {
/*
$i++;
@@ -113,15 +113,16 @@ if (!empty($filename)) {
if ($filename == '.htaccess' or $filename == 'index.htm') continue;
if ((substr($file, -4) == '.enc') and
((substr($filename, strlen($filename)-(23 + $extra), 19) == substr($file, strlen($file)-23, 19)) or ((substr($filename, strlen($filename)-(23 + $extra), 17) == substr($file, strlen($file)-23, 17)) and (abs(intval(substr($file, strlen($file)- 6, 2)) - intval(substr($filename, strlen($filename)-(6 + $extra), 17))) <=3)))) {
- echo '<tr>
+ echo '<tr>
<td class="smheading" align="center" width="95%" colspan="3">'.$file.'</td>
- <td class="smheading" align="center" width="5%" align="right">';
- echo '<a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($file).'&amp;del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
- echo '</td>
- </tr>';
-
+ <td class="smheading" align="center" width="5%" align="right">
+ <a href="admin.php?key='.$adminkey.'&amp;action='.$action.'&amp;filename='.urlencode($file).'&amp;del=1">
+ <img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" />
+ </a>
+ </td>
+ </tr>';
echo '<tr><td class="grey" colspan="4"><span style="font-family: monospace;">';
- echo '<a href = "pages/admin/utdcshot.php?filename='.urlencode($file).'" target = "_blank"><img src = "pages/admin/utdcshot.php?filename='.urlencode($file).'" width = 100% border = 0></a>';
+ echo '<a href="pages/admin/utdcshot.php?filename='.urlencode($file).'" target="_blank"><img src="pages/admin/utdcshot.php?filename='.urlencode($file).'" width="100%" border="0"></a>';
echo '</span></td></tr>';
}
}
diff --git a/html/pages/graph_mbreakdown.php b/html/pages/graph_mbreakdown.php
index 172b419..677e0c1 100755
--- a/html/pages/graph_mbreakdown.php
+++ b/html/pages/graph_mbreakdown.php
@@ -104,7 +104,7 @@ echo '
for ($i = 0; $i <= 23; $i++) {
if (!isset($gb_hour[$i])) $gb_hour[$i] = 0;
$title = $gb_hour[$i] .' ('. get_dp($gb_hour[$i] / $hour_sum * 100) .' %)';
- echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_hour[$i] / $hour_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_hour[$i] / $hour_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
@@ -113,7 +113,7 @@ echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
for ($i = 0; $i <= 6; $i++) {
if (!isset($gb_day[$i])) $gb_day[$i] = 0;
$title = $gb_day[$i] .' ('. get_dp($gb_day[$i] / $day_sum * 100) .' %)';
- echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_day[$i] / $day_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_day[$i] / $day_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
@@ -122,7 +122,7 @@ echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
for ($i = 1; $i <= 12; $i++) {
if (!isset($gb_month[$i])) $gb_month[$i] = 0;
$title = $gb_month[$i] .' ('. get_dp($gb_month[$i] / $month_sum * 100) .' %)';
- echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. (($i + 8) % 16 + 1) .'.png" width="18" height="'.(int)($gb_month[$i] / $month_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. (($i + 8) % 16 + 1) .'.png" width="18" height="'.(int)($gb_month[$i] / $month_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
@@ -216,14 +216,14 @@ for ($i = 0; $i < $max_cntry; $i++) {
if (!isset($gb_hour[$i])) $gb_hour[$i] = 0;
$country = explode(";",$gb_country[$i]);
$title = $a_countries[$country[0]] .': ' . $country[1] . ' ('. get_dp($country[1] / $country_sum * 100) .' %)';
- echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="20"><img border="0" src="images/bars/v_bar'. ($i % 16 + 1) .'.png" width="20" height="'.(int)($country[1] / $country_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="20"><img border="0" src="assets/images/bars/v_bar'. ($i % 16 + 1) .'.png" width="20" height="'.(int)($country[1] / $country_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
$x += $country[1];
}
if($others){
$countries_left = $country_sum - $x;
$title = 'Other Countries: ' . $countries_left . ' ('. get_dp($countries_left / $country_sum * 100) .' %)';
- echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="20"><img border="0" src="images/bars/v_bar'. ($max_cntry % 16 + 1) .'.png" width="20" height="'.(int)($countries_left / $country_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark-mbreakdown" align="center" valign="bottom" width="20"><img border="0" src="assets/images/bars/v_bar'. ($max_cntry % 16 + 1) .'.png" width="20" height="'.(int)($countries_left / $country_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
};
echo '<td class="dark" align="center" valign="bottom" width="18"></td>';
diff --git a/html/pages/graph_pbreakdown.php b/html/pages/graph_pbreakdown.php
index 8395b30..b287865 100644
--- a/html/pages/graph_pbreakdown.php
+++ b/html/pages/graph_pbreakdown.php
@@ -59,7 +59,7 @@ echo'
for ($i = 0; $i <= 23; $i++) {
if (!isset($gb_hour[$i])) $gb_hour[$i] = 0;
$title = $gb_hour[$i] .' ('. get_dp($gb_hour[$i] / $hour_sum * 100) .' %)';
- echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_hour[$i] / $hour_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_hour[$i] / $hour_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
@@ -68,7 +68,7 @@ echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
for ($i = 0; $i <= 6; $i++) {
if (!isset($gb_day[$i])) $gb_day[$i] = 0;
$title = $gb_day[$i] .' ('. get_dp($gb_day[$i] / $day_sum * 100) .' %)';
- echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_day[$i] / $day_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. ($i % 16 + 1) .'.png" width="18" height="'.(int)($gb_day[$i] / $day_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
@@ -77,7 +77,7 @@ echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
for ($i = 1; $i <= 12; $i++) {
if (!isset($gb_month[$i])) $gb_month[$i] = 0;
$title = $gb_month[$i] .' ('. get_dp($gb_month[$i] / $month_sum * 100) .' %)';
- echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="images/bars/v_bar'. (($i + 8) % 16 + 1) .'.png" width="18" height="'.(int)($gb_month[$i] / $month_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
+ echo '<td class="dark" align="center" valign="bottom" width="15"><img border="0" src="assets/images/bars/v_bar'. (($i + 8) % 16 + 1) .'.png" width="18" height="'.(int)($gb_month[$i] / $month_max * $max_height).'" alt="'. $title .'" title="'. $title .'"></td>';
}
echo '<td class="dark" align="center" valign="bottom" width="15"></td>';
echo'</tr><tr>
@@ -134,4 +134,4 @@ echo'</tr><tr>
</tbody>
</table>
<br>';
-?> \ No newline at end of file
+?>
diff --git a/html/pages/home.php b/html/pages/home.php
index a61d7f9..d3e0fa0 100755
--- a/html/pages/home.php
+++ b/html/pages/home.php
@@ -16,8 +16,8 @@ $moreThan2Teams = ($lastMapScore2!=0);
$mappic = getMapImageName($lastMapFileName);
// quick hack to show empty one at front page if no map
-if (!file_exists($mappic) || $mappic == "images/maps/blank_large.jpg") {
- $mappic = "images/maps/emptyfront.jpg";
+if (!file_exists($mappic) || $mappic == "assets/images/maps/blank_large.jpg") {
+ $mappic = "assets/images/maps/emptyfront.jpg";
}
echo '
diff --git a/html/pages/maps.php b/html/pages/maps.php
index 1959085..bd1106e 100644
--- a/html/pages/maps.php
+++ b/html/pages/maps.php
@@ -7,7 +7,7 @@ function InvertSort($curr_field, $filter, $sort) {
function SortPic($curr_field, $filter, $sort) {
if ($curr_field != $filter) return;
- $fname = 'images/s_'. strtolower($sort) .'.png';
+ $fname = 'assets/images/s_'. strtolower($sort) .'.png';
if (!file_exists($fname)) return;
return('&nbsp;<img src="'. $fname .'" border="0" width="11" height="9" alt="" class="tooltip" title="('.strtolower($sort).'ending)">');
}
diff --git a/html/pages/match_info_killsmatrix.php b/html/pages/match_info_killsmatrix.php
index 0ace5ac..91a9087 100644
--- a/html/pages/match_info_killsmatrix.php
+++ b/html/pages/match_info_killsmatrix.php
@@ -63,7 +63,7 @@ echo '
<th class="heading" colspan="'. (count($players) + $extra) .'" align="center">Kills Match Up</th>
</tr>
<tr>
- <th class="smheading" colspan="'.$extra.'" rowspan="'.$extra.'" align="center"><center><img src="images/arrow.png"></th>
+ <th class="smheading" colspan="'.$extra.'" rowspan="'.$extra.'" align="center"><center><img src="assets/images/arrow.png"></th>
</tr>
<tr>';
@@ -90,7 +90,7 @@ if ($teamgame) {
case 3: $teamcolor = 'goldteamb'; break;
}
echo '<td class="'. $teamcolor .'" align="center" width="25" height="25">
- <img src="images/victim.png" height="15"></td>';
+ <img src="assets/images/victim.png" height="15"></td>';
}
echo '</tr>';
}
@@ -102,7 +102,7 @@ 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>';
+ if ($first) echo'<td class="smheading" rowspan="'. count($players) .'" align="center" width="20"> <img src="assets/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>';
@@ -113,7 +113,7 @@ foreach($players as $kid => $killer) {
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>';
+ echo '<td class="'. $teamcolor .'" align="center" width="30" height="25"><img src="assets/images/xhair.png" height="15"></td>';
}
foreach($players as $vid => $victim) {
$class = ($kid == $vid) ? 'suicide' : 'killCell';
diff --git a/html/pages/match_info_other.php b/html/pages/match_info_other.php
index 6547637..63e840e 100755
--- a/html/pages/match_info_other.php
+++ b/html/pages/match_info_other.php
@@ -11,7 +11,7 @@ echo '<br>
<th class="heading" colspan="11" align="center">Special Events</th>
</tr>
<tr>
- <th class="smheading" align="center" rowspan="2" width="220"><img src="images/player.jpg"></th>
+ <th class="smheading" align="center" rowspan="2" width="220"><img src="assets/images/player.jpg"></th>
<th class="smheading" align="center" rowspan="2" width="60">First Blood</th>
<th class="smheading tooltip" align="center" colspan="4" width="160" title="If you manage to kill more 2 than people within a short space of time you get a Double Kill, 3 is a Multi Kill etc">Multis</th>
<th class="smheading tooltip" align="center" colspan="5" width="200" title="Special event: If you manage to kill 5 or more opponents without dying yourself, you will be on a killing spree. If you kill more than 10 opponents, you are on a rampage, etc.">Sprees</th>
@@ -108,7 +108,7 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta
<th class="heading" colspan="8" align="center">Pickups Summary</th>
</tr>
<tr>
- <th class="smheading" align="center" width="220"><img src="images/player.jpg"></th>
+ <th class="smheading" align="center" width="220"><img src="assets/images/player.jpg"></th>
<th class="smheading" align="center" width="71">Pads</th>
<th class="smheading" align="center" width="71">Armour</th>
<th class="smheading" align="center" width="71">Keg</th>
diff --git a/html/pages/players.php b/html/pages/players.php
index d888855..b038405 100755
--- a/html/pages/players.php
+++ b/html/pages/players.php
@@ -7,7 +7,7 @@ function InvertSort($curr_field, $filter, $sort) {
function SortPic($curr_field, $filter, $sort) {
if ($curr_field != $filter) return;
- $fname = 'images/s_'. strtolower($sort) .'.png';
+ $fname = 'assets/images/s_'. strtolower($sort) .'.png';
if (!file_exists($fname)) return;
return('&nbsp;<img src="'. $fname .'" border="0" width="11" height="9" alt="" class="tooltip" title="('.strtolower($sort).'ending)">');
}
diff --git a/html/pages/players_info.php b/html/pages/players_info.php
index a23f4fd..1ddb631 100755
--- a/html/pages/players_info.php
+++ b/html/pages/players_info.php
@@ -87,9 +87,9 @@ echo '
<th class="heading" colspan="12" align="center">Career Summary for '.htmlentities($playername).' ';
if (PlayerOnWatchlist($pid)) {
- echo '<a href="?p=pinfo&amp;pid='.$pid.'&amp;togglewatch=1&amp;noheader=1"><img src="images/unwatch.png" border="0" class="tooltip" title="You are watching this player. Click to remove from your watchlist."></a>';
+ echo '<a href="?p=pinfo&amp;pid='.$pid.'&amp;togglewatch=1&amp;noheader=1"><img src="assets/images/unwatch.png" border="0" class="tooltip" title="You are watching this player. Click to remove from your watchlist."></a>';
} else {
- echo '<a href="?p=pinfo&amp;pid='.$pid.'&amp;togglewatch=1&amp;noheader=1"><img src="images/watch.png" border="0" class="tooltip" title="Click to add this player to your watchlist."></a>';
+ echo '<a href="?p=pinfo&amp;pid='.$pid.'&amp;togglewatch=1&amp;noheader=1"><img src="assets/images/watch.png" border="0" class="tooltip" title="Click to add this player to your watchlist."></a>';
}
echo '</th>
diff --git a/html/pages/players_search.php b/html/pages/players_search.php
index 39ab53f..133f46c 100644
--- a/html/pages/players_search.php
+++ b/html/pages/players_search.php
@@ -8,7 +8,7 @@ function InvertSort($curr_field, $filter, $sort) {
function SortPic($curr_field, $filter, $sort) {
if ($curr_field != $filter) return;
- $fname = 'images/s_'. strtolower($sort) .'.png';
+ $fname = 'assets/images/s_'. strtolower($sort) .'.png';
if (!file_exists($fname)) return;
return('&nbsp;<img src="'. $fname .'" border="0" width="11" height="9" alt="" class="tooltip" title="('.strtolower($sort).'ending)">');
}
@@ -38,10 +38,10 @@ echo'
</th>
<tr>
<th class ="smheading" colspan = "12" ALIGN="center">
- <div class="darksearch">
+ <div class="darksearch">
<span><input type="text" class="search square" placeholder="Search player..." name="name" value="'.htmlentities($playername).'"><input class="searchbutton" type="submit" value="Search"></span></div>
</th>
-
+
</tr>
<tr>
<td class="smheading" align="center" width="150"><a class="smheading" href="./?p=psearch&amp;name='.urlencode($playername).'&amp;filter=name&amp;sort='.InvertSort('name', $filter, $sort).'">Player Name</a>'.SortPic('name', $filter, $sort).'</td>
@@ -68,7 +68,7 @@ while ($r_plist = mysql_fetch_array($q_plist)) {
$eff = get_dp($r_plist[eff]);
$acc = get_dp($r_plist[accuracy]);
$ttl = GetMinutes($r_plist[ttl]);
-
+
echo'
<tr class="clickableRow" href="./?p=pinfo&amp;pid='.$r_plist['pid'].'">
<td nowrap align="left"><a href="./?p=pinfo&amp;pid='.$r_plist['pid'].'">'.FormatPlayerName($r_plist[country], $r_plist['pid'], $r_plist[name]).'</a></td>
@@ -86,4 +86,4 @@ while ($r_plist = mysql_fetch_array($q_plist)) {
}
echo'
</tbody></table></form>';
-?> \ No newline at end of file
+?>
diff --git a/html/pages/report/bbcode.php b/html/pages/report/bbcode.php
index e07aa91..09c65a7 100644
--- a/html/pages/report/bbcode.php
+++ b/html/pages/report/bbcode.php
@@ -10,7 +10,7 @@ if (empty($id)) {
$sql_s = small_query("SELECT mapfile, gametime FROM uts_match WHERE id = '$id'");
$map = str_replace(".unr", "", "$sql_s[mapfile]");
-$mappic = strtolower("images/maps/".$map.".jpg");
+$mappic = strtolower("assets/images/maps/".$map.".jpg");
$actgamelength = $sql_s[gametime];
// Lets work out what kind of game this was from the scores
@@ -421,4 +421,4 @@ echo'
This report was created with UTStats from the following game:
[url]http://'.$oururl.'?p=match&mid='.$id.'[/url]
</textarea>';
-?> \ No newline at end of file
+?>
diff --git a/html/pages/report/clanbase.php b/html/pages/report/clanbase.php
index 6b7d412..2eb8cde 100644
--- a/html/pages/report/clanbase.php
+++ b/html/pages/report/clanbase.php
@@ -53,7 +53,7 @@ $teamb = '[cl]'.$teambid.','.$teamb.'[/cl]';
$sql_s = small_query("SELECT mapfile, gametime FROM uts_match WHERE id = '$id'");
$map = str_replace(".unr", "", "$sql_s[mapfile]");
-$mappic = strtolower("images/maps/".$map.".jpg");
+$mappic = strtolower("assets/images/maps/".$map.".jpg");
$actgamelength = $sql_s[gametime];
// Lets work out what kind of game this was from the scores
@@ -527,4 +527,4 @@ echo'<br />
This report was created with UTStats from the following game:<br />
[el]http://'.$oururl.'?p=match&mid='.$id.',http://'.$oururl.'?p=match&mid='.$id.'[/el]
</textarea>';
-?> \ No newline at end of file
+?>
diff --git a/html/pages/servers.php b/html/pages/servers.php
index bb54d75..65dd06b 100644
--- a/html/pages/servers.php
+++ b/html/pages/servers.php
@@ -64,7 +64,7 @@ while ($r_servers = mysql_fetch_array($q_servers)) {
</td>
<td align="center">
<a href="./?p=squery&amp;serverip='.$r_servers[serverip].'">
- <img border="0" alt="Server Status" src="images/search.png">
+ <img border="0" alt="Server Status" src="assets/images/search.png">
</a>
</td>
<td align="center">'.$r_servers[matchcount].'</td>
diff --git a/html/pages/servers_query.php b/html/pages/servers_query.php
index d6228a6..84a4fa9 100644
--- a/html/pages/servers_query.php
+++ b/html/pages/servers_query.php
@@ -61,18 +61,18 @@ fclose ($sock);
//Split chunks by \
$chunks = split('[\]', $data);
-$mappic = strtolower("images/maps/".$map.".jpg");
+$mappic = strtolower("assets/images/maps/".$map.".jpg");
if (file_exists($mappic)) {
} else {
- $mappic = ("images/maps/blank.jpg");
+ $mappic = ("assets/images/maps/blank.jpg");
}
$mapname = getiteminfo("mapname",$chunks);
-$mappic = strtolower("images/maps/".$mapname.".jpg");
+$mappic = strtolower("assets/images/maps/".$mapname.".jpg");
if (file_exists($mappic)) {
} else {
- $mappic = "images/maps/blank.jpg";
+ $mappic = "assets/images/maps/blank.jpg";
}
$r_hostname = getiteminfo("hostname",$chunks);