mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix permissions on device_port_* graphs (woo, we now have some graph security!) and fix some bugs with graph naming
git-svn-id: http://www.observium.org/svn/observer/trunk@1596 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
<?
|
||||
|
||||
if(is_numeric($id)) {
|
||||
$port = get_port_by_id($id);
|
||||
if(is_numeric($_GET['id']) && interfacepermitted($_GET['id'])) {
|
||||
$port = get_port_by_id($_GET['id']);
|
||||
$device = device_by_id_cache($port['device_id']);
|
||||
|
||||
$title = generatedevicelink($device);
|
||||
$title .= " :: Port ".generateiflink($port);
|
||||
|
||||
$auth = TRUE;
|
||||
|
||||
}
|
||||
|
||||
$title = generatedevicelink($device);
|
||||
$title .= " :: Port ".generateiflink($port);
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user