Changeset 169 for www/user.php
- Timestamp:
- Mar 24, 2009, 2:15:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/user.php
r168 r169 16 16 define('BAD_PASSWORD', 'Špatné heslo.'); 17 17 define('USER_NOT_FOUND', 'Uživatel nenalezen.'); 18 define('USER_TIMEOUT', 300); // in seconds19 18 define('USER_PASSWORD_RECOVERY_SUCCESS', 'Přihlašovací údaje byly odeslány na zadanou emailovou adresu.'); 20 19 define('USER_PASSWORD_RECOVERY_FAIL', 'Podle zadaných údajů nebyl nalezen žádný uživatel.'); … … 32 31 var $User = array(); 33 32 var $DefaultRole = 2; 34 var $AnonymousUserId = 96; 33 var $AnonymousUserId = 98; 34 var $OnlineStateTimeout = 600; // in seconds 35 35 36 36 function Check() … … 62 62 63 63 // Remove nonactive users 64 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '. USER_TIMEOUT.' SECOND)');64 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.$this->OnlineStateTimeout.' SECOND)'); 65 65 while($DbRow = $DbResult->fetch_array()) 66 66 { … … 134 134 else 135 135 { 136 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()' ));136 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => GetRemoteAddress())); 137 137 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('User' => $Row['Id'])); 138 138 // načtení stavu stromu
Note:
See TracChangeset
for help on using the changeset viewer.