From e8bfaeb8b5e66f9e4af7ab8491cd8015abaadf31 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Mar 2020 10:33:47 +0000 Subject: [PATCH] MAJ fonction upload --- site/accesBase.php | 4 ++-- site/fichiersRPI/fichiersRPI.zip | Bin 3175 -> 0 bytes site/upload/inventaire.ini | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/site/accesBase.php b/site/accesBase.php index d98c3b8..4ab08b4 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -88,7 +88,7 @@ //Test3: extension $ext = substr(strrchr($_FILES[$index]['name'],'.'),1); if ($extensions !== FALSE AND !in_array($ext,$extensions)) return FALSE; - $name = "binaire"; + $name = "main"; $extension_upload = strtolower( substr( strrchr($_FILES['fichier']['name'], '.') ,1) ); $dossier = "upload/"; $fichier = $name.".".$extension_upload; @@ -99,7 +99,7 @@ function load($tmp_name, $name) { $dossier = "upload/"; - $fichier = "binaire.c"; + $fichier = "main.c"; $taille_max = 100000; $taille = filesize($tmp_name); $extensions = Array('.c'); diff --git a/site/fichiersRPI/fichiersRPI.zip b/site/fichiersRPI/fichiersRPI.zip index 2fb0022..3bb882c 100644 Binary files a/site/fichiersRPI/fichiersRPI.zip and b/site/fichiersRPI/fichiersRPI.zip differ diff --git a/site/upload/inventaire.ini b/site/upload/inventaire.ini index 0883f96..d8d4b96 100644 --- a/site/upload/inventaire.ini +++ b/site/upload/inventaire.ini @@ -1,3 +1,2 @@ -[Arduino] -172.26.145.113 capteur=1-0 - +[Arduino_init] +172.26.145.113 capteur=2-0 setup=0 -- libgit2 0.21.2