1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
<?php
$path='albumphoto';
global $currentlang, $language, $path;
//!$currentlang ? $currentlang = $language : $currentlang = $currentlang ;
function explorateur($rep)
{
global $path;
$path="Valeur2";
[...]
}
OpenTable();
echo'<table width="90%" border="0">';
echo'<tr>';
echo'<td width="50%">';
echo'<form action="" method="post" enctype="multipart/form-data">';
echo'<p>';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><br><input type="submit" value=" VALIDER " />';
echo'</p>';
echo'</form>';
echo'</td>';
echo'<td width="100%">';
if (isset($_GET['chemin']) == false)
{
$dossier = 'chine' ;
}
else
{
$dossier = $_GET['chemin'] ;
}
explorateur($dossier) ;
echo'</td>';
echo'</tr>';
echo'</table>';
[...]
if(move_uploaded_file($tmp_name, "$path/$name")){
$verif = exif_imagetype("$path/$name");
if (empty($verif)) {
unlink("$path/$name");
echo "". _noupload ."";
echo "<br><br><center><a href = \"./modules.php?name=albumphoto_upload\">". _retour
."</center></a>";
exit("");
}
echo "$path";
CloseTable();
echo "$path - $path";
?> |
Partager