opensim-www

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 18  →  ?path2? @ 19
/lib/wasRemoteAdmin.php
@@ -184,5 +184,43 @@
$request->setBody($xml_load);
return $request->send()->getBody();
}
function admin_get_agents($region_name, $include_children) {
$request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST);
$serializer = new XML_Serializer($this->options);
$xml = array(
"methodName" => htmlspecialchars('admin_get_agents'),
"params" =>
array( "param" =>
array( "value" =>
array("struct" =>
array(
"member" =>
array(
"name" => 'password',
"value" => array(
"string" => htmlspecialchars($this->raPassword)
),
),
array(
"name" => 'region_name',
"value" => htmlspecialchars($region_name)
),
array(
"name" => 'include_children',
"value" => htmlspecialchars($include_children)
),
),
),
),
),
);
$serializer->serialize($xml);
$xml_load = $serializer->getSerializedData();
$request->setBody($xml_load);
return $request->send()->getBody();
}
}