This file contains hidden or 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
| function download_send_headers($filename) { | |
| // disable caching | |
| $now = gmdate("D, d M Y H:i:s"); | |
| header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); | |
| header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate"); | |
| header("Last-Modified: {$now} GMT"); | |
| // force download | |
| header("Content-Type: application/force-download"); | |
| header("Content-Type: application/octet-stream"); |
This file contains hidden or 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 | |
| # RegEx For Eval Removal: \s+(eval\(base64.*?\))\); | |
| exit; | |
| function back_to_for_slash($str) { | |
| return str_replace('\\', '/', $str); | |
| } | |
| $current_dir = back_to_for_slash(dirname(__FILE__) . '/public_html'); | |
| $directory = $current_dir; |
NewerOlder