Browse Source

ajout rep enemy a l inscription

master
heuzef 10 years ago
parent
commit
81b56fcdf2
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      register.php

+ 5
- 4
register.php View File

@@ -1,4 +1,4 @@
<?php
<?php
include "header.php";
connecte("ecomonde");
$pseudo=$_POST['pseudo'];
@@ -14,8 +14,9 @@ else {
$sql="INSERT INTO membres VALUES(NULL,'$pseudo','$pass','$email')";
mysql_query($sql) or die("ERREUR !");
mkdir("medias/".$hash."/");
copy("medias/default/player1.xml", "medias/".$hash."/player1.xml");
copy("medias/default/player2.xml", "medias/".$hash."/player2.xml");
mkdir("medias/".$hash."/enemy/");
copy("medias/default/player.xml", "medias/".$hash."/player.xml");
copy("medias/default/enemy.xml", "medias/".$hash."/enemy/enemy.xml");
copy("medias/default/player3.xml", "medias/".$hash."/player3.xml");
copy("medias/default/map.jpg", "medias/".$hash."/map.jpg");
copy("medias/default/soft.mp3", "medias/".$hash."/soft.mp3");
@@ -25,4 +26,4 @@ else {
copy("medias/default/dark.mp3", "medias/".$hash."/dark.mp3");
header("location:index.php?msg=1");
}
?>
?>

Loading…
Cancel
Save