split() is deprecated in php5.3

This commit is contained in:
Shish 2009-09-14 21:19:13 +01:00
parent d5d7f08f01
commit ea215fbff2

View file

@ -428,7 +428,7 @@ function array_iunique($array) {
* @retval bool
*/
function ip_in_range($IP, $CIDR) {
list ($net, $mask) = split ("/", $CIDR);
list ($net, $mask) = explode("/", $CIDR);
$ip_net = ip2long ($net);
$ip_mask = ~((1 << (32 - $mask)) - 1);
@ -680,7 +680,7 @@ function _get_query_parts() {
$path = substr($path, 1);
}
$parts = split('/', $path);
$parts = explode('/', $path);
if(strpos($path, "^") === FALSE) {
return $parts;