<?php

$html->PrgStart();
echo($server->RealmSelection());
if($player->Check())
{
  echo('<a href="'.$html->Link('/ucet/').'">&lt;- Zpět do správy účtu</a>
<center><h3>Resetování XP vaší postavy</h3></center>
<form method="post">
<table align="center">
  <tr>
    <td>
      Jméno postavy: </td>
    <td>
      <input type="text" name="char"></td>
  </tr>
  <tr>
    <td colspan="2" align="right">
      <input type="submit" value="Resetovat" name="xpreset"></td>
  </tr>
</table>
</form>');

  if(isset($_POST['xpreset']) and $_POST['char'] != '')
  {
    $guid = $player->CharNameToGuid($_POST['char']);
    $player->ResetXP($guid);
  }
} else
{
  $player->LoginForm();
}

$html->PrgStop();

?>
