Changeset 896 for trunk/Modules/User
- Timestamp:
- Jan 14, 2021, 7:38:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r895 r896 41 41 { 42 42 if (isset($_SERVER['REMOTE_ADDR'])) $this->User->Check(); 43 $this->System->RegisterPage(['userlist'], 'PageUserList');44 $this->System->RegisterPage(['user'], 'PageUser');45 $this->System->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback'));43 Core::Cast($this->System)->RegisterPage(['userlist'], 'PageUserList'); 44 Core::Cast($this->System)->RegisterPage(['user'], 'PageUser'); 45 Core::Cast($this->System)->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback')); 46 46 $this->System->FormManager->RegisterClass('UserLogin', array( 47 47 'Title' => 'Přihlášení uživatele', … … 180 180 'Filter' => '1', 181 181 )); 182 ModuleIS::Cast( $this->System->GetModule('IS'))->RegisterDashboardItem('User',182 ModuleIS::Cast(Core::Cast($this->System)->GetModule('IS'))->RegisterDashboardItem('User', 183 183 array($this, 'ShowDashboardItem')); 184 184 } … … 196 196 if ($this->User->User['Id'] == null) 197 197 { 198 $Output = '<a href="'. $this->System->Link('/user/?Action=LoginForm').'">Přihlášení</a> '.199 '<a href="'. $this->System->Link('/user/?Action=UserRegister').'">Registrace</a>';198 $Output = '<a href="'.Core::Cast($this->System)->Link('/user/?Action=LoginForm').'">Přihlášení</a> '. 199 '<a href="'.Core::Cast($this->System)->Link('/user/?Action=UserRegister').'">Registrace</a>'; 200 200 } else 201 201 { 202 202 $Output = $this->User->User['Name']. 203 ' <a href="'. $this->System->Link('/user/?Action=UserMenu').'">Nabídka</a>'.204 ' <a href="'. $this->System->Link('/user/?Action=Logout').'">Odhlásit</a>';203 ' <a href="'.Core::Cast($this->System)->Link('/user/?Action=UserMenu').'">Nabídka</a>'. 204 ' <a href="'.Core::Cast($this->System)->Link('/user/?Action=Logout').'">Odhlásit</a>'; 205 205 // <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>'; 206 206 }
Note:
See TracChangeset
for help on using the changeset viewer.