$resultxml
EOD;
// Send it
$this->output($xml);
}
function call($methodname, $args)
{
if (!$this->hasMethod($methodname)) {
return new IXR_Error(-32601, 'server error. requested method '.$methodname.' does not exist.');
}
$method = $this->callbacks[$methodname];
// Perform the callback and send the response
if (count($args) == 1) {
// If only one parameter just send that instead of the whole array
$args = $args[0];
}
// Are we dealing with a function or a method?
if (is_string($method) && substr($method, 0, 5) == 'this:') {
// It's a class method - check it exists
$method = substr($method, 5);
if (!method_exists($this, $method)) {
return new IXR_Error(-32601, 'server error. requested class method "'.$method.'" does not exist.');
}
//Call the method
$result = $this->$method($args);
} else {
// It's a function - does it exist?
if (is_array($method)) {
if (!is_callable(array($method[0], $method[1]))) {
return new IXR_Error(-32601, 'server error. requested object method "'.$method[1].'" does not exist.');
}
} else if (!function_exists($method)) {
return new IXR_Error(-32601, 'server error. requested function "'.$method.'" does not exist.');
}
// Call the function
$result = call_user_func($method, $args);
}
return $result;
}
function error($error, $message = false)
{
// Accepts either an error object or an error code and message
if ($message && !is_object($error)) {
$error = new IXR_Error($error, $message);
}
$this->output($error->getXml());
}
function output($xml)
{
$charset = function_exists('get_option') ? get_option('blog_charset') : '';
if ($charset)
$xml = ''."\n".$xml;
else
$xml = ''."\n".$xml;
$length = strlen($xml);
header('Connection: close');
if ($charset)
header('Content-Type: text/xml; charset='.$charset);
else
header('Content-Type: text/xml');
header('Date: '.gmdate('r'));
echo $xml;
exit;
}
function hasMethod($method)
{
return in_array($method, array_keys($this->callbacks));
}
function setCapabilities()
{
// Initialises capabilities array
$this->capabilities = array(
'xmlrpc' => array(
'specUrl' => 'http://www.xmlrpc.com/spec',
'specVersion' => 1
),
'faults_interop' => array(
'specUrl' => 'http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php',
'specVersion' => 20010516
),
'system.multicall' => array(
'specUrl' => 'http://www.xmlrpc.com/discuss/msgReader$1208',
'specVersion' => 1
),
);
}
function getCapabilities($args)
{
return $this->capabilities;
}
function setCallbacks()
{
$this->callbacks['system.getCapabilities'] = 'this:getCapabilities';
$this->callbacks['system.listMethods'] = 'this:listMethods';
$this->callbacks['system.multicall'] = 'this:multiCall';
}
function listMethods($args)
{
// Returns a list of methods - uses array_reverse to ensure user defined
// methods are listed before server defined methods
return array_reverse(array_keys($this->callbacks));
}
function multiCall($methodcalls)
{
// See http://www.xmlrpc.com/discuss/msgReader$1208
$return = array();
foreach ($methodcalls as $call) {
$method = $call['methodName'];
$params = $call['params'];
if ($method == 'system.multicall') {
$result = new IXR_Error(-32600, 'Recursive calls to system.multicall are forbidden');
} else {
$result = $this->call($method, $params);
}
if (is_a($result, 'IXR_Error')) {
$return[] = array(
'faultCode' => $result->code,
'faultString' => $result->message
);
} else {
$return[] = array($result);
}
}
return $return;
}
}
error_log 0000644 00000066770 14732732037 0006511 0 ustar 00 [20-Jul-2022 19:52:16 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[20-Jul-2022 19:52:49 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[28-Aug-2022 10:11:30 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[28-Aug-2022 10:11:40 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[04-Oct-2022 09:02:59 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[04-Oct-2022 09:03:09 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[21-Nov-2022 05:01:41 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[21-Nov-2022 05:01:54 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[13-Nov-2023 12:01:43 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[13-Nov-2023 12:01:52 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[22-Nov-2023 13:00:44 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[22-Nov-2023 13:00:46 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[22-Nov-2023 20:15:32 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[22-Nov-2023 20:15:39 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[24-Nov-2023 06:05:13 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[24-Nov-2023 06:05:31 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[04-Jan-2024 11:27:03 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[04-Jan-2024 11:27:04 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[06-Jan-2024 12:53:01 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[06-Jan-2024 12:53:15 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[06-Jan-2024 18:17:09 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[06-Jan-2024 18:17:10 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[07-Jan-2024 01:01:27 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[07-Jan-2024 01:04:26 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[07-Jan-2024 08:55:54 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[07-Jan-2024 08:55:56 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[07-Jan-2024 10:22:39 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[07-Jan-2024 10:22:39 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[08-Jan-2024 04:46:43 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[08-Jan-2024 04:46:43 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[08-Jan-2024 21:44:58 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[08-Jan-2024 21:44:59 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[23-Jan-2024 05:52:30 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[23-Jan-2024 05:52:51 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[04-Feb-2024 02:51:08 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[04-Feb-2024 02:51:09 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[11-Feb-2024 14:24:33 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[11-Feb-2024 14:24:40 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[11-Feb-2024 18:17:04 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[11-Feb-2024 18:17:04 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[17-Feb-2024 14:53:06 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[17-Feb-2024 14:53:12 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[12-Mar-2024 16:27:30 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[12-Mar-2024 16:27:40 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[08-Apr-2024 06:32:25 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[08-Apr-2024 06:32:26 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[16-Apr-2024 15:07:26 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[16-Apr-2024 15:07:33 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[10-May-2024 09:26:53 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[10-May-2024 09:27:03 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[10-May-2024 21:02:39 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[10-May-2024 21:02:40 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[30-May-2024 05:53:11 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[30-May-2024 05:53:24 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[11-Jun-2024 17:04:46 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[11-Jun-2024 17:04:49 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[22-Jun-2024 19:22:53 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[22-Jun-2024 19:22:54 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[27-Jun-2024 11:56:16 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[27-Jun-2024 11:56:44 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[17-Jul-2024 01:39:08 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[17-Jul-2024 01:39:09 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[17-Jul-2024 01:52:44 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[17-Jul-2024 01:52:45 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[20-Jul-2024 23:59:10 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[20-Jul-2024 23:59:14 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[21-Jul-2024 01:30:48 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[21-Jul-2024 01:31:01 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[26-Jul-2024 10:48:12 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[26-Jul-2024 10:48:14 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[30-Jul-2024 20:45:40 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[30-Jul-2024 20:45:43 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[07-Aug-2024 12:46:03 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[07-Aug-2024 12:46:17 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[11-Sep-2024 19:30:20 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[11-Sep-2024 19:30:21 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[11-Sep-2024 19:48:09 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[11-Sep-2024 19:48:11 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[28-Sep-2024 16:59:23 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[28-Sep-2024 16:59:23 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[26-Oct-2024 17:42:44 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[26-Oct-2024 17:42:45 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[06-Nov-2024 22:07:19 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[06-Nov-2024 22:07:20 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[09-Nov-2024 01:22:24 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[09-Nov-2024 01:22:25 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[25-Dec-2024 06:17:15 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[25-Dec-2024 06:17:19 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[25-Dec-2024 10:11:59 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[25-Dec-2024 10:12:03 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
[25-Dec-2024 12:27:31 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Server' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php:9
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-introspectionserver.php on line 9
[25-Dec-2024 12:27:35 UTC] PHP Fatal error: Uncaught Error: Class 'IXR_Client' not found in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php:8
Stack trace:
#0 {main}
thrown in /home/supercleanprojan/public_html/wp-includes/IXR/class-IXR-clientmulticall.php on line 8
class-IXR-client.php 0000644 00000011263 14732732037 0010311 0 ustar 00 server = $bits['host'];
$this->port = isset($bits['port']) ? $bits['port'] : 80;
$this->path = isset($bits['path']) ? $bits['path'] : '/';
// Make absolutely sure we have a path
if (!$this->path) {
$this->path = '/';
}
if ( ! empty( $bits['query'] ) ) {
$this->path .= '?' . $bits['query'];
}
} else {
$this->server = $server;
$this->path = $path;
$this->port = $port;
}
$this->useragent = 'The Incutio XML-RPC PHP Library';
$this->timeout = $timeout;
}
/**
* PHP4 constructor.
*/
public function IXR_Client( $server, $path = false, $port = 80, $timeout = 15 ) {
self::__construct( $server, $path, $port, $timeout );
}
/**
* @since 1.5.0
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
* to the function signature.
*
* @return bool
*/
function query( ...$args )
{
$method = array_shift($args);
$request = new IXR_Request($method, $args);
$length = $request->getLength();
$xml = $request->getXml();
$r = "\r\n";
$request = "POST {$this->path} HTTP/1.0$r";
// Merged from WP #8145 - allow custom headers
$this->headers['Host'] = $this->server;
$this->headers['Content-Type'] = 'text/xml';
$this->headers['User-Agent'] = $this->useragent;
$this->headers['Content-Length']= $length;
foreach( $this->headers as $header => $value ) {
$request .= "{$header}: {$value}{$r}";
}
$request .= $r;
$request .= $xml;
// Now send the request
if ($this->debug) {
echo ''.htmlspecialchars($request)."\n
\n\n";
}
if ($this->timeout) {
$fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
} else {
$fp = @fsockopen($this->server, $this->port, $errno, $errstr);
}
if (!$fp) {
$this->error = new IXR_Error(-32300, 'transport error - could not open socket');
return false;
}
fputs($fp, $request);
$contents = '';
$debugContents = '';
$gotFirstLine = false;
$gettingHeaders = true;
while (!feof($fp)) {
$line = fgets($fp, 4096);
if (!$gotFirstLine) {
// Check line for '200'
if (strstr($line, '200') === false) {
$this->error = new IXR_Error(-32300, 'transport error - HTTP status code was not 200');
return false;
}
$gotFirstLine = true;
}
if (trim($line) == '') {
$gettingHeaders = false;
}
if (!$gettingHeaders) {
// merged from WP #12559 - remove trim
$contents .= $line;
}
if ($this->debug) {
$debugContents .= $line;
}
}
if ($this->debug) {
echo ''.htmlspecialchars($debugContents)."\n
\n\n";
}
// Now parse what we've got back
$this->message = new IXR_Message($contents);
if (!$this->message->parse()) {
// XML error
$this->error = new IXR_Error(-32700, 'parse error. not well formed');
return false;
}
// Is the message a fault?
if ($this->message->messageType == 'fault') {
$this->error = new IXR_Error($this->message->faultCode, $this->message->faultString);
return false;
}
// Message must be OK
return true;
}
function getResponse()
{
// methodResponses can only have one param - return that
return $this->message->params[0];
}
function isError()
{
return (is_object($this->error));
}
function getErrorCode()
{
return $this->error->code;
}
function getErrorMessage()
{
return $this->error->message;
}
}
class-IXR-introspectionserver.php 0000644 00000012313 14732732037 0013157 0 ustar 00 setCallbacks();
$this->setCapabilities();
$this->capabilities['introspection'] = array(
'specUrl' => 'http://xmlrpc.usefulinc.com/doc/reserved.html',
'specVersion' => 1
);
$this->addCallback(
'system.methodSignature',
'this:methodSignature',
array('array', 'string'),
'Returns an array describing the return type and required parameters of a method'
);
$this->addCallback(
'system.getCapabilities',
'this:getCapabilities',
array('struct'),
'Returns a struct describing the XML-RPC specifications supported by this server'
);
$this->addCallback(
'system.listMethods',
'this:listMethods',
array('array'),
'Returns an array of available methods on this server'
);
$this->addCallback(
'system.methodHelp',
'this:methodHelp',
array('string', 'string'),
'Returns a documentation string for the specified method'
);
}
/**
* PHP4 constructor.
*/
public function IXR_IntrospectionServer() {
self::__construct();
}
function addCallback($method, $callback, $args, $help)
{
$this->callbacks[$method] = $callback;
$this->signatures[$method] = $args;
$this->help[$method] = $help;
}
function call($methodname, $args)
{
// Make sure it's in an array
if ($args && !is_array($args)) {
$args = array($args);
}
// Over-rides default call method, adds signature check
if (!$this->hasMethod($methodname)) {
return new IXR_Error(-32601, 'server error. requested method "'.$this->message->methodName.'" not specified.');
}
$method = $this->callbacks[$methodname];
$signature = $this->signatures[$methodname];
$returnType = array_shift($signature);
// Check the number of arguments
if (count($args) != count($signature)) {
return new IXR_Error(-32602, 'server error. wrong number of method parameters');
}
// Check the argument types
$ok = true;
$argsbackup = $args;
for ($i = 0, $j = count($args); $i < $j; $i++) {
$arg = array_shift($args);
$type = array_shift($signature);
switch ($type) {
case 'int':
case 'i4':
if (is_array($arg) || !is_int($arg)) {
$ok = false;
}
break;
case 'base64':
case 'string':
if (!is_string($arg)) {
$ok = false;
}
break;
case 'boolean':
if ($arg !== false && $arg !== true) {
$ok = false;
}
break;
case 'float':
case 'double':
if (!is_float($arg)) {
$ok = false;
}
break;
case 'date':
case 'dateTime.iso8601':
if (!is_a($arg, 'IXR_Date')) {
$ok = false;
}
break;
}
if (!$ok) {
return new IXR_Error(-32602, 'server error. invalid method parameters');
}
}
// It passed the test - run the "real" method call
return parent::call($methodname, $argsbackup);
}
function methodSignature($method)
{
if (!$this->hasMethod($method)) {
return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.');
}
// We should be returning an array of types
$types = $this->signatures[$method];
$return = array();
foreach ($types as $type) {
switch ($type) {
case 'string':
$return[] = 'string';
break;
case 'int':
case 'i4':
$return[] = 42;
break;
case 'double':
$return[] = 3.1415;
break;
case 'dateTime.iso8601':
$return[] = new IXR_Date(time());
break;
case 'boolean':
$return[] = true;
break;
case 'base64':
$return[] = new IXR_Base64('base64');
break;
case 'array':
$return[] = array('array');
break;
case 'struct':
$return[] = array('struct' => 'struct');
break;
}
}
return $return;
}
function methodHelp($method)
{
return $this->help[$method];
}
}