Cleanup graphs code

git-svn-id: http://www.observium.org/svn/observer/trunk@1898 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-17 10:57:51 +00:00
parent 834989df95
commit 6708b67694
17 changed files with 269 additions and 223 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
if($_GET['id'] && is_numeric($_GET['id'])) { $atm_vp_id = $_GET['id']; }
if ($_GET['id'] && is_numeric($_GET['id'])) { $atm_vp_id = $_GET['id']; }
$sql = "SELECT * FROM `juniAtmVp` as J, `ports` AS I, `devices` AS D";
$sql .= " WHERE J.juniAtmVp_id = '".$atm_vp_id."' AND I.interface_id = J.interface_id AND I.device_id = D.device_id";
@@ -9,7 +9,7 @@ $sql .= " WHERE J.juniAtmVp_id = '".$atm_vp_id."' AND I.interface_id = J.interfa
$query = mysql_query($sql);
$vp = mysql_fetch_array($query);
if($config['allow_unauth_graphs'] || port_permitted($vp['interface_id'])) {
if ($config['allow_unauth_graphs'] || port_permitted($vp['interface_id'])) {
$port = $vp;
$device = device_by_id_cache($port['device_id']);