3 |
## $Id$ |
## $Id$ |
4 |
## -------------------------------------------------------------------------- |
## -------------------------------------------------------------------------- |
5 |
## $Log$ |
## $Log$ |
6 |
|
## Revision 1.3 2002/12/19 01:59:37 jonen |
7 |
|
## + minor changes: coment debug prints |
8 |
|
## |
9 |
## Revision 1.2 2002/12/05 21:45:31 joko |
## Revision 1.2 2002/12/05 21:45:31 joko |
10 |
## + debugging |
## + debugging |
11 |
## |
## |
43 |
|
|
44 |
function call($command, $data = "", $decode = 0) { |
function call($command, $data = "", $decode = 0) { |
45 |
|
|
46 |
//print "call: <hr>"; |
//print "call: $command<hr>"; |
47 |
|
|
48 |
// data |
// data |
49 |
$data_enc = XML_RPC_encode($data); |
$data_enc = XML_RPC_encode($data); |
56 |
$rpc->setDebug(0); |
$rpc->setDebug(0); |
57 |
if ( !$msg_response = $rpc->send($msg) ) { |
if ( !$msg_response = $rpc->send($msg) ) { |
58 |
// TODO: redirect this error elsewhere! |
// TODO: redirect this error elsewhere! |
59 |
//print "RPC-error!<br>"; |
print "RPC-error!<br>"; |
60 |
return; |
return; |
61 |
} |
} |
62 |
// message - response |
// message - response |