25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- include "../header.php";
- $enemy_type=$_POST['enemy_type'];
-
- $enemy_suffix=$_POST['enemy_suffix'];
-
- $enemy_name=$enemy_type." ".$enemy_suffix;
-
- copy("../medias/default/enemy.xml", "../medias/".$hash."/enemy/".$enemy_name.".xml");
-
- $xml = simplexml_load_file('../medias/'.$hash.'/enemy/'.$enemy_name.'.xml');
-
- $xml->entry->nom = $enemy_name;
-
- $xml->entry->img = "http://wiki.ecomonde.land/lib/exe/fetch.php?media=wiki:".$enemy_type.".jpg";
-
- $xml->entry->url = "http://wiki.ecomonde.land/doku.php?id=wiki:ennemies:".$enemy_type;
-
- $xml->asXml('../medias/'.$hash.'/enemy/'.$enemy_name.'.xml');
-
- header("location: index.php");
- ?>
|