Changeset 884 for trunk/Modules/User/User.php
- Timestamp:
- Apr 8, 2020, 7:27:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r880 r884 257 257 // Refresh time of last access 258 258 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()')); 259 } else { 259 } else 260 { 260 261 if (GetRemoteAddress() != '') $HostName = gethostbyaddr(GetRemoteAddress()); 261 262 else $HostName = ''; … … 313 314 $UserId = $this->Database->insert_id; 314 315 $this->Database->query('INSERT INTO `UserTrace` (`User`, `LastIP`, `UserAgent`) '. 315 316 316 'VALUES ('.$UserId.', "'.GetRemoteAddress().'", '. 317 '"'.$this->Database->real_escape_string($_SERVER['HTTP_USER_AGENT']).'")'); 317 318 } 318 319 }
Note:
See TracChangeset
for help on using the changeset viewer.