mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Stream lined the getuser_ip() usage in create().
This commit is contained in:
parent
e96dab92b8
commit
7d197afd49
@ -279,15 +279,16 @@
|
||||
$session_flags = 'N';
|
||||
}
|
||||
|
||||
$user_ip = $this->getuser_ip();
|
||||
$phpgw->db->query("insert into phpgw_sessions values ('" . $this->sessionid
|
||||
. "','".$login."','" . $this->getuser_ip() . "','"
|
||||
. "','".$login."','" . $user_ip . "','"
|
||||
. $now . "','" . $now . "','".$info_string."','" . $session_flags
|
||||
. "')",__LINE__,__FILE__);
|
||||
|
||||
$phpgw->db->query("insert into phpgw_access_log values ('" . $this->sessionid . "','"
|
||||
. "$login','" . $this->getuser_ip() . "','$now','') ",__LINE__,__FILE__);
|
||||
. "$login','" . $user_ip . "','$now','') ",__LINE__,__FILE__);
|
||||
|
||||
$phpgw->auth->update_lastlogin($this->account_id,$this->getuser_ip());
|
||||
$phpgw->auth->update_lastlogin($this->account_id,$user_ip);
|
||||
|
||||
return $this->sessionid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user