Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 10 of 10) sorted by relevance

/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php77 * @param string $ip An IPv6 address
80 public static function uncompress($ip) argument
84 if (substr_count($ip, '::') === 1) {
85 [$ip1, $ip2] = explode('::', $ip);
101 $ip = '0:0:0:0:0:0:0:0';
106 $ip = str_replace('::', $fill, $ip);
111 $ip = str_replace('::', $fill, $ip);
116 $ip = str_replace('::', $fill, $ip);
119 return $ip;
133 * @param string $ip An IPv6 address
[all …]
/dokuwiki/inc/Remote/Response/
H A DPageChange.php17 public $ip; variable in dokuwiki\\Remote\\Response\\PageChange
31 * @param string $ip
36 public function __construct($id, $revision, $author, $ip, $summary, $type, $sizechange) argument
41 $this->ip = $ip;
H A DMediaChange.php17 public $ip; variable in dokuwiki\\Remote\\Response\\MediaChange
31 * @param string $ip
36 public function __construct($id, $revision, $author, $ip, $summary, $type, $sizechange) argument
41 $this->ip = $ip;
/dokuwiki/inc/
H A DIp.php80 * @param string $ip The IPv4 or IPv6 address.
86 public static function ipToNumber(string $ip): array argument
88 $binary = inet_pton($ip);
91 throw new Exception('Invalid IP: ' . $ip);
113 * @param string $ip The address to test.
118 public static function ipMatches(string $ip, string $ipOrRange): bool argument
125 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);
128 return Ip::ipInRange($ip, $ipOrRange);
141 * @param string $ip The IP address of the proxy.
145 public static function proxyIsTrusted(string $ip): bool argument
[all …]
H A DMailer.class.php660 $ip = clientIP();
661 $cip = gethostsbyaddrs($ip);
668 'IPADDRESS' => $ip,
687 'IPADDRESS' => '<code>' . hsc($ip) . '</code>',
H A Dcommon.php872 foreach ($ips as $ip) {
873 $hosts[] = gethostbyaddr(trim($ip));
909 [$ip, $session] = sexplode("\n", io_readFile($lock), 2);
910 if ($ip == $INPUT->server->str('REMOTE_USER') || (session_id() && $session === session_id())) {
914 return $ip;
957 @[$ip, $session] = explode("\n", io_readFile($lock));
958 if ($ip == $INPUT->server->str('REMOTE_USER') || $session == session_id()) {
H A Dauth.php375 $ip = clientIP(true);
377 $pip = inet_pton($ip);
/dokuwiki/_test/tests/inc/
H A DIpTest.php33 * @param string $ip The IP address to convert.
40 public function test_ip_to_number(string $ip, int $version, int $upper, int $lower): void argument
42 $result = Ip::ipToNumber($ip);
88 * @param string $ip The IP to test.
94 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument
96 $result = Ip::ipInRange($ip, $range);
133 * @param string $ip The IP to test.
139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
141 $result = Ip::ipMatches($ip, $ipOrRange);
199 * @param string $ip The proxy IP to test.
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DX509.php1493 * @param string $ip
1496 public static function decodeIP($ip) argument
1498 return inet_ntop($ip);
1506 * @param string $ip
1509 public static function decodeNameConstraintIP($ip) argument
1511 $size = strlen($ip) >> 1;
1512 $mask = substr($ip, $size);
1513 $ip = substr($ip, 0, $size);
1514 return [inet_ntop($ip), inet_ntop($mask)];
1522 * @param string|array $ip
[all …]
/dokuwiki/inc/Remote/
H A DLegacyApiCore.php498 'ip' => $revision->ip,