mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
interface lister
git-svn-id: http://www.observium.org/svn/observer/trunk@361 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
include("../../config.php");
|
||||
include("../../includes/functions.php");
|
||||
include("../includes/authenticate.inc");
|
||||
if(!$_SESSION['authenticated']) { echo("unauthenticated"); exit; }
|
||||
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user