Changeset 692 for trunk/pages


Ignore:
Timestamp:
Mar 20, 2010, 8:21:13 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Další názvy souborů přejmenovány pro potřeby pěkných URL.
Location:
trunk/pages
Files:
8 added
8 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/ucet.php

    r691 r692  
    11<?php
    22
    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()
     3function ShowMenu()
    84{
    95  global $html, $player;
     
    4238}
    4339
    44 if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != ''))
     40function ShowList()
    4541{
    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
     60if(count($QueryItems) > 1)
    4961{
    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();
    5380
    5481?>
Note: See TracChangeset for help on using the changeset viewer.