| /dokuwiki/inc/Remote/ |
| H A D | XmlRpcServer.php | 9 use IXR\Server\Server; alias 14 class XmlRpcServer extends Server 19 * Constructor. Register methods and run Server 33 throw new ServerException("XML-RPC server not enabled.", -32605); 38 [$contentType] = explode(';', $INPUT->server->str('CONTENT_TYPE'), 2); // ignore charset 41 throw new ServerException('XML-RPC server accepts XML requests only.', -32606); 58 return new Error(-32603, "server error. not authorized to call method $methodname"); 61 return new Error(-32604, "server error. forbidden to call the method $methodname");
|
| H A D | JsonRpcServer.php | 37 throw new RemoteException("JSON-RPC server not enabled.", -32605); 42 if ($INPUT->server->str('REQUEST_METHOD') !== 'POST') { 45 throw new RemoteException("JSON-RPC server only accepts POST requests.", -32606); 47 [$contentType] = explode(';', $INPUT->server->str('CONTENT_TYPE'), 2); // ignore charset 51 … throw new RemoteException("JSON-RPC server only accepts application/json requests.", -32606); 65 throw new RemoteException("JSON-RPC server only accepts valid JSON.", -32700); 109 $method = $INPUT->server->str('PATH_INFO'); 180 … throw new RemoteException("server error. not authorized to call method $methodname", -32603); 183 … throw new RemoteException("server error. forbidden to call the method $methodname", -32604);
|
| /dokuwiki/inc/ |
| H A D | deprecated.php | 20 … public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null) argument 23 parent::__construct($server, $path, $port, $timeout, $timeout_io); 35 public function __construct($server, $path = false, $port = 80) argument 38 parent::__construct($server, $path, $port); 42 * @deprecated since 2021-11-11 use \IXR\Server\Server instead! 44 class IXR_Server extends \IXR\Server\Server 52 DebugHelper::dbgDeprecatedFunction(IXR\Server\Server::class); 57 * @deprecated since 2021-11-11 use \IXR\Server\IntrospectionServer instead! 59 class IXR_IntrospectionServer extends \IXR\Server\IntrospectionServer 67 DebugHelper::dbgDeprecatedFunction(IXR\Server\IntrospectionServer::class);
|
| H A D | Ip.php | 136 * Given the IP address of a proxy server, determine whether it is 137 * a known and trusted server. 184 $forwardedFor = $INPUT->server->str('HTTP_X_FORWARDED_FOR'); 191 $remoteAddr = $INPUT->server->str('REMOTE_ADDR'); 227 * is being added by the web server, otherwise it may be spoofed by the client. 260 if (!empty($conf['realip']) && $INPUT->server->str('HTTP_X_REAL_IP')) { 261 $ips[] = $INPUT->server->str('HTTP_X_REAL_IP'); 268 $ips[] = $INPUT->server->str('REMOTE_ADDR'); 285 * Get the host name of the server. 294 * @return string Returns the host name of the server. [all …]
|
| /dokuwiki/_test/tests/inc/ |
| H A D | init_fullpath.test.php | 69 '\\\\server\\share/foo/bar/baz' => '\\\\server\\share/foo/bar/baz', 70 '\\\\server\\share/foo//bar/baz' => '\\\\server\\share/foo/bar/baz', 71 '\\\\server\\share/foo/../bar/baz' => '\\\\server\\share/bar/baz', 72 '\\\\server\\share/foo/./bar/baz' => '\\\\server\\share/foo/bar/baz', 73 '\\\\server\\share/foo/bar/..' => '\\\\server\\share/foo', 74 '\\\\server\\share/foo/bar/../../../baz' => '\\\\server\\share/baz',
|
| H A D | httpclient_http.test.php | 10 protected $server = 'http://httpbingo.org'; variable in httpclient_http_test 18 $data = $http->get($this->server . '/get?foo=bar'); 35 $data = $http->dget($this->server . '/get', ['foo' => 'bar']); 52 $data = $http->get($this->server . '/gzip'); 69 $data = $http->post($this->server . '/post', ['foo' => 'bar']); 86 $data = $http->get($this->server . '/redirect/3'); 103 $data = $http->get($this->server . '/relative-redirect/3'); 120 $data = $http->get($this->server . '/redirect/5'); 134 $http->get($this->server . '/cookies/set?foo=bar'); 139 $data = $http->get($this->server . '/cookies'); [all …]
|
| H A D | IpTest.php | 293 $INPUT->server->set('HTTP_X_FORWARDED_FOR', $header); 294 $INPUT->server->set('REMOTE_ADDR', $remoteAddr); 312 // Running behind an SSL proxy, HTTP between server and proxy 317 // Running behind an SSL proxy, HTTP between server and proxy 322 // Running behind a plain HTTP proxy, HTTP between server and proxy 326 // Running behind an SSL proxy, HTTP between server and proxy 330 // Not running behind a proxy, HTTPS server 334 // Not running behind a proxy, plain HTTP server 338 // Not running behind a proxy, plain HTTP server 342 // Running behind an SSL proxy, SSL between proxy and HTTP server [all …]
|
| /dokuwiki/_test/tests/Remote/ |
| H A D | JsonRpcServerTest.php | 13 protected $server; variable in dokuwiki\\test\\Remote\\JsonRpcServerTest 24 $this->server = new JsonRpcServer(); 38 $response = json_encode($this->server->serve($positional)['result']); 41 $response = json_encode($this->server->serve($named)['result']); 55 $response = json_encode($this->server->serve($positional)['result']); 58 $response = json_encode($this->server->serve($named)['result']); 74 $response = json_encode($this->server->serve('[]')['result']);
|
| H A D | XmlRpcServerTest.php | 10 protected $server; variable in dokuwiki\\test\\Remote\\XmlRpcServerTest 21 $this->server = new XmlRpcServer(true); 66 $this->server->serve($request); 67 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output)); 106 $this->server->serve($request); 107 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output)); 144 $this->server->serve($request); 145 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
|
| /dokuwiki/vendor/kissifrot/php-ixr/src/Server/ |
| H A D | ClassServer.php | 2 namespace IXR\Server; 7 * Extension of the {@link Server} class to easily wrap objects. 9 * Class is designed to extend the existing XML-RPC server to allow the 11 * XML-RPC server. 20 class ClassServer extends Server 60 … return new Error(-32601, 'server error. requested method ' . $methodname . ' does not exist.'); 82 …return new Error(-32601, 'server error. requested class method "' . $method . '" does not exist.'); 90 … return new Error(-32601, 'server error. requested function "' . $method . '" does not exist.');
|
| H A D | IntrospectionServer.php | 2 namespace IXR\Server; 14 class IntrospectionServer extends Server 38 'Returns a struct describing the XML-RPC specifications supported by this server' 44 'Returns an array of available methods on this server' 71 … 'server error. requested method "' . $this->message->methodName . '" not specified.'); 79 return new Error(-32602, 'server error. wrong number of method parameters'); 120 return new Error(-32602, 'server error. invalid method parameters'); 130 … return new Error(-32601, 'server error. requested method "' . $method . '" not specified.');
|
| H A D | Server.php | 3 namespace IXR\Server; 11 class Server class 40 throw new ServerException('XML-RPC server accepts POST requests only.'); 50 …$this->error(-32600, 'server error. invalid xml-rpc. not conforming to spec. Request must be a met… 83 … return new Error(-32601, 'server error. requested method ' . $methodname . ' does not exist.'); 104 … return new Error(-32601, "server error. requested callable '{$method}' does not exist."); 169 // methods are listed before server defined methods
|
| /dokuwiki/lib/exe/ |
| H A D | jsonrpc.php | 12 $server = new JsonRpcServer(); variable 14 $result = $server->serve(); 16 $result = $server->returnError($e);
|
| H A D | xmlrpc.php | 14 $server = new XmlRpcServer(true); variable 16 $server->serve(); 18 $server->error($e->getCode() ?: 1, $e->getMessage());
|
| H A D | openapi.php | 32 hide-server-selection="true" 73 if ($INPUT->server->has('REMOTE_USER')) { 74 …echo 'You are currently logged in as <strong>' . hsc($INPUT->server->str('REMOTE_USER')) . '</stro…
|
| /dokuwiki/_test/tests/test/ |
| H A D | globals.test.php | 20 … $self->assertTrue($_SERVER['testvar'], 'Server variable not set correctly: testvar'); 21 …$self->assertEquals('172.17.18.19', $_SERVER['REMOTE_ADDR'], 'Server variable not set correctly: R… 41 … $self->assertFalse($_SERVER['testvar'], 'Server variable not set correctly: testvar'); 42 …$self->assertEquals('172.17.18.19', $_SERVER['REMOTE_ADDR'], 'Server variable not set correctly: R…
|
| /dokuwiki/vendor/kissifrot/php-ixr/src/Client/ |
| H A D | Client.php | 17 protected $server; variable in IXR\\Client\\Client 38 … public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null) argument 42 $bits = parse_url($server); 43 $this->server = $bits['host']; 56 $this->server = $server; 76 $this->headers['Host'] = $this->server; 95 $fp = fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); 101 $fp = fsockopen($this->server, $this->port, $errno, $errstr);
|
| H A D | ClientMulticall.php | 14 public function __construct($server, $path = false, $port = 80) argument 16 parent::__construct($server, $path, $port);
|
| H A D | ClientSSL.php | 9 * Client for communicating with a XML-RPC Server over HTTPS. 52 * @param string $server URL of the Server to connect to 55 …public function __construct($server, $path = false, $port = 443, $timeout = false, $timeout_io = n… argument 57 parent::__construct($server, $path, $port, $timeout, $timeout_io); 68 * Set the client side certificates to communicate with the server. 125 * Set the query to send to the XML-RPC Server 142 $curl = curl_init('https://' . $this->server . $this->path);
|
| /dokuwiki/inc/Remote/IXR/ |
| H A D | Client.php | 24 … public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null) argument 26 parent::__construct($server, $path, $port, $timeout, $timeout_io); 29 $this->posturl = $server; 31 $this->posturl = 'http://' . $server . ':' . $port . $path;
|
| /dokuwiki/ |
| H A D | feed.php | 40 $INPUT->server->str('REMOTE_USER'), 41 $INPUT->server->str('HTTP_HOST'), 42 $INPUT->server->str('SERVER_PORT')
|
| /dokuwiki/lib/plugins/authldap/ |
| H A D | auth.php | 52 * to the LDAP server 81 ['user' => $user, 'server' => $this->getConf('server')] 87 ['user' => $user, 'server' => $this->getConf('server')] 192 $info['server'] = $this->getConf('server'); 193 $this->debug('LDAP Server: ' . hsc($info['server']), 0, __LINE__, __FILE__); 538 * Opens a connection to the configured LDAP server and sets the wanted 555 $servers = explode(',', $this->getConf('server')); 556 foreach ($servers as $server) { 557 $server = trim($server); 558 if (str_starts_with($server, 'ldap://') || str_starts_with($server, 'ldaps://')) { [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Exception/ |
| H A D | TimeoutException.php | 6 * Indicates a timeout awaiting server response
|
| /dokuwiki/inc/Cache/ |
| H A D | CacheParser.php | 31 …parent::__construct($file . $INPUT->server->str('HTTP_HOST') . $INPUT->server->str('SERVER_PORT'),…
|
| /dokuwiki/_test/ |
| H A D | proxy.conf.php.dist | 3 * This configures the access to a proxy server for HTTP related proxy tests.
|