您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

28 行
1.0 KiB

  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. copy("medias/default/player1.xml", "medias/".$hash."/player1.xml");
  17. copy("medias/default/player2.xml", "medias/".$hash."/player2.xml");
  18. copy("medias/default/player3.xml", "medias/".$hash."/player3.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. ?>