function ip_login_init in IP Login 6
Same name and namespace in other branches
- 5 ip_login.module \ip_login_init()
Implementation of hook_init
File
- ./
ip_login.module, line 9
Code
function ip_login_init() {
global $user;
//call ip login on init for any page, if not already processed
if (!$user->uid && variable_get('ip_login_enabled', 1) && !$_SESSION['ip_login_complete']) {
ip_login_login($_SERVER['REMOTE_ADDR']);
}
}