summaryrefslogtreecommitdiff
path: root/html/pages/admin/utdclog.php
diff options
context:
space:
mode:
Diffstat (limited to 'html/pages/admin/utdclog.php')
-rw-r--r--[-rwxr-xr-x]html/pages/admin/utdclog.php29
1 files changed, 15 insertions, 14 deletions
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.'&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>';
- }
+ }
}
}
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.'&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>';
}
}