Permalink
Browse files

Changing directory structure

git-svn-id: http://svn.wp-plugins.org/wp-publication-archive/trunk@394832 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information...
1 parent ab01340 commit 61df63408fc586aa4a4e421a2299527f3678660e @ericmann committed Jun 9, 2011
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
View
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,17 +1,17 @@
-<?php
-require_once('class.mimetype.php');
-$mime = new mimetype();
-
-$fPath = $_GET['file'];
-
-$fType = $mime->getType( $fPath );
-
-$fName = basename($fPath);
-
-$origname = preg_replace('/_#_#\d*/','',$fName);
-
-header('Content-type: "'.$fType.'"');
-
-header('Content-Disposition: attachment; filename="'.$origname.'"');
-
+<?php
+require_once('class.mimetype.php');
+$mime = new mimetype();
+
+$fPath = $_GET['file'];
+
+$fType = $mime->getType( $fPath );
+
+$fName = basename($fPath);
+
+$origname = preg_replace('/_#_#\d*/','',$fName);
+
+header('Content-type: "'.$fType.'"');
+
+header('Content-Disposition: attachment; filename="'.$origname.'"');
+
readfile($fPath);

0 comments on commit 61df634

Please sign in to comment.