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 $persons= $adm->GetPersons( array( "email" => $input ), array("email") );
21 if (count($persons)) {
22 foreach ( $persons as $person ) {
23 $aResults[] = $person['email'];
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>";