5 // Get session and API handles
6 require_once 'plc_session.php';
7 global $plc, $api, $adm;
10 $input = strtolower( $_GET['input'] );
11 $len = strlen($input);
16 // dont query the db on empty input
20 $nodes= $adm->GetNodes( array( "hostname" => $input ), array("hostname") );
22 foreach ( $nodes as $node ) {
23 $aResults[] = $node['hostname'];
28 header("Content-Type: text/xml");
30 echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>
32 for ($i=0;$i<count($aResults);$i++)
33 echo" <rs>".$aResults[$i]."</rs>";