diff --git a/html/includes/hostbox-public.inc.php b/html/includes/hostbox-public.inc.php new file mode 100644 index 000000000..78067eb4a --- /dev/null +++ b/html/includes/hostbox-public.inc.php @@ -0,0 +1,50 @@ + --> + + + ' . $image . ' + ' . generate_device_link($device) . '' + ); + +echo(''); +if ($port_count) { echo(' '.$port_count); } +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'); } +echo(' ' . truncate($device['location'],32, '') . ''); + +echo(' '); + +?> diff --git a/html/index.php b/html/index.php index 2b90769c5..b30229775 100755 --- a/html/index.php +++ b/html/index.php @@ -212,7 +212,13 @@ if ($_SESSION['authenticated']) { include("pages/logon.inc.php"); } else { + echo '
'; include("pages/public.inc.php"); + echo '
'; + echo ''; } } else diff --git a/html/pages/public.inc.php b/html/pages/public.inc.php index ae70f8a9b..eb82fcd6c 100644 --- a/html/pages/public.inc.php +++ b/html/pages/public.inc.php @@ -1,3 +1,20 @@ + +

System Status

'; +echo '

System Status

'; $query = "SELECT * FROM `devices` WHERE 1 ".$where." ORDER BY hostname"; @@ -81,7 +98,7 @@ if($format == "graph") Device Platform - Operating System + Uptime/Location '); } @@ -90,7 +107,7 @@ if($format == "graph") { if (!device_permitted($device['device_id'])) { - include("includes/hostbox-basic.inc.php"); + include("includes/hostbox-public.inc.php"); } } echo(""); @@ -105,7 +122,6 @@ if($format == "graph")

' . (isset($config['footer']) ? $config['footer'] : '')); -echo('
Admins Logon Here. '); echo('
Powered by ' . $config['project_name_version'].'. '); echo( $config['project_name'].' is Free Software, released under the GNU GPLv3.
'); echo(' Copyright © 2006-2012 by Adam Armstrong. Copyright © 2013-'.date("Y").' by the '.$config['project_name'].' Contributors.');