You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 line
401 B

  1. <?php
  2. include "header.php";
  3. $player_name=$_POST['player_name'];
  4. $player_xp=$_POST['player_xp'];
  5. copy("medias/default/player.xml", "medias/".$hash."/".$player_name.".xml");
  6. $xml = simplexml_load_file('./medias/'.$hash.'/'.$player_name.'.xml');
  7. $xml->entry->nom = $player_name;
  8. $xml->entry->xp = $player_xp;
  9. $xml->asXml('./medias/'.$hash.'/'.$player_name.'.xml');
  10. header("location: index.php");
  11. ?>