Created
May 14, 2014 17:27
-
-
Save martiell/b1055156d56d23044c09 to your computer and use it in GitHub Desktop.
The Genius of Creative State.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = urldecode($_GET['F']); | |
$boom = explode("/", $file); | |
$count = count($boom); | |
$file_name = $boom[$count - 1]; | |
header("Content-disposition: attachment; filename=".$file_name); | |
header("Content-type: application/pdf"); | |
readfile($file); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
index.php: