Home
last modified time | relevance | path

Searched +full:server +full:- (Results 1 – 25 of 195) sorted by relevance

12345678

/dokuwiki/inc/Remote/
H A DXmlRpcServer.php9 use IXR\Server\Server; alias
14 class XmlRpcServer extends Server
19 * Constructor. Register methods and run Server
23 $this->remote = new Api();
33 throw new ServerException("XML-RPC server not enabled.", -32605);
36 header('Access-Control-Allow-Origin: ' . $conf['remotecors']);
38 [$contentType] = explode(';', $INPUT->server->str('CONTENT_TYPE'), 2); // ignore charset
39 $contentType = strtolower($contentType); // mime types are case-insensitive
41 throw new ServerException('XML-RPC server accepts XML requests only.', -32606);
53 $result = $this->remote->call($methodname, $args);
[all …]
H A DJsonRpcServer.php12 /** @var float The XML-RPC Version. 0 is our own simplified variant */
20 $this->remote = new Api();
37 throw new RemoteException("JSON-RPC server not enabled.", -32605);
40 header('Access-Control-Allow-Origin: ' . $conf['remotecors']);
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
48 $contentType = strtolower($contentType); // mime types are case-insensitive
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);
[all …]
/dokuwiki/inc/
H A Ddeprecated.php2 // phpcs:ignoreFile -- this file violates PSR2 by definition
12 * @deprecated since 2021-11-11 use \dokuwiki\Remote\IXR\Client instead!
18 * @deprecated 2021-11-11
20 … public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null) argument
23 parent::__construct($server, $path, $port, $timeout, $timeout_io);
27 * @deprecated since 2021-11-11 use \IXR\Client\ClientMulticall instead!
33 * @deprecated 2021-11-11
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!
[all …]
H A DIp.php55 $maskLengthLower = max(0, $maskLength - 64);
57 $maskUpper = ~0 << intval(64 - $maskLengthUpper);
58 $maskLower = ~0 << intval(64 - $maskLengthLower);
74 * - version: Either '4' or '6'.
75 * - upper: The upper 64 bits of the IP.
76 * - lower: The lower 64 bits of the IP.
136 * Given the IP address of a proxy server, determine whether it is
137 * a known and trusted server.
165 * request has passed through, according to the X-Forwarded-For header.
168 * X-Forwarded-For header must be trusted, as well as the TCP/IP endpoint
[all …]
/dokuwiki/_test/tests/Remote/
H A DJsonRpcServerTest.php13 protected $server; variable in dokuwiki\\test\\Remote\\JsonRpcServerTest
24 $this->server = new JsonRpcServer();
38 $response = json_encode($this->server->serve($positional)['result']);
39 $this->assertJsonStringEqualsJsonString($expect, $response);
41 $response = json_encode($this->server->serve($named)['result']);
42 $this->assertJsonStringEqualsJsonString($expect, $response);
55 $response = json_encode($this->server->serve($positional)['result']);
56 $this->assertJsonStringEqualsJsonString($expect, $response);
58 $response = json_encode($this->server->serve($named)['result']);
59 $this->assertJsonStringEqualsJsonString($expect, $response);
[all …]
H A DXmlRpcServerTest.php10 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 DClassServer.php2 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.
12 * It is intended to assist in organization of your XML-RPC methods by allowing
20 class ClassServer extends Server
29 $this->_delim = $delim;
30 $this->_objects = [];
35 $this->callbacks[$rpcName] = $functionName;
43 $this->_objects[$prefix] = $object;
[all …]
H A DIntrospectionServer.php2 namespace IXR\Server;
14 class IntrospectionServer extends Server
22 $this->setCallbacks();
23 $this->setCapabilities();
24 $this->capabilities['introspection'] = [
28 $this->addCallback(
34 $this->addCallback(
38 'Returns a struct describing the XML-RPC specifications supported by this server'
40 $this->addCallback(
44 'Returns an array of available methods on this server'
[all …]
H A DServer.php3 namespace IXR\Server;
11 class Server class
22 $this->setCapabilities();
24 $this->callbacks = $callbacks;
26 $this->setCallbacks();
28 $this->serve($data);
39 header('Content-Type: text/plain'); // merged from WP #9093
40 throw new ServerException('XML-RPC server accepts POST requests only.');
45 $this->message = new Message($data);
46 if (!$this->message->parse()) {
[all …]
/dokuwiki/lib/exe/
H A Dxmlrpc.php14 $server = new XmlRpcServer(true); variable
16 $server->serve();
18 $server->error($e->getCode() ?: 1, $e->getMessage());
H A Djsonrpc.php10 header('Content-Type: application/json');
12 $server = new JsonRpcServer(); variable
14 $result = $server->serve();
16 $result = $server->returnError($e);
/dokuwiki/_test/tests/test/
H A Dglobals.test.php15 $request->setServer('testvar', true);
18 $EVENT_HANDLER->register_hook('TPL_CONTENT_DISPLAY', 'AFTER', null,
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…
26 $request->execute();
36 $request->setServer('testvar', false);
39 $EVENT_HANDLER->register_hook('TPL_CONTENT_DISPLAY', 'AFTER', null,
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…
43 $self->assertFalse(isset($_SERVER['tmpvar']));
[all …]
/dokuwiki/_test/tests/inc/
H A Dhttpclient_http.test.php6 * Tests are executed against an instance of go-httpbin
10 protected $server = 'http://httpbingo.org'; variable in httpclient_http_test
18 $data = $http->get($this->server . '/get?foo=bar');
19 if ($http->noconnection()) {
20 $this->markTestSkipped('connection timed out');
22 $this->assertFalse($data === false, $http->errorInfo());
24 $this->assertTrue(is_array($resp), 'JSON response');
25 $this->assertArrayHasKey('args', $resp);
26 $this->assertEquals(['foo' => ['bar']], $resp['args']);
35 $data = $http->dget($this->server . '/get', ['foo' => 'bar']);
[all …]
H A Dinit_fullpath.test.php31 $this->assertEquals(fullpath($from), $to, $info);
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',
80 $this->assertEquals(fullpath($from), $to, $info);
H A DIpTest.php44 $this->assertSame($version, $result['version']);
45 $this->assertSame($upper, $result['upper']);
46 $this->assertSame($lower, $result['lower']);
98 $this->assertSame($expected, $result);
109 $rangeTests = $this->ip_in_range_provider();
143 $this->assertSame($expected, $result);
209 $this->assertSame($expected, $result);
281 * @param string $header The X-Forwarded-For header value.
293 $INPUT->server->set('HTTP_X_FORWARDED_FOR', $header);
294 $INPUT->server->set('REMOTE_ADDR', $remoteAddr);
[all …]
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/
H A DClient.php17 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'];
44 $this->port = isset($bits['port']) ? $bits['port'] : 80;
45 $this->path = isset($bits['path']) ? $bits['path'] : '/';
48 if (!$this->path) {
49 $this->path = '/';
53 $this->path .= '?' . $bits['query'];
56 $this->server = $server;
[all …]
H A DClientMulticall.php14 public function __construct($server, $path = false, $port = 80) argument
16 parent::__construct($server, $path, $port);
17 $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
28 $this->calls[] = $struct;
34 return parent::query('system.multicall', $this->calls);
H A DClientSSL.php9 * Client for communicating with a XML-RPC Server over HTTPS.
13 * @copyright (c) 2004-2005 Jason Stirk
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);
58 $this->useragent = 'The Incutio XML-RPC PHP Library for SSL';
61 $this->_certFile = false;
62 $this->_caFile = false;
63 $this->_keyFile = false;
64 $this->_passphrase = '';
[all …]
/dokuwiki/lib/plugins/authldap/lang/de/
H A Dsettings.php14 $lang['server'] = 'Adresse zum LDAP-Server. Entweder als Hostname (<code>localhost</…
15 $lang['port'] = 'Port des LDAP-Servers, falls kein Port angegeben wurde.';
16 …e die Benutzeraccounts gespeichert sind. Zum Beispiel: <code>ou=People, dc=server, dc=tld</code>.';
17 …em die Benutzergruppen gespeichert sind. Zum Beispiel: <code>ou=Group, dc=server, dc=tld</code>.';
18 $lang['userfilter'] = 'LDAP-Filter, um die Benutzeraccounts zu suchen. Zum Beispiel: <co…
19 $lang['groupfilter'] = 'LDAP-Filter, um die Benutzergruppen zu suchen. Zum Beispiel: <co…
22 $lang['referrals'] = 'Weiterverfolgen von LDAP-Referrals (Verweise)?';
26 $lang['attributes'] = 'Attribute, die mit der LDAP-Suche abgerufen werden sollen.';
30 …beliebigen Benutzerattributes z. B. Telefonnummer oder Abteilung, anstelle der Standard-Gruppen).';
31 $lang['modPass'] = 'Darf über Dokuwiki das LDAP-Passwort geändert werden?';
[all …]
/dokuwiki/lib/plugins/authldap/lang/sv/
H A Dsettings.php11 $lang['server'] = 'Din LDAP server. Antingen värdnamn (<code>localhost</code>) eller…
12 $lang['port'] = 'LDAP server port, om det inte angavs full URL ovan';
13 … = 'Specificera var användarkonton finns. T.ex. <code>ou=Användare, dc=server, dc=tld</code>';
14 $lang['grouptree'] = 'Specificera var grupper finns. T.ex. <code>ou=Grupp, dc=server, d…
18 $lang['starttls'] = 'Använd TLS-anslutningar';
28 $lang['modPass'] = 'Får LDAP-lösenordet ändras via DokuWiki?';
34 $lang['referrals_o_-1'] = 'använd standard';
/dokuwiki/lib/plugins/authldap/lang/no/
H A Dsettings.php10 $lang['server'] = 'Din LDAP-server. Enten vertsnavnet (<code>localhost</code>) elle…
12 … = 'Hvor en kan finne brukerkontoer. F.eks. Eg. <code>ou=People, dc=server, dc=tld</code>';
13 $lang['grouptree'] = 'Hvor en kan finne brukergrupper. F.eks. <code>ou=Group, dc=server
14 $lang['userfilter'] = 'LDAP-filter for å søke etter brukerkontoer. F.eks. <code>(&amp;(u…
15 $lang['groupfilter'] = 'LDAP-filter for å søke etter grupper. F.eks.. <code>(&amp;(object…
17 $lang['starttls'] = 'Bruke TLS-forbindelser?';
20 $lang['binddn'] = 'DN (Distinguished Name) til en valgfri bind-bruker, angis dersom …
25 $lang['groupkey'] = 'Gruppemedlemskap fra brukerattributt (i stedet for standard AD-gr…
26 $lang['modPass'] = 'Kan LDAP-passordet endres via DokuWiki?';
32 $lang['referrals_o_-1'] = 'bruk standard';
/dokuwiki/lib/plugins/authldap/lang/da/
H A Dsettings.php11 $lang['server'] = 'Din LDAP server. Enten værtsnavn (<code>localhost</code>) eller f…
12 $lang['port'] = 'LDAP server port, hvis der ikke er angivet en komplet URL ovenfor…
13 $lang['usertree'] = 'Sti til brugerkonti. F.eks. <code>ou=Personer, dc=server, dc=tld<…
14 $lang['grouptree'] = 'Sti til brugergrupper. F.eks. <code>ou=Grupper, dc=server, dc=tld…
17 $lang['version'] = 'Protokol-version der skal benyttes. Det er muligvis nødvendigt at…
21 $lang['binddn'] = 'DN af en valgfri bindings-bruger, hvis ikke anonym binding er til…
27 …ppemedlemskab fra hvilken som helst brugerattribut (i stedet for standard AD-grupper), fx gruppe f…
34 $lang['referrals_o_-1'] = 'brug standardindstilling';
/dokuwiki/lib/plugins/authldap/lang/de-informal/
H A Dsettings.php10 * @author F. Mueller-Donath <j.felix@mueller-donath.de>
12 $lang['server'] = 'Adresse zum LDAP-Server. Entweder als Hostname (<code>localhost</…
13 $lang['port'] = 'Port des LDAP-Servers, falls kein Port angegeben wurde.';
14 …e die Benutzeraccounts gespeichert sind. Zum Beispiel: <code>ou=People, dc=server, dc=tld</code>.';
15 …em die Benutzergruppen gespeichert sind. Zum Beispiel: <code>ou=Group, dc=server, dc=tld</code>.';
16 $lang['userfilter'] = 'LDAP-Filter, um die Benutzeraccounts zu suchen. Zum Beispiel: <co…
17 $lang['groupfilter'] = 'LDAP-Filter, um die Benutzergruppen zu suchen. Zum Beispiel: <co…
20 $lang['referrals'] = 'Weiterverfolgen von LDAP-Referrals (Verweise)?';
24 $lang['attributes'] = 'Attribute, die mit der LDAP-Suche abgerufen werden sollen.';
28 …beliebigen Benutzerattributes z. B. Telefonnummer oder Abteilung, anstelle der Standard-Gruppen).';
[all …]
/dokuwiki/inc/Remote/IXR/
H A DClient.php10 * This implements a XML-RPC client using our own HTTPClient
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;
34 $this->httpClient = new HTTPClient();
35 $this->httpClient->timeout = $timeout;
43 $length = $request->getLength();
44 $xml = $request->getXml();
46 $this->headers['Content-Type'] = 'text/xml';
[all …]
/dokuwiki/lib/plugins/authldap/lang/en/
H A Dsettings.php2 $lang['server'] = 'Your LDAP server. Either hostname (<code>localhost</code>) or full qualifie…
3 $lang['port'] = 'LDAP server port if no full URL was given above';
4 $lang['usertree'] = 'Where to find the user accounts. Eg. <code>ou=People, dc=server, dc=tld</co…
5 $lang['grouptree'] = 'Where to find the user groups. Eg. <code>ou=Group, dc=server, dc=tld</code>…
20 $lang['modPassPlain']= 'Send password updates in plain text to the LDAP server (rather than salt an…
29 $lang['referrals_o_-1'] = 'use default';

12345678