From 6f2300114e47443ac9ca235a896775fe6cc9e9d3 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Jan 2021 15:11:25 +0100 Subject: [PATCH] addeconomy --- api/economy.php | 127 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 api/economy.php diff --git a/api/economy.php b/api/economy.php new file mode 100644 index 0000000..7d8e2ef --- /dev/null +++ b/api/economy.php @@ -0,0 +1,127 @@ + array( + 'id' => "00000000-0000-0000-0000-000000000000", + 'description' => "some level")); + + $landUse = array( + 'upgrade' => False, + 'action' => "".SYSURL.""); + + $currency = array( + 'estimatedCost' => "200.00"); // convert_to_real($amount)); + + $membership = array( + 'upgrade' => False, + 'action' => "".SYSURL."", + 'levels' => $membership_levels); + + $response_xml = xmlrpc_encode(array( + 'success' => True, + 'currency' => $currency, + 'membership' => $membership, + 'landUse' => $landUse, + 'currency' => $currency, + 'confirm' => $confirmvalue)); + + header("Content-type: text/xml"); + print $response_xml; + } + else + { + header("Content-type: text/xml"); + $response_xml = xmlrpc_encode(array( + 'success' => False, + 'errorMessage' => "\n\nUnable to Authenticate\n\nClick URL for more info.", + 'errorURI' => "".SYSURL."")); + + print $response_xml; + } + + return ""; + } + + $request_xml = file_get_contents('php://input'); + xmlrpc_server_call_method($xmlrpc_server, $request_xml, ''); + xmlrpc_server_destroy($xmlrpc_server); + +?>