split() is deprecated in php5.3
This commit is contained in:
parent
d5d7f08f01
commit
ea215fbff2
1 changed files with 2 additions and 2 deletions
|
@ -428,7 +428,7 @@ function array_iunique($array) {
|
||||||
* @retval bool
|
* @retval bool
|
||||||
*/
|
*/
|
||||||
function ip_in_range($IP, $CIDR) {
|
function ip_in_range($IP, $CIDR) {
|
||||||
list ($net, $mask) = split ("/", $CIDR);
|
list ($net, $mask) = explode("/", $CIDR);
|
||||||
|
|
||||||
$ip_net = ip2long ($net);
|
$ip_net = ip2long ($net);
|
||||||
$ip_mask = ~((1 << (32 - $mask)) - 1);
|
$ip_mask = ~((1 << (32 - $mask)) - 1);
|
||||||
|
@ -680,7 +680,7 @@ function _get_query_parts() {
|
||||||
$path = substr($path, 1);
|
$path = substr($path, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parts = split('/', $path);
|
$parts = explode('/', $path);
|
||||||
|
|
||||||
if(strpos($path, "^") === FALSE) {
|
if(strpos($path, "^") === FALSE) {
|
||||||
return $parts;
|
return $parts;
|
||||||
|
|
Reference in a new issue