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.php38 * @param string $ip An IPv6 address
41 public static function uncompress(string $ip) argument
45 if (substr_count($ip, '::') === 1) {
46 [$ip1, $ip2] = explode('::', $ip);
62 $ip = '0:0:0:0:0:0:0:0';
67 $ip = str_replace('::', $fill, $ip);
72 $ip = str_replace('::', $fill, $ip);
77 $ip = str_replace('::', $fill, $ip);
80 return $ip;
94 * @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.php93 * @param string $ip The IPv4 or IPv6 address.
99 public static function ipToNumber(string $ip): array argument
101 $binary = inet_pton($ip);
104 throw new Exception('Invalid IP: ' . $ip);
135 * @param string $ip The address to test.
140 public static function ipMatches(string $ip, string $ipOrRange): bool argument
147 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);
150 return Ip::ipInRange($ip, $ipOrRange);
163 * @param string $ip The IP address of the proxy.
167 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.php377 $ip = clientIP(true);
379 $pip = inet_pton($ip);
/dokuwiki/_test/tests/inc/
H A DIpTest.php50 * @param string $ip The IP address to convert.
60 public function test_ip_to_number(string $ip, int $version, $upper, $lower): void argument
62 $result = Ip::ipToNumber($ip);
114 * @param string $ip The IP to test.
120 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument
122 $result = Ip::ipInRange($ip, $range);
159 * @param string $ip The IP to test.
165 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument
167 $result = Ip::ipMatches($ip, $ipOrRange);
225 * @param string $ip The proxy IP to test.
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DX509.php1496 * @param string $ip
1499 public static function decodeIP($ip) argument
1501 return inet_ntop($ip);
1509 * @param string $ip
1512 public static function decodeNameConstraintIP($ip) argument
1514 $size = strlen($ip) >> 1;
1515 $mask = substr($ip, $size);
1516 $ip = substr($ip, 0, $size);
1517 return [inet_ntop($ip), inet_ntop($mask)];
1525 * @param string|array $ip
[all …]
/dokuwiki/inc/Remote/
H A DLegacyApiCore.php498 'ip' => $revision->ip,