Commit 06e8e3d124521db7b4adb73e5c99f7b43f218e47

Authored by grouille
1 parent c455f82a

MAJ

Showing 2 changed files with 1 additions and 5 deletions   Show diff stats
site/accesBase.php
... ... @@ -366,10 +366,6 @@
366 366 function getTime($type)
367 367 {
368 368 $db = connexion();
369   - $query = "INSERT INTO types values('Température', 5)";
370   - $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error());
371   - $query = "INSERT INTO types values('Distance', 1)";
372   - $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error());
373 369 $query = "SELECT temps FROM types WHERE nom = '$type'";
374 370 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error());
375 371 $tab = pg_fetch_assoc($result);
... ...
site/add.php
... ... @@ -47,7 +47,7 @@ session_start();
47 47 setup($_POST['raspberry']);
48 48  
49 49 $temps = getTime($_POST['type']);
50   - file_put_contents('upload/temps', $temps);
  50 + file_put_contents('upload/temps.txt', $temps);
51 51  
52 52 exec("super cmd.sh");
53 53 ?>
... ...