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,10 +366,6 @@
366 function getTime($type) 366 function getTime($type)
367 { 367 {
368 $db = connexion(); 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 $query = "SELECT temps FROM types WHERE nom = '$type'"; 369 $query = "SELECT temps FROM types WHERE nom = '$type'";
374 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); 370 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error());
375 $tab = pg_fetch_assoc($result); 371 $tab = pg_fetch_assoc($result);
@@ -47,7 +47,7 @@ session_start(); @@ -47,7 +47,7 @@ session_start();
47 setup($_POST['raspberry']); 47 setup($_POST['raspberry']);
48 48
49 $temps = getTime($_POST['type']); 49 $temps = getTime($_POST['type']);
50 - file_put_contents('upload/temps', $temps); 50 + file_put_contents('upload/temps.txt', $temps);
51 51
52 exec("super cmd.sh"); 52 exec("super cmd.sh");
53 ?> 53 ?>