Commit e8bfaeb8b5e66f9e4af7ab8491cd8015abaadf31

Authored by root
1 parent cc741eda

MAJ fonction upload

site/accesBase.php
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 //Test3: extension 88 //Test3: extension
89 $ext = substr(strrchr($_FILES[$index]['name'],'.'),1); 89 $ext = substr(strrchr($_FILES[$index]['name'],'.'),1);
90 if ($extensions !== FALSE AND !in_array($ext,$extensions)) return FALSE; 90 if ($extensions !== FALSE AND !in_array($ext,$extensions)) return FALSE;
91 - $name = "binaire"; 91 + $name = "main";
92 $extension_upload = strtolower( substr( strrchr($_FILES['fichier']['name'], '.') ,1) ); 92 $extension_upload = strtolower( substr( strrchr($_FILES['fichier']['name'], '.') ,1) );
93 $dossier = "upload/"; 93 $dossier = "upload/";
94 $fichier = $name.".".$extension_upload; 94 $fichier = $name.".".$extension_upload;
@@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
99 function load($tmp_name, $name) 99 function load($tmp_name, $name)
100 { 100 {
101 $dossier = "upload/"; 101 $dossier = "upload/";
102 - $fichier = "binaire.c"; 102 + $fichier = "main.c";
103 $taille_max = 100000; 103 $taille_max = 100000;
104 $taille = filesize($tmp_name); 104 $taille = filesize($tmp_name);
105 $extensions = Array('.c'); 105 $extensions = Array('.c');
site/fichiersRPI/fichiersRPI.zip
No preview for this file type
site/upload/inventaire.ini
1 -[Arduino]  
2 -172.26.145.113 capteur=1-0  
3 - 1 +[Arduino_init]
  2 +172.26.145.113 capteur=2-0 setup=0