| @@ 43-48 (lines=6) @@ | ||
| 40 | $err = "Unable to open comments database."; |
|
| 41 | } |
|
| 42 | // if we generated an error, create an error return response |
|
| 43 | if ($err) { |
|
| 44 | return new PhpXmlRpc\Response(0, PhpXmlRpc\PhpXmlRpc::$xmlrpcerruser, $err); |
|
| 45 | } else { |
|
| 46 | // otherwise, we create the right response |
|
| 47 | return new PhpXmlRpc\Response(new PhpXmlRpc\Value($count, "int")); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | $getComments_sig = array(array(Value::$xmlrpcArray, Value::$xmlrpcString)); |
|
| @@ 133-138 (lines=6) @@ | ||
| 130 | } |
|
| 131 | ||
| 132 | // if we generated an error, create an error return response |
|
| 133 | if ($err) { |
|
| 134 | return new PhpXmlRpc\Response(0, PhpXmlRpc\PhpXmlRpc::$xmlrpcerruser, $err); |
|
| 135 | } else { |
|
| 136 | // otherwise, we create the right response with the state name |
|
| 137 | return new PhpXmlRpc\Response(new Value($stateName)); |
|
| 138 | } |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| @@ 433-437 (lines=5) @@ | ||
| 430 | } |
|
| 431 | } |
|
| 432 | ||
| 433 | if ($err) { |
|
| 434 | return new PhpXmlRpc\Response(0, PhpXmlRpc\PhpXmlRpc::$xmlrpcerruser, $err); |
|
| 435 | } else { |
|
| 436 | return new PhpXmlRpc\Response(new Value(true, Value::$xmlrpcBoolean)); |
|
| 437 | } |
|
| 438 | } |
|
| 439 | ||
| 440 | $getallheaders_sig = array(array(Value::$xmlrpcStruct)); |
|