Changeset 494 for trunk/Modules/Portal
- Timestamp:
- Mar 1, 2013, 10:44:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r493 r494 169 169 if($_GET['Action'] == 'Logout') 170 170 { 171 $Output .= $this->SystemMessage('Odhlášení', $this->System->Modules['User']->Logout()); 171 if($this->System->Modules['User']->User['Id'] != null) 172 { 173 $Output .= $this->SystemMessage('Odhlášení', $this->System->Modules['User']->Logout()); 174 } else $Output .= $this->SystemMessage('Nastavení uživatele', 'Nejste přihlášen'); 172 175 } else 173 176 if($_GET['Action'] == 'UserOptions') 174 177 { 175 $UserOptions = new Form('UserOptions'); 176 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->User['Id']); 177 $UserOptions->OnSubmit = '?Action=UserOptionsSave'; 178 $Output .= $UserOptions->ShowEditForm(); 178 if($this->System->Modules['User']->User['Id'] != null) 179 { 180 $UserOptions = new Form('UserOptions'); 181 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->User['Id']); 182 $UserOptions->OnSubmit = '?Action=UserOptionsSave'; 183 $Output .= $UserOptions->ShowEditForm(); 184 } else $Output .= $this->SystemMessage('Nastavení uživatele', 'Nejste přihlášen'); 179 185 } else 180 186 if($_GET['Action'] == 'UserOptionsSave')
Note:
See TracChangeset
for help on using the changeset viewer.