Commit 37a44835ff2db66f7e0c7cd66270dac88d3c1e18

Authored by grouille
1 parent 40e67c4b

MAJ

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
site/remove.php
... ... @@ -21,14 +21,15 @@ session_start();
21 21 <h1 style="margin-bottom:20px; margin-top:70px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-history"></i> Suppression d'un capteur</h1>
22 22 <?php
23 23 $nom = $_POST['nom'];
  24 + $numero = getNumero($nom);
  25 + $raspberry = getRaspberry($nom);
  26 + $version = getVersion($nom);
24 27 if(remove($nom))
25 28 {
26 29 $arduino_simple = "[Arduino_delete]\r\n";
27 30 $arduino_spi = "[Arduino_delete]\r\n";
28 31 $nucleo = "[Nucleo_delete]\r\n";
29 32  
30   - $version = getVersion($nom);
31   -
32 33 if($version == 0)
33 34 {
34 35 $ini = $arduino_simple;
... ... @@ -42,8 +43,6 @@ session_start();
42 43 $ini = $nucleo;
43 44 }
44 45  
45   - $numero = getNumero($nom);
46   - $raspberry = getRaspberry($nom);
47 46 $ini = $ini.$raspberry." capteur=".$numero."-".$version." setup=0\n";
48 47 file_put_contents('upload/inventaire.ini', $ini);
49 48  
... ...