Current Path : /var/www/clients/client35/web46/web/QR/ |
Current File : /var/www/clients/client35/web46/web/QR/descarga.php |
<?php $f = $_GET["f"]; if(strpos($f,"/")!==false){ die("No puedes navegar por otros directorios"); } header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"$f\"\n"); $fp=fopen("$f", "r"); fpassthru($fp); ?>