Changeset 77 for trunk/www/Application/View/User.php
- Timestamp:
- Aug 25, 2009, 1:04:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/User.php
r76 r77 69 69 $Form->LoadValuesFromForm(); 70 70 $Result = $this->System->Modules['User']->Login($Form->Values['Username'], $Form->Values['Password']); 71 $Output = $this->System->SystemMessage('Přihlášení', $Result); 71 $Page = new PageView($this->System); 72 $Output = $Page->SystemMessage('Přihlášení', $Result); 72 73 if($Result <> $this->System->Translate('UserLoggedIn')) 73 74 { … … 89 90 $Form->LoadValuesFromForm(); 90 91 $Result = $this->System->Modules['User']->Register($Form->Values['Login'], $Form->Values['Password'], $Form->Values['Password2'], $Form->Values['Email'], $Form->Values['Name']); 91 $Output = $this->System->SystemMessage('Registrace nového účtu', $Result); 92 $Page = new PageView($this->System); 93 $Output = $Page->SystemMessage('Registrace nového účtu', $Result); 92 94 if($Result <> $this->System->Translate('UserRegistrated')) 93 95 { … … 101 103 function PasswordRecoveryConfirm() 102 104 { 103 $Output = $this->System->SystemMessage('Obnova hesla', $this->System->Modules['User']->PasswordRecoveryConfirm($_GET['User'], $_GET['H'], $_GET['P'])); 105 $Page = new PageView($this->System); 106 $Output = $Page->SystemMessage('Obnova hesla', $this->System->Modules['User']->PasswordRecoveryConfirm($_GET['User'], $_GET['H'], $_GET['P'])); 104 107 $Output .= $this->LoginForm(); 105 108 return($Output); … … 111 114 $Form->LoadValuesFromForm(); 112 115 $Result = $this->System->Modules['User']->PasswordRecoveryRequest($Form->Values['Name'], $Form->Values['Email']); 113 $Output = $this->System->SystemMessage('Obnova hesla', $Result); 116 $Page = new PageView($this->System); 117 $Output = $Page->SystemMessage('Obnova hesla', $Result); 114 118 if($Result <> $this->System->Translate('UserPasswordRecoverySuccess')) 115 119 { … … 129 133 function Logout() 130 134 { 131 $Output = $this->System->SystemMessage('Odhlášení', $this->System->Modules['User']->Logout()); 135 $Page = new PageView($this->System); 136 $Output = $Page->SystemMessage('Odhlášení', $this->System->Modules['User']->Logout()); 132 137 $Output .= $this->Login(); 133 138 return($Output); … … 148 153 $UserOptions->LoadValuesFromForm(); 149 154 $UserOptions->SaveValuesToDatabase($this->System->Modules['User']->User['Id']); 150 $Output = $this->System->SystemMessage('Nastavení', 'Nastavení uloženo.'); 155 $Page = new PageView($this->System); 156 $Output = $Page->SystemMessage('Nastavení', 'Nastavení uloženo.'); 151 157 $this->System->Modules['Log']->NewRecord('User', 'Nastavení uživatele změněno', $UserOptions->Values['Name']); 152 158 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->User['Id']); … … 177 183 if($Config['Web']['UserRegistrationEnabled']) 178 184 { 179 $Output = $this->System->SystemMessage('Potvrzení registrace', $this->System->Modules['User']->RegisterConfirm($_GET['User'], $_GET['H'])); 185 $Page = new PageView($this->System); 186 $Output = $Page->SystemMessage('Potvrzení registrace', $this->System->Modules['User']->RegisterConfirm($_GET['User'], $_GET['H'])); 180 187 $Output .= $this->ShowLoginForm(); 181 188 } else $Output = 'Registrace nových účtů nejsou povoleny.';
Note:
See TracChangeset
for help on using the changeset viewer.