usr local bin php --no-php-ini include lib xmlrpc inc server_key E4oxF

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/local/bin/php --no-php-ini
<?
include('lib/xmlrpc.inc');
$server_key = "E4oxF5R7h6zr1bcYZXkd3KlCTmiD0GefInNjQaHJpAvts9gUV827OPywWLqSBuMOcIEB4E9QEy3AK8hYbHFxXQOVlRvw2C3gN3F5";
$f=new xmlrpcmsg('cluser.createdomain',
array(
new xmlrpcval( md5($server_key) , "string"),
new xmlrpcval("test.ru", "string"),
new xmlrpcval("domain", "string"),
new xmlrpcval("uranus.bsys-net.ru", "string"),
new xmlrpcval("8w4232", "string"),
new xmlrpcval("daemon279", "string"),
new xmlrpcval("homedir", "string"),
)
);
$c=new xmlrpc_client("/xmlrpc.php", "billing.bsys.ru", 80);
$c->setDebug(3);
$r=&$c->send($f);
var_dump($r);
if ($r->errno == 0) {
print ("Operation successful!");
} else {
print($r->errstr);
}
?>