diff --git a/site/accesBase.php b/site/accesBase.php index 459ed1f..944867e 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -98,7 +98,7 @@ function load($tmp_name, $name) { - $dossier = "IMA3_P10/site/upload/"; + $dossier = "upload/"; $fichier = "binaire.c"; $taille_max = 100000; $taille = filesize($tmp_name); diff --git a/site/form.php b/site/form.php new file mode 100644 index 0000000..418e21d --- /dev/null +++ b/site/form.php @@ -0,0 +1,5 @@ +
diff --git a/site/reception.php b/site/reception.php index 24081d6..7c81cd0 100644 --- a/site/reception.php +++ b/site/reception.php @@ -46,7 +46,7 @@ if(isset($_POST['sensor'])) if(!$err) { - file_put_contents('IMA3_P10/site/upload/inventaire.ini', $ini); + file_put_contents('upload/inventaire.ini', $ini); $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']); if($upload) { diff --git a/site/upload/binaire.c b/site/upload/binaire.c index 4240ab6..752fe7a 100644 --- a/site/upload/binaire.c +++ b/site/upload/binaire.c @@ -1,32 +1,18 @@ #include