Changeset 692


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

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r691 r692  
    7878  array('link' => $html->Link('/ucet/'), 'Text' => 'Správa účtu'),
    7979  array('link' => $html->Link('/forum/'), 'Text' => 'Fórum'),
    80   array('link' => $html->Link('/server'), 'Text' => 'Server'),
     80  array('link' => $html->Link('/server/'), 'Text' => 'Server'),
    8181  //array('link' => '?page=gmteam', 'Text' => 'GM Tým'),
    8282  //array('link' => 'bug_tracker/', 'Text' => 'Nahlaš chybu'),
     
    152152// obsah start
    153153$include = 1;
    154 if(isset($_GET['logout']) and $player->Check())
    155 {
    156   echo('<center>');
    157   $player->Logout();
    158   echo('</center>');
    159   $include = 0;
    160 }
    161154if($include == 1)
    162155{
  • 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.