$ip = ip2long($_SERVER['REMOTE_ADDR']);
for($q = 0; $q < $count; $q++) {
if(ip2long($massive_ips[$q][0]) <= $ip and $ip <= ip2long($massive_ips_two[$q][0]) == 1) {
echo 'ok';
}
var_dump(ip2long($massive_ips[$q][0]) <= $ip and $ip <= ip2long($massive_ips_two[$q][0]));
}