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.
 
 
 
 

27 lines
922 B

  1. <?php
  2. include "header.php";
  3. connecte("ecomonde");
  4. $hash=md5($email);
  5. $path="./medias/".$hash;
  6. if ($email) {
  7. $sql="UPDATE membres SET version='$latest_commit'";
  8. mysql_query($sql) or die(include("index.php?msg=0"));
  9. exec("rm -rf {$path}");
  10. mkdir("medias/".$hash."/");
  11. mkdir("medias/".$hash."/enemy/");
  12. copy("medias/default/index.php", "medias/".$hash."/index.php");
  13. copy("medias/default/player.xml", "medias/".$hash."/player.xml");
  14. copy("medias/default/map.jpg", "medias/".$hash."/map.jpg");
  15. copy("medias/default/soft.mp3", "medias/".$hash."/soft.mp3");
  16. copy("medias/default/tonic.mp3", "medias/".$hash."/tonic.mp3");
  17. copy("medias/default/hard.mp3", "medias/".$hash."/hard.mp3");
  18. copy("medias/default/light.mp3", "medias/".$hash."/light.mp3");
  19. copy("medias/default/dark.mp3", "medias/".$hash."/dark.mp3");
  20. header("location:index.php?msg=11");
  21. }
  22. else {
  23. header("location:index.php?msg=0");
  24. }
  25. ?>