function ip_login_get_range in IP Login 5
Same name and namespace in other branches
- 6 ip_login.module \ip_login_get_range()
1 call to ip_login_get_range()
- ip_login_login in ./
ip_login.module - Log user in by ip address and profile_ip profile field
File
- ./
ip_login.module, line 109
Code
function ip_login_get_range($ip) {
if ($ip) {
$ip = explode('.', $ip);
//explode ip to array
array_pop($ip);
//remove last element
$ip = implode('.', $ip) . '.*';
//convert to string and add .*
}
return $ip;
}