Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_GET['addon'])) {
- if(preg_match("^[a-zA-Z0-9-_]*$", $_GET['addon'])) {
- if(file_exists($_GET['addon'])) {
- header("Content-disposition: attachment;filename=".$_GET['addon'].".zip");
- readfile($_GET['addon']);
- } else {
- echo "Le fichier n'existe pas.";
- }
- } else {
- echo "Le nom du fichier est incorrect.";
- }
- } else {
- echo "Le nom du fichier est incorrect.";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement