Changeset 167 for www/user.php
- Timestamp:
- Mar 24, 2009, 11:44:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/user.php
r164 r167 46 46 //echo($this->Database->LastQuery); 47 47 48 // Zkontroluj přihlášení48 // Check login 49 49 $Query = $this->Database->select('UserOnline', '*', 'SessionId="'.$SID.'"'); 50 50 $Row = $Query->fetch_assoc(); … … 61 61 } 62 62 63 // Odeber neaktivní uživatele63 // Remove nonactive users 64 64 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.USER_TIMEOUT.' SECOND)'); 65 65 while($DbRow = $DbResult->fetch_array()) … … 126 126 { 127 127 $SID = session_id(); 128 // Je uživatel registrován?129 128 $Query = $this->Database->select('User', '*', 'Name="'.$Nick.'"'); 130 129 if($Query->num_rows > 0) … … 135 134 else 136 135 { 137 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()')); 138 136 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()')); 139 137 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('User' => $Row['Id'])); 140 138 // načtení stavu stromu
Note:
See TracChangeset
for help on using the changeset viewer.