diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml
deleted file mode 100644
index 7f1d2f8..0000000
--- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- derpy
- 2
- 10
- 150
- 16
-
- 5
- 0
- 0
- 1
- 2
- 2
-
- default
- lorem ipsum dolor sit amet
- 0
-
-
diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/personomlong.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/personomlong.xml
deleted file mode 100644
index d5e00a3..0000000
--- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/personomlong.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- personomlong
- 0
- 10
- 0
- 0
-
- 0
- 0
- 0
- 0
- 0
- 0
-
- default
- ...
- 0
-
-
diff --git a/medias/default/index.php b/medias/default/index.php
new file mode 100755
index 0000000..d6f0954
--- /dev/null
+++ b/medias/default/index.php
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+ level; ?>
+ nom; ?>
+
+ level)
+ {
+ case 0:
+ $hp_max+=0;
+ break;
+ case 1:
+ $hp_max+=2;
+ break;
+ case 2:
+ $hp_max+=5;
+ break;
+ case 3:
+ $hp_max+=10;
+ break;
+ default:
+ echo "?";
+ }
+ ?>
+ hp; ?>/
+ money; ?>
+ xp; ?>
+ gift; ?>
+
+
+
+
+
+
+
+
+
+
+
Joueurs :
+
+
+
+ entry as $entry)
+ {
+ $hp_max="10";
+ switch ($entry->level)
+ {
+ case 0:
+ $hp_max+=0;
+ break;
+ case 1:
+ $hp_max+=2;
+ break;
+ case 2:
+ $hp_max+=5;
+ break;
+ case 3:
+ $hp_max+=10;
+ break;
+ default:
+ echo "?";
+ }
+ $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
+ echo '
+ ['.$entry->level.'] '.$entry->nom.' |
+ '.$entry->hp.'/'.$hp_max.' |
+ VOIR |
+
';
+ }
+ }
+ }
+ closedir($dossier);
+ ?>
+
+
+
+
+
+
+
+
+
diff --git a/register.php b/register.php
index a7009b9..b3929c5 100755
--- a/register.php
+++ b/register.php
@@ -15,6 +15,7 @@ else {
mysql_query($sql) or die("ERREUR !");
mkdir("medias/".$hash."/");
mkdir("medias/".$hash."/enemy/");
+ copy("medias/default/index.php", "medias/".$hash."/index.php");
copy("medias/default/player.xml", "medias/".$hash."/player.xml");
copy("medias/default/enemy.xml", "medias/".$hash."/enemy/enemy.xml");
copy("medias/default/map.jpg", "medias/".$hash."/map.jpg");