diff --git a/change_settings.php b/change_settings.php index a8e623a..29879bd 100644 --- a/change_settings.php +++ b/change_settings.php @@ -5,7 +5,7 @@ $id=$_POST['id']; $pseudo=$_POST['pseudo']; $pass=sha1($_POST['password']); -$sql="UPDATE membres SET pseudo='$pseudo',pass='$pass'WHERE id=$id"; +$sql="UPDATE membres SET pseudo='$pseudo',pass='$pass' WHERE id=$id"; mysql_query($sql) or die(include('index.php?msg=0')); if($sql) header("location:index.php?msg=1"); ?> diff --git a/update.php b/update.php index 0625b8b..b294a6c 100644 --- a/update.php +++ b/update.php @@ -5,7 +5,7 @@ $hash=md5($email); $path="./medias/".$hash; if ($email) { - $sql="UPDATE membres SET version='$latest_commit'"; + $sql="UPDATE membres SET version='$latest_commit' WHERE id=$id"; mysql_query($sql) or die(include("index.php?msg=0")); exec("rm -rf {$path}"); mkdir("medias/".$hash."/"); diff --git a/version.txt b/version.txt index 8c5be89..c49e86a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -c202d7deda9023ab6888bdba3da44e97ea2d1d6d +9719f80555f7e964cee49a941eaedc4f3f2bd07e