Changeset 47 for trunk/Application/View/User.php
- Timestamp:
- Jul 27, 2014, 9:14:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 2 1 config.php 2 .project
-
- Property svn:ignore
-
trunk/Application/View/User.php
r42 r47 38 38 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 39 39 ), 40 ); 40 ); 41 41 var $LoginFormClass = array( 42 42 'Title' => 'Přihlášení uživatele', … … 48 48 ), 49 49 ); 50 50 51 51 function Login() 52 52 { 53 53 global $Config; 54 54 55 55 $Form = new Form($this->System, $this->LoginFormClass); 56 56 $Form->OnSubmit = '?Module=User&Action=LoginFinish'; 57 57 $Output = $Form->ShowEditForm(); 58 58 $Output .= '<div class="Centred">'; 59 if($Config['System']['UserRegistrationEnabled']) 59 if($Config['System']['UserRegistrationEnabled']) 60 60 $Output .= '<a href="?Module=User&Action=Register">Registrovat se</a> '; 61 61 $Output .= '<a href="?Module=User&Action=PasswordRecovery">Obnova zapomenutého hesla</a></div>'; 62 62 return($Output); 63 63 } 64 64 65 65 function LoginFinish() 66 66 { … … 80 80 return($Output); 81 81 } 82 82 83 83 function RegisterSave() 84 84 { 85 85 global $Config; 86 87 if($Config['System']['UserRegistrationEnabled']) 86 87 if($Config['System']['UserRegistrationEnabled']) 88 88 { 89 89 $Form = new Form($this->System, $this->RegisterFormClass, array()); … … 100 100 return($Output); 101 101 } 102 102 103 103 function PasswordRecoveryConfirm() 104 104 { … … 108 108 return($Output); 109 109 } 110 110 111 111 function PasswordRecoveryFinish() 112 112 { … … 119 119 { 120 120 $Output .= $Form->ShowEditForm(); 121 } 121 } 122 122 return($Output); 123 123 } 124 124 125 125 function PasswordRecovery() 126 126 { … … 130 130 return($Output); 131 131 } 132 132 133 133 function Logout() 134 134 { … … 138 138 return($Output); 139 139 } 140 140 141 141 function Options() 142 142 { … … 147 147 return($Output); 148 148 } 149 149 150 150 function OptionsSave() 151 151 { … … 161 161 return($Output); 162 162 } 163 163 164 164 function Register() 165 165 { 166 166 global $Config; 167 168 if($Config['System']['UserRegistrationEnabled']) 167 168 if($Config['System']['UserRegistrationEnabled']) 169 169 { 170 170 $Form = new Form($this->System, $this->RegisterFormClass); … … 176 176 return($Output); 177 177 } 178 178 179 179 function RegisterConfirm() 180 180 { 181 181 global $Config; 182 183 if($Config['System']['UserRegistrationEnabled']) 182 183 if($Config['System']['UserRegistrationEnabled']) 184 184 { 185 185 $Page = new PageView($this->System); … … 190 190 } 191 191 } 192 193 ?>
Note:
See TracChangeset
for help on using the changeset viewer.