|
123456789101112131415161718192021222324 |
- <?php include "../header.php";
-
- $nom_modif="";
-
- if (isset($_GET['entry'])) {
- $nom_modif = $_GET['entry'];
- } else {
- header("location: ./index.php");
- end;
- }
-
- $xml = simplexml_load_file('../medias/'.$hash.'/enemy/'.$nom_modif.'.xml');
-
- if (isset($_GET['hp_plus']) && $xml->entry->hp<3) {
- $xml->entry->hp++;
- }
-
- if (isset($_GET['hp_moins']) && $xml->entry->hp>0) {
- $xml->entry->hp--;
- }
-
- $xml->asXml('../medias/'.$hash.'/enemy/'.$nom_modif.'.xml');
- header("location: index.php");
- ?>
|