Changeset 45 for trunk/www/user.php
- Timestamp:
- Jun 19, 2009, 8:31:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/user.php
r29 r45 44 44 { 45 45 $SID = session_id(); 46 47 // Remove nonactive users 48 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.$this->OnlineStateTimeout.' SECOND)'); 49 while($DbRow = $DbResult->fetch_array()) 50 { 51 if($DbRow['User'] != $this->AnonymousUserId) $this->System->Modules['Log']->NewRecord('User', 'Logout'); 52 $this->Database->delete('UserOnline', 'Id='.$DbRow['Id']); 53 } 54 46 55 // Lookup user record 47 56 $Query = $this->Database->select('UserOnline', '*', 'SessionId="'.$SID.'"'); … … 68 77 } 69 78 70 // Remove nonactive users71 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.$this->OnlineStateTimeout.' SECOND)');72 while($DbRow = $DbResult->fetch_array())73 {74 $this->Database->delete('UserOnline', 'Id='.$DbRow['Id']);75 if($DbRow['User'] != $this->AnonymousUserId) $this->System->Modules['Log']->NewRecord('User', 'Logout');76 }77 79 //$this->LoadPermission($this->User['Role']); 78 80
Note:
See TracChangeset
for help on using the changeset viewer.