Changeset 53 for trunk/www/user.php
- Timestamp:
- Jul 4, 2009, 9:50:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/user.php
r52 r53 45 45 $SID = session_id(); 46 46 47 // Remove nonactive users47 // Remove inactive users 48 48 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.$this->OnlineStateTimeout.' SECOND)'); 49 49 while($DbRow = $DbResult->fetch_array()) 50 50 { 51 $this->System->Modules['User']->User['Id'] = $DbRow['User']; 51 52 if($DbRow['User'] != $this->AnonymousUserId) $this->System->Modules['Log']->NewRecord('User', 'Logout'); 52 53 $this->Database->delete('UserOnline', 'Id='.$DbRow['Id']);
Note:
See TracChangeset
for help on using the changeset viewer.