Changeset 152 for www/user.php
- Timestamp:
- Feb 16, 2009, 2:09:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/user.php
r150 r152 32 32 var $User = array(); 33 33 var $DefaultRole = 2; 34 var $AnonymousUserId = 80;34 var $AnonymousUserId = 72; 35 35 36 36 function Check() … … 48 48 // Zkontroluj přihlášení 49 49 $Query = $this->Database->select('UserOnline', '*', 'SessionId="'.$SID.'"'); 50 $Row = $Query->fetch_a rray();50 $Row = $Query->fetch_assoc(); 51 51 if($Row['User'] != $this->AnonymousUserId) 52 52 { 53 53 $Query = $this->Database->select('User', '*', "Id=".$Row['User'].""); 54 $this->User = $Query->fetch_a rray();54 $this->User = $Query->fetch_assoc(); 55 55 $Result = USER_LOGGED; 56 56 } else 57 57 { 58 58 $Query = $this->Database->select('User', '*', "Id=".$this->AnonymousUserId); 59 $this->User = $Query->fetch_a rray();59 $this->User = $Query->fetch_assoc(); 60 60 $Result = USER_NOT_LOGGED; 61 61 } 62 62 63 63 64 // Odeber neaktivní uživatele
Note:
See TracChangeset
for help on using the changeset viewer.