diff options
Diffstat (limited to 'html/pages/admin')
19 files changed, 233 insertions, 221 deletions
diff --git a/html/pages/admin/acelog.php b/html/pages/admin/acelog.php index 365174a..31f98e8 100755..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(' <img src="'. $fname .'" border="0" width="11" height="9" alt="" title="('.strtolower($sort).'ending)">');
}
@@ -90,7 +90,7 @@ if (empty($filename)) { }
</script>
<form name = "filter">
- <table class = "box" border="0" cellpadding="1" cellspacing="2" width="720">
+ <table class = "box" border="0" cellpadding="0" cellspacing="0" width="720">
<tr>
<td class="heading" align="center" width="100%" colspan="5">Available ACE Logs:</td>
</tr>
@@ -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.'&action='.$action.'&filename='.urlencode($log).'&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.'&action='.$action.'&filename='.urlencode($log).'&del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td></tr>';
}
}
@@ -252,11 +252,11 @@ if (empty($filename)) { if (!empty($filename)) {
if (!file_exists('logs/ace/'. $filename) or !is_file('logs/ace/'. $filename)) die('File not found (2)');
- echo'<br><table class = "box" border="0" cellpadding="1" cellspacing="2" width="720">
+ echo'<br><table class = "box" border="0" cellpadding="0" cellspacing="0" width="720">
<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.'&action='.$action.'&filename='.urlencode($filename).'&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.'&action='.$action.'&filename='.urlencode($filename).'&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.'&action='.$action.'&filename='.preg_replace('/\+/', '%20', urlencode($Screenshot)).'&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.'&action='.$action.'&filename='.preg_replace('/\+/', '%20', urlencode($Screenshot)).'&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 ada35c8..d057c9f 100755..100644 --- a/html/pages/admin/aclog.php +++ b/html/pages/admin/aclog.php @@ -1,108 +1,120 @@ -<?php
-if (empty($import_adminkey) or isset($_REQUEST['import_adminkey']) or $import_adminkey != $adminkey) die('bla');
-
-$filename = (!empty($_REQUEST['filename'])) ? my_stripslashes($_REQUEST['filename']) : '';
-$filename = str_replace(array('..', '/', '\\', '<', ':'), array(), $filename);
-
-
-if (!empty($filename)) {
- if (!file_exists('logs/ac/'. $filename) or !is_file('logs/ac/'. $filename)) die('bla');
- if (isset($_REQUEST['del'])) {
- unlink('logs/ac/'. $filename);
- $filename = '';
- }
-}
-
-
-
-
-if (empty($filename)) {
- echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
- <tr>
- <td class="smheading" align="center" width="100%" colspan="4">Available AnthChecker Logs:</td>
- </tr>';
- $logdir = opendir('logs/ac');
- $logs = array();
- $sort = array();
- $i = 0;
- while (false !== ($filename = readdir($logdir))) {
- if (!is_file('logs/ac/'. $filename)) continue;
- if ($filename == '.htaccess' or $filename == 'index.htm') continue;
- $i++;
- $logs[$i] = $filename;
- $extra = 0;
- if (substr($filename, -4) == '.bz2') $extra = 4;
- if (substr($filename, -3) == '.gz') $extra = 3;
-
- $sort[$i] = substr($filename, strlen($filename) - (23 + $extra), 19);
- }
- closedir($logdir);
- if (count($logs) == 0) {
- echo '<tr><td class="grey" colspan="4">No logs available!</td></tr>';
- } else {
- arsort($sort);
- $i = 0;
- foreach($sort as $id => $date) {
- $log = $logs[$id];
- $extra = 0;
- if (substr($log, -4) == '.bz2') $extra = 4;
- if (substr($log, -3) == '.gz') $extra = 3;
-
- $i++;
- $class = ($i%2) ? 'grey' : 'grey2';
- echo '<tr><td class="'.$class.'">';
- $tmp = substr($log, strlen($log) - (23 + $extra), 19);
- $tmp = str_replace('.', '', $tmp);
- $ts = mtimestamp($tmp);
- echo ' <a class="'.$class.'" href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'">'.date('Y-m-d H:i', $ts).'</a>';
- echo '</td><td class="'.$class.'">';
- echo '<a class="'.$class.'" href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'">'.substr($log, 6, strlen($log) - 30 - $extra).'</a>';
- echo '</td><td class="'.$class.'" align="right">';
- $d_size = file_size_info(filesize('logs/ac/'. $log));
- echo $d_size['size'] .' '. $d_size['type'];
- echo '</td><td class="'.$class.'" align="center">';
- echo '<a href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'&del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
- echo '</td></tr>';
- }
- }
-}
-
-
-if (!empty($filename)) {
- if (!file_exists('logs/ac/'. $filename) or !is_file('logs/ac/'. $filename)) die('bla');
- echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
- <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.'&action='.$action.'&filename='.urlencode($filename).'&del=1"><img src="images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
- echo '</td>
- </tr>';
-
- $fp = my_fopen('logs/ac/'.$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++;
- $class = ($i%2) ? 'grey' : 'grey2';
- echo '<tr><td class="'.$class.'" colspan="4">';
- echo '<span style="font-family: monospace;">';
- echo htmlentities($line);
- echo '</span>';
- echo '</td></tr>';
- */
- echo wordwrap(htmlentities($line), 80, '<br />', 1) ."<br />";
- }
- echo '</span></td></tr>';
- my_fclose($fp, $compression);
-}
-
-echo '</tr>';
-if (!empty($filename)) echo'<tr><td class="smheading" align="center" colspan="4"><a class="grey" href="./admin.php?key='.$_REQUEST[key].'&action='.$action.'">Go Back To Logfile Overview</a></td></tr>';
-echo'<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>';
-echo '</table>';
-
-?>
+<?php
+
+if (empty($import_adminkey) or isset($_REQUEST['import_adminkey']) or $import_adminkey != $adminkey) die('bla');
+
+$filename = (!empty($_REQUEST['filename'])) ? my_stripslashes($_REQUEST['filename']) : '';
+$filename = str_replace(array('..', '/', '\\', '<', ':'), array(), $filename);
+
+if (!empty($filename)) {
+ if (!file_exists('logs/ac/'. $filename) or !is_file('logs/ac/'. $filename)) die('bla');
+
+ if (isset($_REQUEST['del'])) {
+ unlink('logs/ac/'. $filename);
+ $filename = '';
+ }
+}
+
+if (empty($filename)) {
+ echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
+ <tr>
+ <td class="smheading" align="center" width="100%" colspan="4">Available AnthChecker Logs:</td>
+ </tr>';
+
+ $logdir = opendir('logs/ac');
+ $logs = array();
+ $sort = array();
+ $i = 0;
+
+ while (false !== ($filename = readdir($logdir))) {
+ if (!is_file('logs/ac/'. $filename)) continue;
+ if ($filename == '.htaccess' or $filename == 'index.htm') continue;
+
+ $i++;
+ $logs[$i] = $filename;
+ $extra = 0;
+
+ if (substr($filename, -4) == '.bz2') $extra = 4;
+ if (substr($filename, -3) == '.gz') $extra = 3;
+
+ $sort[$i] = substr($filename, strlen($filename) - (23 + $extra), 19);
+ }
+
+ closedir($logdir);
+
+ if (count($logs) == 0) {
+ echo '<tr><td class="grey" colspan="4">No logs available!</td></tr>';
+ } else {
+ arsort($sort);
+ $i = 0;
+
+ foreach($sort as $id => $date) {
+ $log = $logs[$id];
+ $extra = 0;
+
+ if (substr($log, -4) == '.bz2') $extra = 4;
+ if (substr($log, -3) == '.gz') $extra = 3;
+
+ $i++;
+ $class = ($i%2) ? 'grey' : 'grey2';
+ echo '<tr><td class="'.$class.'">';
+ $tmp = substr($log, strlen($log) - (23 + $extra), 19);
+ $tmp = str_replace('.', '', $tmp);
+ $ts = mtimestamp($tmp);
+
+ echo '<a class="'.$class.'" href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'">'.date('Y-m-d H:i', $ts).'</a>';
+ echo '</td><td class="'.$class.'">';
+ echo '<a class="'.$class.'" href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'">'.substr($log, 6, strlen($log) - 30 - $extra).'</a>';
+ echo '</td><td class="'.$class.'" align="right">';
+
+ $d_size = file_size_info(filesize('logs/ac/'. $log));
+
+ echo $d_size['size'] .' '. $d_size['type'];
+ echo '</td><td class="'.$class.'" align="center">';
+ echo '<a href="admin.php?key='.$adminkey.'&action='.$action.'&filename='.urlencode($log).'&del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '</td></tr>';
+ }
+ }
+}
+
+if (!empty($filename)) {
+ if (!file_exists('logs/ac/'. $filename) or !is_file('logs/ac/'. $filename)) die('bla');
+
+ echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
+ <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.'&action='.$action.'&filename='.urlencode($filename).'&del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
+ echo '</td>
+ </tr>';
+
+ $fp = my_fopen('logs/ac/'.$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++;
+ $class = ($i%2) ? 'grey' : 'grey2';
+ echo '<tr><td class="'.$class.'" colspan="4">';
+ echo '<span style="font-family: monospace;">';
+ echo htmlentities($line);
+ echo '</span>';
+ echo '</td></tr>';
+ */
+
+ echo wordwrap(htmlentities($line), 80, '<br />', 1) ."<br />";
+ }
+
+ echo '</span></td></tr>';
+ my_fclose($fp, $compression);
+}
+
+echo '</tr>';
+
+if (!empty($filename)) echo'<tr><td class="smheading" align="center" colspan="4"><a class="grey" href="./admin.php?key='.$_REQUEST[key].'&action='.$action.'">Go Back To Logfile Overview</a></td></tr>';
+
+echo'<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>';
+echo '</table>';
+
+?>
diff --git a/html/pages/admin/dmatch.php b/html/pages/admin/dmatch.php index 9fed97d..3c7ebc5 100755..100644 --- a/html/pages/admin/dmatch.php +++ b/html/pages/admin/dmatch.php @@ -20,7 +20,7 @@ $results = adminselect($options); $matchid = $results['mid'];
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Deleting Match ID '.$matchid.'</td>
</tr>
@@ -47,7 +47,7 @@ while ($r_radjust = mysql_fetch_array($q_radjust)) { mysql_query("UPDATE uts_rank SET rank = $newrank, prevrank = $oldrank, matches = $matchcount WHERE id = $rid") or die(mysql_error());
mysql_query("DELETE FROM uts_rank WHERE matches = 0") or die(mysql_error());
}
- echo'<td class="grey" align="left" width="400">Done</td>
+ echo'<td class="grey" align="left" width="700">Done</td>
</tr>
<tr>
<td class="smheading" align="left" width="200">Removing Match Record:</td>';
diff --git a/html/pages/admin/dplayer.php b/html/pages/admin/dplayer.php index 0239e5d..ca3e747 100755..100644 --- a/html/pages/admin/dplayer.php +++ b/html/pages/admin/dplayer.php @@ -15,7 +15,7 @@ $results = adminselect($options); $pid = $results['pid'];
$playerid = $pid;
-echo'<table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Deleting Player</td>
</tr>
diff --git a/html/pages/admin/dpmatch.php b/html/pages/admin/dpmatch.php index b021054..ff4258e 100755..100644 --- a/html/pages/admin/dpmatch.php +++ b/html/pages/admin/dpmatch.php @@ -21,7 +21,7 @@ $results = adminselect($options); $matchid = $results['mid'];
$pid = $results['pid'];
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Delete Player From Match ID '.$matchid.'</td>
</tr>';
diff --git a/html/pages/admin/editgames.php b/html/pages/admin/editgames.php index 3f7a542..d2981b8 100755..100644 --- a/html/pages/admin/editgames.php +++ b/html/pages/admin/editgames.php @@ -16,7 +16,7 @@ if (isset($_REQUEST['submit'])) { }
}
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="medheading" align="center" colspan="2">Edit games</td>
</tr>
diff --git a/html/pages/admin/editgamestype.php b/html/pages/admin/editgamestype.php index d9e4ff1..0b8ac30 100755..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="1" cellspacing="2" width="600">
+ 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;
@@ -102,7 +102,7 @@ if (isset($_REQUEST['del'])) { -echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="medheading" align="center" colspan="8">Current Mappings</td>
</tr>
@@ -138,7 +138,7 @@ while ($r_gamestype = mysql_fetch_array($q_gamestype)) { echo '<td class="'.$class.'"> '.htmlentities($gamedisplaynames[$r_gamestype['gid']]).'</td>';
echo '<td class="'.$class.'" align="center">';
echo '<a href="'.$_SERVER['PHP_SELF'].'?action='.$action.'&key='.$adminkey.'&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>';
@@ -153,7 +153,7 @@ echo '</tr></table>'; -echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="medheading" align="center" colspan="2">Add new gamestype</td>
</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>==> 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 2baeab9..e7b3251 100755..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
@@ -11,13 +11,13 @@ if (isset($_REQUEST['submit'])) { }
}
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="medheading" align="center" colspan="4">Edit weapons</td>
</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/ipsearch.php b/html/pages/admin/ipsearch.php index 4ac9731..fcfe17f 100755..100644 --- a/html/pages/admin/ipsearch.php +++ b/html/pages/admin/ipsearch.php @@ -22,7 +22,7 @@ $results = adminselect($options); $ip_from = $results['ip_from'];
$ip_to = $results['ip_to'];
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Players using IPs '.$ip_from.' - '.$ip_to.' and their last 5 matches using these IPs</td>
</tr>';
diff --git a/html/pages/admin/main.php b/html/pages/admin/main.php index 4d60302..697909a 100755..100644 --- a/html/pages/admin/main.php +++ b/html/pages/admin/main.php @@ -17,7 +17,7 @@ function nf($number) { }
-echo'<table class = "box" border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<table class = "box" border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" height="25" colspan="4">Database Statistics</td>
</tr>';
@@ -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) .'&action=main&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) .'&action=main&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>';
}
@@ -71,47 +71,46 @@ echo'<tr> </tr>
</table><br>';
-echo'<table border="0" cellpadding="1" cellspacing="2" width="600">
- <tr><td width="100%">';
+echo'<table class="zebra box" border="0" cellpadding="0" cellspacing="0" width="700">
+ <tbody>
+ <tr><td class="dark" align="left">';
-echo '
- <ul>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=mplayers">Merge Players</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=mservers">Merge Servers</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=plm">Merge IPs with more than 1 Player</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=mplayers">Merge Players</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=mservers">Merge Servers</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=plm">Merge IPs with more than 1 Player</a></p>';
echo '<br>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=dmatch">Delete Match</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=dpmatch">Delete Player From Match</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=dplayer">Delete Player</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=dmatch">Delete Match</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=dpmatch">Delete Player From Match</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=dplayer">Delete Player</a></p>';
echo '<br>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=pban&saction=ban">Ban Player</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=pban&saction=unban">Unban Player</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=pban&saction=ban">Ban Player</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=pban&saction=unban">Unban Player</a></p>';
echo '<br>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=pinfo">Extended Player Info</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=ipsearch">Search IP</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=pinfo">Extended Player Info</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=ipsearch">Search IP</a></p>';
if ($import_utdc_download_enable) {
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=utdclog">View UTDC logs</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=utdclog">View UTDC logs</a></p>';
}
if ($import_ac_download_enable) {
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=aclog">View AnthChecker logs</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=aclog">View AnthChecker logs</a></p>';
}
if ($import_ace_download_enable) {
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=acelog">View ACE logs</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=acelog">View ACE logs</a></p>';
}
echo '<br>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=editweapons">Edit Weapons</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=editgames">Add/Edit Game Names</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=editgamestype">Add/Edit Game Types</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=recalcranking">Recalculate Rankings</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=recalcflags">Recalculate Countryflags</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=editweapons">Edit Weapons</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=editgames">Add/Edit Game Names</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=editgamestype">Add/Edit Game Types</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=recalcranking">Recalculate Rankings</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=recalcflags">Recalculate Countryflags</a></p>';
echo '<br>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=check">Check server settings</a></li>';
- echo '<li><a href="admin.php?key='. urlencode($adminkey) .'&action=emptydb">Empty the database</a></li>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=check">Check server settings</a></p>';
+ echo '<p><a href="admin.php?key='. urlencode($adminkey) .'&action=emptydb">Empty the database</a></p>';
echo '
</ul>
';
-echo'</td></tr></table>';
+echo'</td></tr></tbody></table>';
?>
diff --git a/html/pages/admin/mplayers.php b/html/pages/admin/mplayers.php index 3754d99..c9b58a3 100755..100644 --- a/html/pages/admin/mplayers.php +++ b/html/pages/admin/mplayers.php @@ -26,7 +26,7 @@ $mplayer2 = $results['mplayer2']; $mp1name = small_query("SELECT name FROM uts_pinfo WHERE id = $mplayer1");
$mp2name = small_query("SELECT name FROM uts_pinfo WHERE id = $mplayer2");
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Merging '.$mp2name[name].' Into '.$mp1name[name].'</td>
</tr>
diff --git a/html/pages/admin/mservers.php b/html/pages/admin/mservers.php index b52a9d1..9e0bf6a 100755..100644 --- a/html/pages/admin/mservers.php +++ b/html/pages/admin/mservers.php @@ -24,7 +24,7 @@ $mserver2 = $results[mserver2]; $q_myserver1 = small_query("SELECT servername, serverip FROM uts_match WHERE id = $mserver1");
$q_myserver2 = small_query("SELECT servername, serverip FROM uts_match WHERE id = $mserver2");
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Merging '.$q_myserver2[servername].' ('.$q_myserver2[serverip].')<br>
Into '.$q_myserver1[servername].' ('.$q_myserver1[serverip].')</td>
diff --git a/html/pages/admin/pban.php b/html/pages/admin/pban.php index f421ef5..88aa6a4 100755..100644 --- a/html/pages/admin/pban.php +++ b/html/pages/admin/pban.php @@ -26,7 +26,7 @@ $results = adminselect($options); $pid = $results['pid'];
if ($ban) {
- echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+ echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Banning Player</td>
</tr>
@@ -45,7 +45,7 @@ if ($ban) { <td class="smheading" align="center" colspan="2">Player Banned - <a href="./admin.php?key='.$_REQUEST[key].'">Go Back To Admin Page</a></td>
</tr></table>';
} else {
- echo'<table border="0" cellpadding="1" cellspacing="2" width="600">
+ echo'<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Unbanning Player</td>
</tr>
diff --git a/html/pages/admin/pinfo.php b/html/pages/admin/pinfo.php index 7be13ae..3ae57f7 100755..100644 --- a/html/pages/admin/pinfo.php +++ b/html/pages/admin/pinfo.php @@ -25,7 +25,7 @@ echo '<br>'; $sql_ips = "SELECT INET_NTOA(p.ip) AS ip, COUNT(p.id) AS matches, MIN(m.time) AS first, MAX(m.time) AS last FROM uts_player AS p, uts_match AS m WHERE p.pid = ".$pid." AND m.id = p.matchid GROUP BY ip ORDER BY ip";
$q_ips = mysql_query($sql_ips) or die("Can't get ip's: " . mysql_error());
echo '
-<table class = "box" border="0" cellpadding="1" cellspacing="2" width="720">
+<table class = "box" border="0" cellpadding="0" cellspacing="0" width="720">
<tbody>
<tr>
<td class="heading" colspan="5" align="center">IP\'s used</td>
@@ -60,7 +60,7 @@ mysql_free_result($q_ips); $sql_fakes = "SELECT INET_NTOA(p1.ip) AS ip, pi.name FROM uts_player AS p1, uts_player AS p2, uts_pinfo AS pi WHERE p1.pid = ".$pid." AND p1.ip = p2.ip AND p1.pid <> p2.pid AND pi.id = p2.pid GROUP BY pi.name";
$q_fakes = mysql_query($sql_fakes) or die("Can't retrieve fake nicks: " . mysql_error());
echo '
-<table class = "box" border="0" cellpadding="1" cellspacing="2" width="480">
+<table class = "box" border="0" cellpadding="0" cellspacing="0" width="480">
<tbody>
<tr>
<td class="heading" colspan="2" align="center">Possible aliasses</td>
diff --git a/html/pages/admin/plm.php b/html/pages/admin/plm.php index 68992e2..1ea9f52 100755..100644 --- a/html/pages/admin/plm.php +++ b/html/pages/admin/plm.php @@ -43,13 +43,13 @@ if($debug) { }
// Print header & links
-echo '<P><B>Player merging tool</B></P>';
+echo '<P>Player merging tool</P>';
echo "<P><A href=admin.php?key=".$adminkey."&action=plm>Merge ip's</A> - <A href=admin.php?key=".$adminkey."&action=plm&onlyrange=true>Merge ip's, limited on range</A> - <A href=admin.php?key=".$adminkey."&action=plm&manignore=true>Manage ignored ip's</A> - <A href=admin.php?key=".$adminkey."&action=plm&manignore=true&onlyrange=true>Manage ignored ip's - only range</A><BR><BR></P>";
// CASE: MANAGE IGNORED IPS
if($_GET['manignore'] == "true") {
if($_POST['submit'] == "Remove from ignored list") {
- echo "<P><B>Stopped ignore ip's</B></P>";
+ echo "<P>Stopped ignore ip's</P>";
foreach($_POST as $key=>$value) {
if($key !='submit') {
$key = mysql_real_escape_string(str_replace("_",".",$key));
@@ -60,7 +60,7 @@ if($_GET['manignore'] == "true") { }
} else if($_GET['onlyrange'] == "true") {
if($_POST['submit'] == "Confirm") {
- echo '<P><B>Ignored ip\'s in range '.htmlentities($_POST['from']).' to '.htmlentities($_POST['to']).'</B><br><I>If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this</I></P>';
+ echo '<P>Ignored ip\'s in range '.htmlentities($_POST['from']).' to '.htmlentities($_POST['to']).'<br><I>If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this</I></P>';
echo '<FORM METHOD="POST" ACTION="admin.php?key='.$adminkey.'&action=plm&manignore=true" target="_blank">';
$from = mysql_real_escape_string($_POST['from']);
@@ -75,7 +75,7 @@ if($_GET['manignore'] == "true") { $trueplayerip = long2ip($playerip);
$pidcount = $r_pipcheck[pidcount];
- echo "<br><input type=checkbox name=$trueplayerip> <b>$trueplayerip</b>";
+ echo "<br><input type=checkbox name=$trueplayerip> $trueplayerip";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
@@ -90,13 +90,13 @@ if($_GET['manignore'] == "true") { echo "<BR><P>No ignored ip's found</P>";
}
} else {
- echo "<P><B>Ignored ip's in range: Enter range to filter on</B></P>";
+ echo "<P>Ignored ip's in range: Enter range to filter on</P>";
echo '<FORM METHOD="POST" ACTION="admin.php?key='.$adminkey.'&action=plm&manignore=true&onlyrange=true">';
echo '<BR>Ranging from <INPUT TYPE="TEXT" NAME="from" SIZE="20" VALUE="0.0.0.0"> to <INPUT TYPE="TEXT" NAME="to" SIZE="20" VALUE="255.255.255.255">';
echo '<BR><BR><INPUT TYPE="SUBMIT" NAME="submit" VALUE="Confirm"></FORM>';
}
} else {
- echo '<P><B>Ignored ip\'s</B><br><I>If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this</I></P>';
+ echo '<P>Ignored ip\'s<br><I>If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this</I></P>';
echo '<FORM METHOD="POST" ACTION="admin.php?key='.$adminkey.'&action=plm&manignore=true" target="_blank">';
$ignore_ips = mysql_query("SELECT ip FROM uts_ignoreips ORDER BY ip ASC");
@@ -107,7 +107,7 @@ if($_GET['manignore'] == "true") { $trueplayerip = long2ip($playerip);
$pidcount = $r_pipcheck[pidcount];
- echo "<br><input type=checkbox name=$trueplayerip> <b>$trueplayerip</b>";
+ echo "<br><input type=checkbox name=$trueplayerip> $trueplayerip";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
@@ -125,7 +125,7 @@ if($_GET['manignore'] == "true") { // CASE: IGNORE SUBMITTED IP'S
} else if($_POST['submit'] == "ignore") {
- echo "<P><B>Ignored ips</B></P>";
+ echo "<P>Ignored ips</P>";
foreach($_POST as $key=>$value) {
if($key !='submit') {
$key = mysql_real_escape_string(str_replace("_",".",$key));
@@ -138,7 +138,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW NICKS WITH GIVEN SHARED IP
} else if(substr($_POST['submit'],0,8) == "merge - ") {
- echo "<P><B>Merge nicks with shared ip</B></P>";
+ echo "<P>Merge nicks with shared ip</P>";
$ip = mysql_real_escape_string(str_replace("_",".",substr($_POST['submit'],8)));
$sql_pipcheck = "SELECT ip, COUNT(DISTINCT pid) AS pidcount FROM uts_player WHERE ip = INET_ATON('$ip') GROUP BY ip ORDER BY ip ASC";
@@ -152,7 +152,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ...
IF ($pidcount > 1 ) {
echo '<FORM METHOD="POST" ACTION="admin.php?key='.$adminkey.'&action=plm">';
- echo "<br><b>$trueplayerip</b>";
+ echo "<br>$trueplayerip";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
@@ -170,7 +170,7 @@ if($_GET['manignore'] == "true") { // CASE: MERGE NICKS WITH SHARED IP
} else if($_POST['submit'] == "Player merge") {
- echo "<P><B>Merging nicks with shared ip</B></P>";
+ echo "<P>Merging nicks with shared ip</P>";
$ip = mysql_real_escape_string(str_replace("_",".",$_POST['ip']));
$merge_to_pid = mysql_real_escape_string($_POST['merge_to']);
@@ -184,7 +184,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ...
IF ($pidcount > 1 ) {
- echo "<b>$trueplayerip</b><br><br>merge:<br>";
+ echo "$trueplayerip<br><br>merge:<br>";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT p.pid FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
@@ -210,7 +210,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW ALL IP'S LINKED TO MORE THAN ONE NICK - ONLY RANGE
} else if($_GET['onlyrange'] == "true") {
if($_POST['submit'] == "Confirm") {
- echo "<P><B>Showing all ip's in range ".htmlentities($_POST['from'])." to ".htmlentities($_POST['to'])."</B><br><I>If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this</I></P>";
+ echo "<P>Showing all ip's in range ".htmlentities($_POST['from'])." to ".htmlentities($_POST['to'])."<br><I>If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this</I></P>";
$from = mysql_real_escape_string($_POST['from']);
$to = mysql_real_escape_string($_POST['to']);
@@ -240,7 +240,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ...
IF ($pidcount > 1 ) {
- echo "<br><input type=checkbox name=$trueplayerip> <b>$trueplayerip</b>";
+ echo "<br><input type=checkbox name=$trueplayerip> $trueplayerip";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
@@ -260,7 +260,7 @@ if($_GET['manignore'] == "true") { }
} else {
- echo "<P><B>Showing all ip's in range - Enter range to filter on</B></P>";
+ echo "<P>Showing all ip's in range - Enter range to filter on</P>";
echo '<FORM METHOD="POST" ACTION="admin.php?key='.$adminkey.'&action=plm&onlyrange=true">';
echo '<BR>Ranging from <INPUT TYPE="TEXT" NAME="from" SIZE="20" VALUE="0.0.0.0"> to <INPUT TYPE="TEXT" NAME="to" SIZE="20" VALUE="255.255.255.255">';
echo '<BR><BR><INPUT TYPE="SUBMIT" NAME="submit" VALUE="Confirm"></FORM>';
@@ -268,7 +268,7 @@ if($_GET['manignore'] == "true") { // CASE: SHOW ALL IP'S LINKED TO MORE THAN ONE NICK
} else {
- echo "<P><B>IP's linked with more than one nick</B><br><I>If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this</I></P>";
+ echo "<P>IP's linked with more than one nick<br><I>If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this</I></P>";
$ignore_ips = mysql_query("SELECT ip FROM uts_ignoreips");
$extended_query = "";
@@ -299,7 +299,7 @@ if($_GET['manignore'] == "true") { // If there is more than one pid associated to an IP ...
IF ($pidcount > 1 ) {
- echo "<br><input type=checkbox name=$trueplayerip> <b>$trueplayerip</b>";
+ echo "<br><input type=checkbox name=$trueplayerip> $trueplayerip";
// Query for player names and ids associated to that ip during the cycle
$sql_pcheck = "SELECT pi.id, pi.name, pi.country, p.pid, p.ip FROM uts_pinfo AS pi, uts_player AS p WHERE pi.id = p.pid AND p.ip = $playerip GROUP BY pi.id, pi.name, p.pid, p.ip, pi.country";
diff --git a/html/pages/admin/recalcflags.php b/html/pages/admin/recalcflags.php index 073e648..2c88610 100755..100644 --- a/html/pages/admin/recalcflags.php +++ b/html/pages/admin/recalcflags.php @@ -27,7 +27,7 @@ include("includes/geoip.inc"); $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Recalculating Countryflags</td>
</tr>';
diff --git a/html/pages/admin/recalcranking.php b/html/pages/admin/recalcranking.php index 1cbc865..0065439 100755..100644 --- a/html/pages/admin/recalcranking.php +++ b/html/pages/admin/recalcranking.php @@ -22,7 +22,7 @@ if ($results['start'] != 'Yes') { @set_time_limit(0);
-echo'<br><table border="0" cellpadding="1" cellspacing="2" width="600">
+echo'<br><table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" colspan="2">Recalculating Rankings</td>
</tr>';
diff --git a/html/pages/admin/utdclog.php b/html/pages/admin/utdclog.php index b22bfd7..53ef2cd 100755..100644 --- a/html/pages/admin/utdclog.php +++ b/html/pages/admin/utdclog.php @@ -17,7 +17,7 @@ if (!empty($filename)) { if (empty($filename)) {
- echo'<br><table class = "box" border="0" cellpadding="1" cellspacing="2" width="600">
+ echo'<br><table class = "box" border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td class="smheading" align="center" width="100%" colspan="4">Available UTDC Logs:</td>
</tr>';
@@ -61,20 +61,20 @@ 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.'&action='.$action.'&filename='.urlencode($log).'&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.'&action='.$action.'&filename='.urlencode($log).'&del=1"><img src="assets/images/del.png" border="0" width="16" height="16" title="Delete" alt="Delete" /></a>';
echo '</td></tr>';
- }
+ }
}
}
if (!empty($filename)) {
if (!file_exists('logs/utdc/'. $filename) or !is_file('logs/utdc/'. $filename)) die('bla');
- echo'<br><table class = "box" border="0" cellpadding="1" cellspacing="2" width="600">
+ echo'<br><table class = "box" border="0" cellpadding="0" cellspacing="0" width="600">
<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.'&action='.$action.'&filename='.urlencode($filename).'&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.'&action='.$action.'&filename='.urlencode($filename).'&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.'&action='.$action.'&filename='.urlencode($file).'&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.'&action='.$action.'&filename='.urlencode($file).'&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/admin/utdcshot.php b/html/pages/admin/utdcshot.php index 24b21f7..24b21f7 100755..100644 --- a/html/pages/admin/utdcshot.php +++ b/html/pages/admin/utdcshot.php |