X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fserver%2Fproxy.php;h=812584fdafb21607f586063866212f834a513391;hb=f1e595deaca76bd28257adb82916624ac59eb5b1;hp=453c9a4fab1dbd5da170c83451209bbdd7b33791;hpb=74314da11f37232e8a011d66e2d4561550a38e9e;p=plcapi.git diff --git a/demo/server/proxy.php b/demo/server/proxy.php index 453c9a4..812584f 100644 --- a/demo/server/proxy.php +++ b/demo/server/proxy.php @@ -5,12 +5,11 @@ * the originating server). * * @author Gaetano Giunta - * @copyright (C) 2006-2019 G. Giunta + * @copyright (C) 2006-2020 G. Giunta * @license code licensed under the BSD License: see file license.txt */ -include_once __DIR__ . "/../../src/Autoloader.php"; -PhpXmlRpc\Autoloader::register(); +require_once __DIR__ . "/_bootstrap.php"; /** * Forward an xmlrpc request to another server, and return to client the response received. @@ -58,8 +57,8 @@ function forward_request($req) // build call for remote server /// @todo find a way to forward client info (such as IP) to server, either - /// - as xml comments in the payload, or - /// - using std http header conventions, such as X-forwarded-for... + /// - as xml comments in the payload, or + /// - using std http header conventions, such as X-forwarded-for... $reqMethod = $encoder->decode($req->getParam(1)); $pars = $req->getParam(2); $req = new PhpXmlRpc\Request($reqMethod);