mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(legacy) deprecate is_iprange in util.inc
This commit is contained in:
parent
7b1e340a36
commit
4e991e6f41
@ -306,14 +306,6 @@ function ip_range_to_subnet_array($startip, $endip) {
|
||||
return $rangesubnets;
|
||||
}
|
||||
|
||||
function is_iprange($range) {
|
||||
if (substr_count($range, '-') != 1) {
|
||||
return false;
|
||||
}
|
||||
list($ip1, $ip2) = explode ('-', $range);
|
||||
return (is_ipaddr($ip1) && is_ipaddr($ip2));
|
||||
}
|
||||
|
||||
/* returns true if $ipaddr is a valid dotted IPv4 address or a IPv6 */
|
||||
function is_ipaddr($ipaddr) {
|
||||
if(is_ipaddrv4($ipaddr)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user