",implode(' ', $errors), "

"; // exit; //} //$groups = array(); //$jdata = array(); //foreach($xml->children() as $response) foreach($response->children() as $data) { //all the groups are stored into $groups // array_push($groups, $data); //} $xml = docmd("lsdef","",array("-t", "node", "-w", "nodetype=~osi")); if(getXmlErrors($xml,$errors)) { echo "

", implode(' ', $errors), "

"; exit; } $host = system("hostname|cut -f 1 -d \".\""); //print_r($groups); //TODO: //rebuild the jsTree //echo json_encode($jdata); echo <<