2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$device_query = mysql_query("select * from devices WHERE `device_id` = '$_GET[id]'");
|
2010-01-08 00:01:26 +00:00
|
|
|
while ($device = mysql_fetch_array($device_query))
|
|
|
|
{
|
|
|
|
$hostname = $device[hostname];
|
|
|
|
$bg="#ffffff";
|
|
|
|
|
|
|
|
echo('<div style="clear: both;">');
|
|
|
|
|
|
|
|
if ($os_groups[$device['os']]) { $os_group = $os_groups[$device['os']]; }
|
|
|
|
|
|
|
|
if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) {
|
|
|
|
/// OS Specific
|
|
|
|
include($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php");
|
|
|
|
} elseif ($os_group && is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php")) {
|
|
|
|
/// OS Group Specific
|
|
|
|
include($config['install_dir'] . "/html/pages/device/graphs/os-".$os_group.".inc.php");
|
|
|
|
} else {
|
|
|
|
echo("No graph definitions found for OS " . $device['os'] . "!");
|
|
|
|
}
|
|
|
|
|
2007-04-04 10:15:07 +00:00
|
|
|
echo("</div>");
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|