git-svn-id: http://www.observium.org/svn/observer/trunk@501 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-11-03 20:03:26 +00:00
parent 5a6b6dcf3e
commit e55c2286f1
7 changed files with 14 additions and 16 deletions

View File

@@ -1,8 +1,9 @@
<?php
if($_GET['if']) { $interfaces = $_GET['if']; }
if($_GET['port']) { $interfaces = $_GET['port']; }
if($_GET['interfaces']) { $interfaces = $_GET['interfaces']; }
$i = 1;
foreach(explode(",", $interfaces) as $ifid) {
$query = mysql_query("SELECT `ifIndex`, `hostname` FROM `interfaces` AS I, devices as D WHERE I.interface_id = '" . $ifid . "' AND I.device_id = D.device_id");