2008-11-05 13:57:44 +00:00
|
|
|
<?php
|
|
|
|
|
2009-03-20 13:27:21 +00:00
|
|
|
include("../../config.php");
|
|
|
|
include("../../includes/functions.php");
|
|
|
|
include("../includes/authenticate.inc");
|
2009-03-11 14:50:24 +00:00
|
|
|
if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
|
2008-11-05 13:57:44 +00:00
|
|
|
|
|
|
|
if(isset($_GET['device_id'])){
|
|
|
|
|
|
|
|
$interfaces = mysql_query("SELECT * FROM interfaces WHERE device_id = '".$_GET['device_id']."'");
|
|
|
|
while($interface = mysql_fetch_array($interfaces)) {
|
|
|
|
echo "obj.options[obj.options.length] = new Option('".$interface['ifDescr']." - ".$interface['ifAlias']."','".$interface['interface_id']."');\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|