Ignore:
Timestamp:
Apr 29, 2009, 8:02:38 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Kód a styl stránky registrace účtů.
  • Opraveno: Třídat player byla pročištěna a opravena pro kompatibilitu s konfiguračním souborem config.php a nastavením názvů databází.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/xpreset.php

    r438 r576  
    11<?php
    2 $html -> PrgStart();
    3 if ($player -> Check())
    4   {
    5 echo "
    6 &nbsp;<a href=\"?page=acc\">&lt;- Zpět do správy účtu</a>
     2
     3$html->PrgStart();
     4if($player->Check())
     5{
     6  echo('<a href="?page=acc">&lt;- Zpět do správy účtu</a>
    77<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">
    1010  <tr>
    1111    <td>
    12       Jméno postavy pro resetování XP : </td>
     12      Jméno postavy: </td>
    1313    <td>
    14       <input type=\"text\" name=\"char\"></td>
     14      <input type="text" name="char"></td>
    1515  </tr>
    1616  <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>
    1919  </tr>
    2020</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
    2429{
    25 $guid = $player -> CharNameToGuid($_POST["char"]);
    26 $player -> ResetXP($guid);
    27 }
    28 }
    29 else
    30 {
    31 $player -> LoginForm();
     30  $player->LoginForm();
    3231}
    3332
    34 $html -> PrgStop();
     33$html->PrgStop();
     34
    3535?>
Note: See TracChangeset for help on using the changeset viewer.