25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
476 B

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