Browse Source

Fix bug update version

master
heuzef 9 years ago
parent
commit
55d18d19db
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      change_settings.php
  2. +1
    -1
      update.php
  3. +1
    -1
      version.txt

+ 1
- 1
change_settings.php View File

@@ -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");
?>

+ 1
- 1
update.php View File

@@ -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."/");


+ 1
- 1
version.txt View File

@@ -1 +1 @@
c202d7deda9023ab6888bdba3da44e97ea2d1d6d
9719f80555f7e964cee49a941eaedc4f3f2bd07e

Loading…
Cancel
Save