|
- <?php
- include "header.php";
- connecte("ecomonde");
- $hash=md5($email);
- $path="./medias/".$hash;
-
- if ($email) {
- $sql="UPDATE membres SET version='$latest_commit'";
- mysql_query($sql) or die(include("index.php?msg=0"));
- exec("rm -rf {$path}");
- mkdir("medias/".$hash."/");
- mkdir("medias/".$hash."/enemy/");
- copy("medias/default/index.php", "medias/".$hash."/index.php");
- copy("medias/default/player.xml", "medias/".$hash."/player.xml");
- copy("medias/default/map.jpg", "medias/".$hash."/map.jpg");
- copy("medias/default/soft.mp3", "medias/".$hash."/soft.mp3");
- copy("medias/default/tonic.mp3", "medias/".$hash."/tonic.mp3");
- copy("medias/default/hard.mp3", "medias/".$hash."/hard.mp3");
- copy("medias/default/light.mp3", "medias/".$hash."/light.mp3");
- copy("medias/default/dark.mp3", "medias/".$hash."/dark.mp3");
- header("location:index.php?msg=11");
- }
- else {
- header("location:index.php?msg=0");
- }
- ?>
|