View.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 05:02:11 +0000 (13:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 05:02:11 +0000 (13:02 +0800)
View.php

index da34b34..ca741ed 100644 (file)
--- a/View.php
+++ b/View.php
@@ -47,7 +47,15 @@ class Pman_Ftp_View extends Pman_Ftp_List
                 exit;
             
             
-            default: 
+            default:
+                // handle download.
+                require_once 'File/Convert.php';
+                $f = new File_Convert($fp, $mt);
+                $f->serve('attachment');
+                
+            
+            
+            
                 die("Can not handle " . $mt . " yet");
         }