Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function veridot($string){
- while(substr($string,0,1)=="."):
- $string=substr($string,1);
- endwhile;
- return $string;
- }
- function filtrar($string) {
- $string = stripslashes($string);
- $string = str_replace("/", "", $string);
- $string = str_replace("\\", "", $string);
- $string = str_replace("%", "", $string);
- $string = veridot($string);
- return $string;
- }
- $doc=filtrar($_GET["link"]);
- header('Content-Type:application/octet-stream');
- header('Content-Disposition:attachment; filename="'.$doc.'"');
- readfile($doc);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement