Changeset 828 for trunk/Modules/User
- Timestamp:
- Apr 27, 2016, 11:02:50 PM (9 years ago)
- Location:
- trunk/Modules/User
- Files:
-
- 2 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.'"'); -
trunk/Modules/User/UserPage.php
r826 r828 64 64 { 65 65 $Class = new $Action[0]($this->System); 66 $Actions .= $Class->$Action[1](); 66 $Method = $Action[1]; 67 $Actions .= $Class->$Method(); 67 68 } else $Actions .= call_user_func($Action).'<br/>'; 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.