opensim-www – Diff between revs 11 and 12

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 11 Rev 12
Line 34... Line 34...
34   34  
Line 35... Line 35...
35 class wasRemoteAdmin { 35 class wasRemoteAdmin {
36   36  
37 var $url; 37 var $url;
Line 38... Line 38...
38 var $pwd; 38 var $pwd;
39 var $options; 39 var $options;
40   40  
41 function wasRemoteAdmin($url,$pwd) { 41 function wasRemoteAdmin($url,$pwd) {
Line 52... Line 52...
52 "defaultTagName" => "member", 52 "defaultTagName" => "member",
53 "mode" => "simplexml" 53 "mode" => "simplexml"
54 ); 54 );
55 } 55 }
Line 56... Line 56...
56   56  
57 function admin_console_command($cmd) { 57 function admin_console_command($console_command) {
58 $request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST); 58 $request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST);
59 $serializer = new XML_Serializer($options); 59 $serializer = new XML_Serializer($this->options);
60 $xml = array( 60 $xml = array(
61 "methodName" => htmlspecialchars('admin_console_command'), 61 "methodName" => htmlspecialchars('admin_console_command'),
62 "params" => 62 "params" =>
63 array( "param" => 63 array( "param" =>
Line 72... Line 72...
72 ), 72 ),
73 ), 73 ),
74 array( 74 array(
75 "name" => 'command', 75 "name" => 'command',
76 "value" => array( 76 "value" => array(
77 "string" => htmlspecialchars($cmd) 77 "string" => htmlspecialchars($console_command)
78 ) 78 )
79 ) 79 )
80 ), 80 ),
81 ), 81 ),
82 ), 82 ),
Line 90... Line 90...
90 } 90 }
Line 91... Line 91...
91   91  
92 function admin_authenticate_user($firstname, $lastname, $password, $tokentime) { 92 function admin_authenticate_user($firstname, $lastname, $password, $tokentime) {
Line 93... Line 93...
93 $request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST); 93 $request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST);
94 94
95 $serializer = new XML_Serializer($options); 95 $serializer = new XML_Serializer($this->options);
96 $xml = array( 96 $xml = array(
97 "methodName" => htmlspecialchars('admin_authenticate_user'), 97 "methodName" => htmlspecialchars('admin_authenticate_user'),
98 "params" => 98 "params" =>