Changeset 674187
- Timestamp:
- 02/27/2013 06:08:53 PM (13 years ago)
- Location:
- force-image-download/trunk
- Files:
-
- 2 edited
-
force-download.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
force-image-download/trunk/force-download.php
r653495 r674187 3 3 Plugin Name: Force Images Download 4 4 Description: Force the download of image media files by adding the 'forceDownload' css class to any link. 5 Version: 1. 0.15 Version: 1.1 6 6 Author: Aurélien Chappard 7 7 Author URI: http://www.deefuse.fr/ … … 71 71 { 72 72 $type = $mime_types[$extension]; 73 //echo $type; 74 75 header('Content-Description: File Transfer'); 76 header("Content-disposition: attachment; filename=".basename($urlFileToDl)); 77 header("Content-Type: $type"); 78 header("Content-Transfer-Encoding: $type\n" ); 79 header("Content-Length: ".filesize($urlFileToDl)); 80 ob_clean(); 81 flush(); 82 readfile( $urlFileToDl); 83 exit(); 73 84 } 74 75 header('Content-Description: File Transfer'); 76 header("Content-disposition: attachment; filename=".basename($urlFileToDl)); 77 header("Content-Type: $type"); 78 header("Content-Transfer-Encoding: $type\n" ); 79 header("Content-Length: ".filesize($urlFileToDl)); 80 ob_clean(); 81 flush(); 82 readfile( $urlFileToDl); 83 exit(); 85 else{ 86 wp_redirect(home_url());exit(); 87 } 84 88 } 85 89 } -
force-image-download/trunk/readme.txt
r653495 r674187 4 4 Requires at least: 3.0.0 5 5 Tested up to: 3.5 6 Stable tag: 1. 0.16 Stable tag: 1.1 7 7 License: GPL 8 8 … … 29 29 == Changelog == 30 30 31 = 1.1 = 32 * Correction security break (thanks you Francisco Torres) 33 31 34 = 1.0.1 = 32 35 * Move screeshot to asset directory
Note: See TracChangeset
for help on using the changeset viewer.