Changeset 46 for trunk/www/user.php
- Timestamp:
- Jun 19, 2009, 9:41:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/user.php
r45 r46 44 44 { 45 45 $SID = session_id(); 46 47 // Check login 48 $Query = $this->Database->select('UserOnline', '*', 'SessionId="'.$SID.'"'); 49 $Row = $Query->fetch_assoc(); 50 if($Row['User'] != $this->AnonymousUserId) 51 { 52 $Query = $this->Database->select('User', '*', 'Id='.$Row['User']); 53 $this->User = $Query->fetch_assoc(); 54 $Result = USER_LOGGED; 55 } else 56 { 57 $Query = $this->Database->select('User', '*', 'Id='.$this->AnonymousUserId); 58 $this->User = $Query->fetch_assoc(); 59 $Result = USER_NOT_LOGGED; 60 } 46 61 47 62 // Remove nonactive users
Note:
See TracChangeset
for help on using the changeset viewer.