mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
accesspoint support (probably) from ethan sommer (#50)
git-svn-id: http://www.observium.org/svn/observer/trunk@3223 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,6 +6,7 @@ if ($vars['tab'] == "port" && is_numeric($vars['device']) && port_permitted($var
|
||||
$permit_ports = 1;
|
||||
}
|
||||
|
||||
|
||||
if (device_permitted($vars['device']) || $check_device == $vars['device'])
|
||||
{
|
||||
$selected['iface'] = "selected";
|
||||
@@ -118,6 +119,15 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
|
||||
</li>');
|
||||
}
|
||||
|
||||
if (@dbFetchCell("SELECT COUNT(accesspoint_id) FROM accesspoint WHERE device_id = '" . $device['device_id'] . "'") > '0')
|
||||
{
|
||||
echo('<li class="' . $select['accesspoints'] . '">
|
||||
<a href="'.generate_device_url($device, array('tab' => 'accesspoints')). '">
|
||||
<img src="images/icons/wireless.png" align="absmiddle" border="0" /> Access Points
|
||||
</a>
|
||||
</li>');
|
||||
}
|
||||
|
||||
if (isset($config['smokeping']['dir']))
|
||||
{
|
||||
$smokeping_files = array();
|
||||
|
@@ -8,4 +8,4 @@ if (is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/wificlients-radio1
|
||||
include("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user