mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@889 61d68cd4-352d-0410-923a-c4978735b2b8
17 lines
530 B
PHP
Executable File
17 lines
530 B
PHP
Executable File
<?php
|
|
|
|
include("../../config.php");
|
|
include("../../includes/functions.php");
|
|
include("../includes/authenticate.inc");
|
|
if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
|
|
|
|
if(isset($_GET['device_id'])){
|
|
|
|
$ports = mysql_query("SELECT * FROM ports WHERE device_id = '".$_GET['device_id']."'");
|
|
while($interface = mysql_fetch_array($ports)) {
|
|
echo "obj.options[obj.options.length] = new Option('".$interface['ifDescr']." - ".$interface['ifAlias']."','".$interface['interface_id']."');\n";
|
|
}
|
|
}
|
|
|
|
?>
|