Changeset 7 for trunk/Modules/User/User.php
- Timestamp:
- Apr 14, 2020, 11:13:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r5 r7 121 121 /* 122 122 123 if ($this->InstalledVersion == '1.0') {123 if ($this->InstalledVersion == '1.0') { 124 124 $this->System->Database->Query('SELECT * FROM User WHERE Id=1'); 125 125 $this->InstalledVersion = '1.1'; … … 131 131 { 132 132 $this->System->User = new User($this->System); 133 if (isset($_SERVER['REMOTE_ADDR'])) $this->System->User->Check();133 if (isset($_SERVER['REMOTE_ADDR'])) $this->System->User->Check(); 134 134 $this->System->RegisterPage('userlist', 'PageUserList'); 135 135 $this->System->RegisterPage('user', 'PageUser'); … … 287 287 function TopBarCallback() 288 288 { 289 if ($this->System->User->User['Id'] == null)289 if ($this->System->User->User['Id'] == null) 290 290 { 291 291 $Output = '<a href="'.$this->System->Link('/user/?Action=LoginForm').'">Přihlášení</a> '. … … 298 298 // <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>'; 299 299 } 300 return ($Output);300 return $Output; 301 301 } 302 302 }
Note:
See TracChangeset
for help on using the changeset viewer.