Commit 94d066816a4d86d2d8d172fbc3420748ec17056d
1 parent
705b4085
MAJ Site
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
site/accesBase.php
... | ... | @@ -98,8 +98,8 @@ |
98 | 98 | |
99 | 99 | function load($tmp_name, $name) |
100 | 100 | { |
101 | - $dossier = "upload/"; | |
102 | - $fichier = "main.c"; | |
101 | + $dossier = "IMA3_P10/site/upload/"; | |
102 | + $fichier = "binaire.c"; | |
103 | 103 | $taille_max = 100000; |
104 | 104 | $taille = filesize($tmp_name); |
105 | 105 | $extensions = Array('.c'); | ... | ... |
site/header.php
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | <?php |
7 | 7 | if(isset($_SESSION['Login'], $_SESSION['Password'])) |
8 | 8 | { |
9 | - require("accesBase.php") ; | |
9 | + require_once("accesBase.php") ; | |
10 | 10 | $membre = getMembreByIdPwd($_SESSION['Login'], $_SESSION['Password']); |
11 | 11 | ?> |
12 | 12 | <!-- <a href="settings.php"><i class="fa fa-cog"></i> <?php echo $membre['prenom']; echo ' '; echo $membre['nom'];?></a> --> | ... | ... |
site/reception.php
... | ... | @@ -46,7 +46,7 @@ if(isset($_POST['sensor'])) |
46 | 46 | |
47 | 47 | if(!$err) |
48 | 48 | { |
49 | - file_put_contents('upload/inventaire.ini', $ini); | |
49 | + file_put_contents('IMA3_P10/site/upload/inventaire.ini', $ini); | |
50 | 50 | $upload = load($_FILES['fichier']['tmp_name'], $_FILES['fichier']['name']); |
51 | 51 | if($upload) |
52 | 52 | { | ... | ... |