You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 line
1016 B

  1. <?php
  2. include "header.php";
  3. connecte("ecomonde");
  4. $pseudo=$_POST['pseudo'];
  5. $pass=sha1($_POST['pass']);
  6. $email=$_POST['email'];
  7. $hash=md5($email);
  8. $check_email=requete1l("SELECT * FROM membres WHERE email='$email'");
  9. if ($check_email) {
  10. header("location:index.php?msg=2");
  11. }
  12. else {
  13. $sql="INSERT INTO membres VALUES(NULL,'$pseudo','$pass','$email')";
  14. mysql_query($sql) or die("ERREUR !");
  15. mkdir("medias/".$hash."/");
  16. mkdir("medias/".$hash."/enemy/");
  17. copy("medias/default/player.xml", "medias/".$hash."/player.xml");
  18. copy("medias/default/enemy.xml", "medias/".$hash."/enemy/enemy.xml");
  19. copy("medias/default/map.jpg", "medias/".$hash."/map.jpg");
  20. copy("medias/default/soft.mp3", "medias/".$hash."/soft.mp3");
  21. copy("medias/default/tonic.mp3", "medias/".$hash."/tonic.mp3");
  22. copy("medias/default/hard.mp3", "medias/".$hash."/hard.mp3");
  23. copy("medias/default/light.mp3", "medias/".$hash."/light.mp3");
  24. copy("medias/default/dark.mp3", "medias/".$hash."/dark.mp3");
  25. header("location:index.php?msg=1");
  26. }
  27. ?>