mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
add click to zoom to soem graphs, and new per-graphtype auth.inc.php to authenticate graphs and click-to-zoom pages.
git-svn-id: http://www.observium.org/svn/observer/trunk@1473 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -89,6 +89,19 @@ function device_array($device_id)
|
||||
return $device;
|
||||
}
|
||||
|
||||
function get_port_by_id($port_id)
|
||||
{
|
||||
if(is_numeric($port_id)) {
|
||||
$port = mysql_fetch_assoc(mysql_query("SELECT * FROM `ports` WHERE `interface_id` = '".$port_id."'"));
|
||||
}
|
||||
if(is_array($port)){
|
||||
return $port;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function get_device_id_by_interface_id($interface_id) {
|
||||
if(is_numeric($interface_id)) {
|
||||
$device_id = mysql_result(mysql_query("SELECT `device_id` FROM `ports` WHERE `interface_id` = '".$interface_id."'"),0);
|
||||
|
||||
Reference in New Issue
Block a user