Changeset 15
- Timestamp:
- Jun 19, 2012, 12:09:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cs_lang.php
r9 r15 11 11 ), 12 12 13 13 'autors' => 'AutoÅi', 14 14 15 15 -
trunk/index.php
r10 r15 1 1 <?php 2 2 3 if(isset($_SERVER['REMOTE_ADDR'])) session_start(); 3 4 4 5 ini_set('display_errors',1); … … 22 23 23 24 //main body 24 $Gui = new Gui( );25 $Gui = new Gui($User); 25 26 26 $User->Login('maron','test'); 27 $Form = new Form(array( 28 array('name' => 'LoginUser', 29 'description' => 'Jméno', 30 ), 31 array('name' => 'LoginPass', 32 'type' => 'password', 33 'description' => 'Heslo', 34 'value' => '',), 35 array('name' => 'button', 36 'type' => 'submit', 37 'value' => 'PÅihlásit', 38 'description' => '<a href="">Registrace</a>',)), 'PÅihlášenÃ'); 39 $Form->Show(); 40 41 42 $Form = new Form(array( 43 array('name' => 'Email', 44 'description' => 'Email', 45 'value' => '@', 46 ), 47 array('name' => 'RegUser', 48 'description' => 'Jméno', 49 ), 50 array('name' => 'RegPass', 51 'type' => 'password', 52 'description' => 'Heslo', 53 'value' => '',), 54 array('name' => 'RegPass2', 55 'type' => 'password', 56 'description' => 'Povrzenà hesla', 57 'value' => '',), 58 array('name' => 'button', 59 'type' => 'submit', 60 'value' => 'Registrovat',) 61 ), 'Registrace nového uÅŸivatele'); 62 $Form->Show(); 63 64 $Logout = new Link('Odhlásit', '?logout' , 'Odhlásit se z webového systému'); 65 66 if ($User->Licence(0)) { 67 echo 'log'; 68 echo $Logout->Get(); 69 } 70 else echo 'notlog'; 27 71 28 72 $Gui->ShowPage();
Note:
See TracChangeset
for help on using the changeset viewer.