Changeset 576 for trunk/pages/xpreset.php
- Timestamp:
- Apr 29, 2009, 8:02:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/xpreset.php
r438 r576 1 1 <?php 2 $html -> PrgStart(); 3 if ($player -> Check()) 4 { 5 echo " 6 <a href=\"?page=acc\"><- Zpět do správy účtu</a>2 3 $html->PrgStart(); 4 if($player->Check()) 5 { 6 echo('<a href="?page=acc"><- Zpět do správy účtu</a> 7 7 <center><h3>Resetování XP vaší postavy</h3></center> 8 <form method= \"post\">9 <table align= \"center\">8 <form method="post"> 9 <table align="center"> 10 10 <tr> 11 11 <td> 12 Jméno postavy pro resetování XP: </td>12 Jméno postavy: </td> 13 13 <td> 14 <input type= \"text\" name=\"char\"></td>14 <input type="text" name="char"></td> 15 15 </tr> 16 16 <tr> 17 <td colspan= \"2\" align=\"right\">18 <input type= \"submit\" value=\"Resetovat\" name=\"xpreset\"></td>17 <td colspan="2" align="right"> 18 <input type="submit" value="Resetovat" name="xpreset"></td> 19 19 </tr> 20 20 </table> 21 </form> 22 "; 23 if (isset($_POST["xpreset"]) AND $_POST["char"] != "") 21 </form>'); 22 23 if(isset($_POST['xpreset']) and $_POST['char'] != '') 24 { 25 $guid = $player->CharNameToGuid($_POST['char']); 26 $player->ResetXP($guid); 27 } 28 } else 24 29 { 25 $guid = $player -> CharNameToGuid($_POST["char"]); 26 $player -> ResetXP($guid); 27 } 28 } 29 else 30 { 31 $player -> LoginForm(); 30 $player->LoginForm(); 32 31 } 33 32 34 $html -> PrgStop(); 33 $html->PrgStop(); 34 35 35 ?>
Note:
See TracChangeset
for help on using the changeset viewer.