Legend:
- Unmodified
- Added
- Removed
-
index.php
r8 r9 2 2 3 3 include_once('global.php'); 4 include('base.php');5 4 6 5 class IndexPage extends Page … … 30 29 array('Name' => 'Password2', 'Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Value' => ''), 31 30 array('Name' => 'Email', 'Type' => 'String', 'Caption' => 'E-mail', 'Value' => ''), 32 array('N Ame' => 'FirstName', 'Type' => 'String', 'Caption' => 'Křestní jméno', 'Value' => ''),31 array('Name' => 'FirstName', 'Type' => 'String', 'Caption' => 'Křestní jméno', 'Value' => ''), 33 32 array('Name' => 'SecondName', 'Type' => 'String', 'Caption' => 'Příjmení', 'Value' => ''), 34 33 ), … … 45 44 { 46 45 $Output .= $this->SystemMessage('Odhlášení', $this->System->Modules['User']->Logout()); 46 } else 47 if($_GET['Action'] == 'LoginForm') 48 { 49 $Form = new Form(); 50 $Form->Definition = $FormUserLogin; 51 $Form->OnSubmit = '?Action=Login'; 52 $Output .= $Form->ShowEditForm(); 47 53 } else 48 54 if($_GET['Action'] == 'UserRegister') … … 69 75 if(!array_key_exists('Action', $_GET)) 70 76 { 71 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=LoginForm">Přihlášení</a> 77 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=LoginForm">Přihlášení</a><br /><a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserRegister">Registrace</a>'; 72 78 $Form = new Form(); 73 79 $Form->Definition = $FormUserLogin; … … 80 86 $Output .= $this->System->Modules['User']->User['UserName'].' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=Logout">Odhlásit</a>'; 81 87 $Output .= '<br /><br />'; 82 LoadTypeDefinition();83 LoadListDefinition();84 88 $Output .= TableList(1); 85 89 $Output .= TableList(0);
Note:
See TracChangeset
for help on using the changeset viewer.