Commit e8bfaeb8b5e66f9e4af7ab8491cd8015abaadf31
1 parent
cc741eda
MAJ fonction upload
Showing
3 changed files
with
4 additions
and
5 deletions
Show diff stats
site/accesBase.php
... | ... | @@ -88,7 +88,7 @@ |
88 | 88 | //Test3: extension |
89 | 89 | $ext = substr(strrchr($_FILES[$index]['name'],'.'),1); |
90 | 90 | if ($extensions !== FALSE AND !in_array($ext,$extensions)) return FALSE; |
91 | - $name = "binaire"; | |
91 | + $name = "main"; | |
92 | 92 | $extension_upload = strtolower( substr( strrchr($_FILES['fichier']['name'], '.') ,1) ); |
93 | 93 | $dossier = "upload/"; |
94 | 94 | $fichier = $name.".".$extension_upload; |
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 | function load($tmp_name, $name) |
100 | 100 | { |
101 | 101 | $dossier = "upload/"; |
102 | - $fichier = "binaire.c"; | |
102 | + $fichier = "main.c"; | |
103 | 103 | $taille_max = 100000; |
104 | 104 | $taille = filesize($tmp_name); |
105 | 105 | $extensions = Array('.c'); | ... | ... |
site/fichiersRPI/fichiersRPI.zip
No preview for this file type
site/upload/inventaire.ini