mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
restructure/reindent/htmlfix html pages, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
|
||||
if($_SESSION['userlevel'] == '10') {
|
||||
if ($_SESSION['userlevel'] == '10')
|
||||
{
|
||||
$query = "SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250";
|
||||
$data = mysql_query($query);
|
||||
|
||||
echo("<table cellspacing=0 cellpadding=1 width=100%>");
|
||||
|
||||
$data = mysql_query($query);
|
||||
while ($entry = mysql_fetch_array($data))
|
||||
{
|
||||
if ($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
||||
|
||||
|
||||
echo("<table cellspacing=0 cellpadding=1 width=100%>");
|
||||
|
||||
while($entry = mysql_fetch_array($data)) {
|
||||
|
||||
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
||||
|
||||
echo("<tr style=\"background-color: $bg\">
|
||||
echo("<tr style=\"background-color: $bg\">
|
||||
<td class=syslog width=160>
|
||||
" . $entry['datetime'] . "
|
||||
</td>
|
||||
@@ -28,16 +26,9 @@ while($entry = mysql_fetch_array($data)) {
|
||||
</td>
|
||||
<td></td>
|
||||
");
|
||||
}
|
||||
|
||||
|
||||
echo("</table>");
|
||||
}
|
||||
|
||||
echo("</table>");
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user