Rev 185 Rev 1189
Line 116... Line 116...
116 $svnrep->getFileContents($path, "", $rev); 116 $svnrep->getFileContents($path, "", $rev);
117 117
118 exit; 118 exit;
119 } 119 }
120   120  
-   121 // Explicitly requested file as attachment
-   122 if (isset($_REQUEST['getfile']))
-   123 {
-   124 $base = basename($path);
-   125  
-   126 header("Content-Type: application/octet-stream");
-   127 header("Content-Length: $size");
-   128 header("Content-Disposition: inline; filename=".urlencode($base));
-   129  
-   130 $svnrep->getFileContents($path, "", $rev);
-   131  
-   132 exit;
-   133 }
-   134  
121 // There's no associated MIME type. Show the file using WebSVN. 135 // There's no associated MIME type. Show the file using WebSVN.
122   136  
123 $url = $config->getURL($rep, $path, "file"); 137 $url = $config->getURL($rep, $path, "file");
124   138  
125 if ($rev != $youngest) 139 if ($rev != $youngest)
Line 141... Line 155...
141 $vars["prevdifflink"] = "<a href=\"${url}rev=$passrev&amp;sc=$showchanged\">${lang["DIFFPREV"]}</a>"; 155 $vars["prevdifflink"] = "<a href=\"${url}rev=$passrev&amp;sc=$showchanged\">${lang["DIFFPREV"]}</a>";
142   156  
143 $url = $config->getURL($rep, $path, "blame"); 157 $url = $config->getURL($rep, $path, "blame");
144 $vars["blamelink"] = "<a href=\"${url}rev=$passrev&amp;sc=$showchanged\">${lang["BLAME"]}</a>"; 158 $vars["blamelink"] = "<a href=\"${url}rev=$passrev&amp;sc=$showchanged\">${lang["BLAME"]}</a>";
145   159  
-   160 $url = $config->getURL($rep, $path, "get");
-   161 $vars["getfile"] = "<a href=\"${url}getfile&amp;rev=$passrev&amp;sc=$showchanged\">${lang["GETFILE"]}</a>";
-   162  
146 $listing = array (); 163 $listing = array ();
147   164  
148 $vars["version"] = $version; 165 $vars["version"] = $version;
149   166  
150 if (!$rep->hasReadAccess($path, false)) 167 if (!$rep->hasReadAccess($path, false))