Changeset 828 for trunk/Modules/User/UserModel.php
- Timestamp:
- Apr 27, 2016, 11:02:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserModel.php
r746 r828 74 74 { 75 75 // Refresh time of last access 76 $this->Database->update('UserOnline', ' SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()'));76 $this->Database->update('UserOnline', '`SessionId`="'.$SID.'"', array('ActivityTime' => 'NOW()')); 77 77 } else $this->Database->insert('UserOnline', array('SessionId' => $SID, 78 78 'User' => null, 'LoginTime' => 'NOW()', 'ActivityTime' => 'NOW()', 79 79 'IpAddress' => GetRemoteAddress(), 'HostName' => gethostbyaddr(GetRemoteAddress()), 80 'ScriptName' => $_SERVER['PHP_SELF'] ));80 'ScriptName' => $_SERVER['PHP_SELF'], 'StayLogged' => 0, 'StayLoggedHash' => '')); 81 81 82 82 // Logged permanently? … … 200 200 function Login($Login, $Password, $StayLogged = false) 201 201 { 202 if($StayLogged) $StayLogged = 1; else $StayLogged = 0; 202 203 $SID = session_id(); 203 204 $Query = $this->Database->select('User', '*', 'Login="'.$Login.'"');
Note:
See TracChangeset
for help on using the changeset viewer.