|
Last change
on this file was 692, checked in by george, 16 years ago |
- Upraveno: Další názvy souborů přejmenovány pro potřeby pěkných URL.
|
|
File size:
742 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | $html->PrgStart();
|
|---|
| 4 | echo($server->RealmSelection());
|
|---|
| 5 | if($player->Check())
|
|---|
| 6 | {
|
|---|
| 7 | echo('<a href="'.$html->Link('/ucet/').'"><- Zpět do správy účtu</a>
|
|---|
| 8 | <center><h3>Resetování XP vaší postavy</h3></center>
|
|---|
| 9 | <form method="post">
|
|---|
| 10 | <table align="center">
|
|---|
| 11 | <tr>
|
|---|
| 12 | <td>
|
|---|
| 13 | Jméno postavy: </td>
|
|---|
| 14 | <td>
|
|---|
| 15 | <input type="text" name="char"></td>
|
|---|
| 16 | </tr>
|
|---|
| 17 | <tr>
|
|---|
| 18 | <td colspan="2" align="right">
|
|---|
| 19 | <input type="submit" value="Resetovat" name="xpreset"></td>
|
|---|
| 20 | </tr>
|
|---|
| 21 | </table>
|
|---|
| 22 | </form>');
|
|---|
| 23 |
|
|---|
| 24 | if(isset($_POST['xpreset']) and $_POST['char'] != '')
|
|---|
| 25 | {
|
|---|
| 26 | $guid = $player->CharNameToGuid($_POST['char']);
|
|---|
| 27 | $player->ResetXP($guid);
|
|---|
| 28 | }
|
|---|
| 29 | } else
|
|---|
| 30 | {
|
|---|
| 31 | $player->LoginForm();
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | $html->PrgStop();
|
|---|
| 35 |
|
|---|
| 36 | ?>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.