Changeset 93 for trunk/www/Application/View/User.php
- Timestamp:
- Aug 15, 2013, 11:17:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/User.php
r80 r93 53 53 function Login() 54 54 { 55 global $Config;56 57 55 $Form = new Form($this->System, $this->LoginFormClass); 58 56 $Form->OnSubmit = '?Module=User&Action=LoginFinish'; 59 57 $Output = $Form->ShowEditForm(); 60 58 $Output .= '<div class="Centred">'; 61 if($ Config['Web']['UserRegistrationEnabled'])59 if($this->Config['Web']['UserRegistrationEnabled']) 62 60 $Output .= '<a href="?Module=User&Action=Register">Registrovat se</a> '; 63 61 $Output .= '<a href="?Module=User&Action=PasswordRecovery">Obnova zapomenutého hesla</a></div>'; … … 85 83 function RegisterSave() 86 84 { 87 global $Config; 88 89 if($Config['Web']['UserRegistrationEnabled']) 85 if($this->Config['Web']['UserRegistrationEnabled']) 90 86 { 91 87 $Form = new Form($this->System, $this->RegisterFormClass, array()); … … 96 92 if($Result <> $this->System->Translate('UserRegistrated')) 97 93 { 98 $Form->OnSubmit = '?Module=User&Action= UserRegisterSave';94 $Form->OnSubmit = '?Module=User&Action=RegisterSave'; 99 95 $Output = $Form->ShowEditForm(); 100 96 } … … 166 162 function Register() 167 163 { 168 global $Config; 169 170 if($Config['Web']['UserRegistrationEnabled']) 164 if($this->Config['Web']['UserRegistrationEnabled']) 171 165 { 172 166 $Form = new Form($this->System, $this->RegisterFormClass); 173 167 $Form->LoadValuesFromForm(); 174 $Form->OnSubmit = '?Module=User&Action= UserRegisterSave';168 $Form->OnSubmit = '?Module=User&Action=RegisterSave'; 175 169 $Output = 'Vyplňte správně požadované údaje. Na zadaný email vám bude zaslán aktivační email.'; 176 170 $Output .= $Form->ShowEditForm(); … … 181 175 function RegisterConfirm() 182 176 { 183 global $Config; 184 185 if($Config['Web']['UserRegistrationEnabled']) 177 if($this->Config['Web']['UserRegistrationEnabled']) 186 178 { 187 179 $Page = new PageView($this->System); … … 192 184 } 193 185 } 194 195 ?>
Note:
See TracChangeset
for help on using the changeset viewer.