|
|
@@ -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"); |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |