diff --git a/change_map.php b/change_map.php index 8b065e3..b54e54e 100644 --- a/change_map.php +++ b/change_map.php @@ -1,24 +1,26 @@ -Check Uploaded"; else "Erreur !"; +if ( in_array($extension_upload,$extensions_valides) ) { + +$resultat = move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile); + +if ($resultat) header("location:index.php?msg=5"); +else { + header("location:index.php?msg=6"); } -else{ -echo "Erreur !"; + } + +else { + header("location:index.php?msg=6"); } -?> - \ No newline at end of file +?> \ No newline at end of file diff --git a/index.php b/index.php index e8d8f97..ab635d6 100755 --- a/index.php +++ b/index.php @@ -25,6 +25,11 @@ $message[5]='

OK !

Votre carte est à jour !

'; +$message[6]=' +
+ +

ERREUR !

+

Echec de mise à jour de votre carte. Seul les fichiers .jpg (10 Mo max) sont autorisés.

'; ?> @@ -241,30 +246,20 @@ $message[5]=' diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/.xml deleted file mode 100644 index d0bdfef..0000000 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - 10 - - - 0 - 0 - 0 - 0 - 0 - 0 - - default - ... - - diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg b/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg new file mode 100644 index 0000000..e807ec2 Binary files /dev/null and b/medias/c0f08ae603e364cb554fe71c9fc94ffd/map.jpg differ diff --git a/medias/map.jpg b/medias/map.jpg deleted file mode 100644 index e69de29..0000000