c10d2abc
rcavalie
ajout fichiers se...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
session_start();
if($_SESSION['name']){
if (isset($_FILES['upload'])) {
$uploadDir = "./";
$uploadedFile = $uploadDir . basename($_FILES['upload']['name']);
if(move_uploaded_file($_FILES['upload']['tmp_name'], $uploadedFile)) {
//chmod($uploadedFile, 0777);
header('Location: workArea.php');
} else {
echo "Error: Unknown! <a href='workArea.php'>Click here to continue</a>";
}
}
}
else header('Location: index.php');
?>
|