Landing missing file for the approval queue, fixes 404 error when trying to install the files.

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-11-01 16:40:32 +00:00
parent d97ebd058d
commit 22149ee5b9

View File

@ -0,0 +1,10 @@
<?php
require"../core/config.php";
$filename = basename($_SERVER["PATH_INFO"]);
$file = "$repositorypath/approval/$filename";
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . filesize($file));
header('Content-Disposition: attachment; filename=' . basename($file));
readfile($file);
?>