All pastes #266281 Raw Edit

Anonyme

public text v1 · immutable
·published 2006-12-03 23:47 UTC
rendered paste body
<html>
<head>
<title>Upload de fichiers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h2>Uploader des fichiers</h2>
<blink><font color="#cc0000">Attention aux fichiers avec <br>des espaces, remplacez tout<br> espace par le caractère _<br>avant upload !<br>Merci.<br></blink></font>
<br><form name="upload" enctype="multipart/form-data" method="post" action="upload.php">
  <input type="file" name="file">
  <br><br>
  Choisir le dossier de destination :<br>
  <select name="folder">
    <option value="../ppi20punbb/img/smilies/">Smilies punBB</option>
	<option value="../images/">Images globales</option>
  </select>
  <br><br>
  <input type="submit" name="bouton_submit" value="Envoyer le fichier">
</form>
<br>
<br>
<blockquote>
<b>
<?
$rep = "../ppi20punbb/img/smilies/";
echo "Contenu du dossier ", $rep;
?>
</b>
<br>
<?
$folder = "../ppi20punbb/img/smilies/";
$dossier = opendir($folder);
while ($Fichier = readdir($dossier)) {
  if ($Fichier != "." && $Fichier != "..") {
?>
<?  
	$nomFichier = $folder.$Fichier;
	$Send = str_replace(" ", "%20", $Fichier);
	$nomSend = $folder.$Send;
	//$nomrac = str_replace("../ppi20punbb/img/smilies/", "", $nomFichier);
	?>
	<a href=<?echo "delete.php?",$Send;?>><img src="../images/b_drop.png" border="0" alt=""></a>
	<a href=<?echo $Fichier;?>><?echo $Fichier;?></a>
	<img src=<? echo $nomSend;?> border="0" alt=""><br>
	<?
  }
}
closedir($dossier);
?>
</blockquote>
</body>
</html>