Changeset 164 for www/user.php
- Timestamp:
- Feb 21, 2009, 11:04:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/user.php
r153 r164 32 32 var $User = array(); 33 33 var $DefaultRole = 2; 34 var $AnonymousUserId = 72;34 var $AnonymousUserId = 96; 35 35 36 36 function Check() … … 61 61 } 62 62 63 64 63 // Odeber neaktivní uživatele 65 64 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.USER_TIMEOUT.' SECOND)'); 66 65 while($DbRow = $DbResult->fetch_array()) 67 66 { 68 $this->Database->delete('UserOnline', 'Id='.$DbRow[' User']);67 $this->Database->delete('UserOnline', 'Id='.$DbRow['Id']); 69 68 $this->System->Modules['Log']->NewRecord('User', 'Logout'); 70 69 }
Note:
See TracChangeset
for help on using the changeset viewer.