mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
unify $os_group and $os_type into $config['os']
git-svn-id: http://www.observium.org/svn/observer/trunk@1264 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -17,7 +17,7 @@ $select[$section] = "selected";
|
||||
$device_query = mysql_query("SELECT * FROM `devices` WHERE `device_id` = '" . $_GET['id'] . "'");
|
||||
while($device = mysql_fetch_array($device_query)) {
|
||||
|
||||
if($os_groups[$device['os']]) {$device['os_group'] = $os_groups[$device['os']]; }
|
||||
if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; }
|
||||
|
||||
echo('<table cellpadding="15" cellspacing="0" class="devicetable" width="100%">');
|
||||
include("includes/device-header.inc.php");
|
||||
|
||||
@@ -8,7 +8,7 @@ while ($device = mysql_fetch_array($device_query))
|
||||
|
||||
echo('<div style="clear: both;">');
|
||||
|
||||
if ($os_groups[$device['os']]) { $os_group = $os_groups[$device['os']]; }
|
||||
if ($config['os'][$device['os']]['group']) { $os_group = $config['os'][$device['os']]['group']; }
|
||||
|
||||
if (is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['os'].".inc.php")) {
|
||||
/// OS Specific
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{
|
||||
echo("<option value='".$data['os']."'");
|
||||
if ($data['os'] == $_POST['os']) { echo(" selected"); }
|
||||
echo(">".$os_text[$data['os']]."</option>");
|
||||
echo(">".$config['os'][$data['os']]['text']."</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user