Changeset 692 for trunk/pages/ucet.php
- Timestamp:
- Mar 20, 2010, 8:21:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/ucet.php
r691 r692 1 1 <?php 2 2 3 $html->PrgStart(); 4 if(array_key_exists('user', $_POST)) $user = $_POST['user']; else $user = ''; 5 if(array_key_exists('pass', $_POST)) $pass = $_POST['pass']; else $pass = ''; 6 7 function Menu() 3 function ShowMenu() 8 4 { 9 5 global $html, $player; … … 42 38 } 43 39 44 if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != ''))40 function ShowList() 45 41 { 46 $player->Login($user, $pass); 47 Menu(); 48 } else 42 global $html, $player; 43 44 $html->PrgStart(); 45 if(array_key_exists('user', $_POST)) $user = $_POST['user']; else $user = ''; 46 if(array_key_exists('pass', $_POST)) $pass = $_POST['pass']; else $pass = ''; 47 48 49 if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != '')) 50 { 51 $player->Login($user, $pass); 52 ShowMenu(); 53 } else 54 { 55 ShowMenu(); 56 } 57 $html->PrgStop(); 58 } 59 60 if(count($QueryItems) > 1) 49 61 { 50 Menu(); 51 } 52 $html->PrgStop(); 62 if($QueryItems[1] == 'zmena-emailu') include('ucet-zmena-emailu.php'); 63 else if($QueryItems[1] == 'nastaveni') include('ucet-nastaveni.php'); 64 else if($QueryItems[1] == 'reset-pozice') include('ucet-reset-pozice.php'); 65 else if($QueryItems[1] == 'nulovani-xp') include('ucet-nulovani-xp.php'); 66 else if($QueryItems[1] == 'postavy') include('ucet-postavy.php'); 67 else if($QueryItems[1] == 'zmena-typu') include('ucet-zmena-typu.php'); 68 else if($QueryItems[1] == 'zmena-hesla') include('ucet-zmena-hesla.php'); 69 else if($QueryItems[1] == 'odhlaseni') 70 { 71 if($player->Check()) 72 { 73 echo('<center>'); 74 $player->Logout(); 75 echo('</center>'); 76 $include = 0; 77 } 78 } else ShowList(); 79 } else ShowList(); 53 80 54 81 ?>
Note:
See TracChangeset
for help on using the changeset viewer.