function ip_login_init in IP Login 5
Same name and namespace in other branches
- 6 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 (!$_SESSION['ip_login_complete'] && !$user->uid) {
ip_login_login($_SERVER['REMOTE_ADDR']);
}
}