25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- include "header.php";
- $player_name=$_POST['player_name'];
- $player_xp=$_POST['player_xp'];
- copy("medias/default/player.xml", "medias/".$hash."/".$player_name.".xml");
-
- $xml = simplexml_load_file('./medias/'.$hash.'/'.$player_name.'.xml');
-
- $xml->entry->nom = $player_name;
-
- $xml->entry->xp = $player_xp;
-
- $xml->asXml('./medias/'.$hash.'/'.$player_name.'.xml');
-
- header("location: index.php");
- ?>
|