Check())
{
echo('
');
if($player->GetGmLvl() > 3)
{
$admin = ' | Administrace';
} else
{
$admin = '';
}
echo('
');
} else
{
$player->LoginForm();
}
}
function ShowList()
{
global $html, $player;
$html->PrgStart();
if(array_key_exists('user', $_POST)) $user = $_POST['user']; else $user = '';
if(array_key_exists('pass', $_POST)) $pass = $_POST['pass']; else $pass = '';
if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != ''))
{
$player->Login($user, $pass);
ShowMenu();
} else
{
ShowMenu();
}
$html->PrgStop();
}
if(count($QueryItems) > 1)
{
if($QueryItems[1] == 'zmena-emailu') include('ucet-zmena-emailu.php');
else if($QueryItems[1] == 'nastaveni') include('ucet-nastaveni.php');
else if($QueryItems[1] == 'reset-pozice') include('ucet-reset-pozice.php');
else if($QueryItems[1] == 'nulovani-xp') include('ucet-nulovani-xp.php');
else if($QueryItems[1] == 'postavy') include('ucet-postavy.php');
else if($QueryItems[1] == 'zmena-typu') include('ucet-zmena-typu.php');
else if($QueryItems[1] == 'zmena-hesla') include('ucet-zmena-hesla.php');
else if($QueryItems[1] == 'odhlaseni')
{
if($player->Check())
{
echo('');
$player->Logout();
echo('');
$include = 0;
}
} else ShowList();
} else ShowList();
?>