[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 133 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
IpUtils:: (4 methods):
__construct()
checkIp()
checkIp4()
checkIp6()
__construct() X-Ref |
This class should not be instantiated. |
checkIp($requestIp, $ips) X-Ref |
Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets. param: string $requestIp IP to check param: string|array $ips List of IPs or subnets (can be a string if only a single one) return: bool Whether the IP is valid |
checkIp4($requestIp, $ip) X-Ref |
Compares two IPv4 addresses. In case a subnet is given, it checks if it contains the request IP. param: string $requestIp IPv4 address to check param: string $ip IPv4 address or subnet in CIDR notation return: bool Whether the request IP matches the IP, or whether the request IP is within the CIDR subnet. |
checkIp6($requestIp, $ip) X-Ref |
Compares two IPv6 addresses. In case a subnet is given, it checks if it contains the request IP. param: string $requestIp IPv6 address to check param: string $ip IPv6 address or subnet in CIDR notation return: bool Whether the IP is valid author: David Soria Parra <dsp at php dot net> |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |