diff --git a/html/includes/hostbox-public.inc.php b/html/includes/hostbox-public.inc.php
index 78067eb4ab..633f8cfbd0 100644
--- a/html/includes/hostbox-public.inc.php
+++ b/html/includes/hostbox-public.inc.php
@@ -26,8 +26,7 @@ $type = strtolower($device['os']);
if ($device['os'] == "ios") { formatCiscoHardware($device, true); }
$device['os_text'] = $config['os'][$device['os']]['text'];
-echo('
-
|
' . $image . ' |
' . generate_device_link($device) . ' | '
@@ -39,7 +38,6 @@ echo('
');
if ($sensor_count) { echo('
'.$sensor_count); }
echo('');
echo(' ' . $device['hardware'] . ' ' . $device['features'] . ' | ');
-//echo(' ' . $device['os_text'] . ' ' . $device['version'] . ' | ');
echo(' ' . formatUptime($device['uptime'], 'short') . ' ');
if (get_dev_attrib($device,'override_sysLocation_bool')) { $device['location'] = get_dev_attrib($device,'override_sysLocation_string'); }
diff --git a/html/index.php b/html/index.php
index b302297755..c552e4ced4 100755
--- a/html/index.php
+++ b/html/index.php
@@ -206,7 +206,7 @@ if ($_SESSION['authenticated'])
} else {
// Not Authenticated. Show status page if enabled
- if ( $config['public_status'] )
+ if ( $config['public_status'] === true )
{
if (isset($vars['page']) && strstr("login", $vars['page']))
{
@@ -216,7 +216,7 @@ if ($_SESSION['authenticated'])
include("pages/public.inc.php");
echo '';
echo '';
- echo ' Logon';
+ echo ' Logon';
include ("pages/logon.inc.php");
echo ' ';
}
diff --git a/html/pages/public.inc.php b/html/pages/public.inc.php
index eb82fcd6c7..0dae8bd475 100644
--- a/html/pages/public.inc.php
+++ b/html/pages/public.inc.php
@@ -1,132 +1,62 @@
+
System Status';
-
-$query = "SELECT * FROM `devices` WHERE 1 ".$where." ORDER BY hostname";
-
-list($format, $subformat) = explode("_", $vars['format']);
-
-if($format == "graph")
-{
- $row = 1;
- foreach (dbFetchRows($query, $sql_param) as $device)
- {
- if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
-
- if (device_permitted($device['device_id']))
- {
- if (!$location_filter || ((get_dev_attrib($device,'override_sysLocation_bool') && get_dev_attrib($device,'override_sysLocation_string') == $location_filter)
- || $device['location'] == $location_filter))
- {
- $graph_type = "device_".$subformat;
-
- if ($_SESSION['widescreen']) { $width=270; } else { $width=315; }
-
- echo("\
- \
- ', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
- "
-
- ");
- }
- }
- }
-
-} else {
-
- echo('
-
- ');
- if ($subformat == "detail" || $subformat == "basic")
- {
- echo('
- |
- |
- Device |
- |
- Platform |
-
- Uptime/Location |
- ');
- }
-
- foreach (dbFetchRows($query, $sql_param) as $device)
- {
- if (!device_permitted($device['device_id']))
- {
- include("includes/hostbox-public.inc.php");
- }
- }
- echo(" ");
- echo(' ');
- echo(' ');
-}
+$query = "SELECT * FROM `devices` ORDER BY hostname";
?>
-
|