Intial revision.

This commit is contained in:
root 2010-03-21 14:50:44 -04:00
commit f87492d73e
19 changed files with 607 additions and 0 deletions

18
modules/file.php Normal file
View file

@ -0,0 +1,18 @@
<?php
class file extends admin
{
public function __default()
{
$path = getcwd() . '/../incoming/' . $_REQUEST['id'] . '/';
$files = scandir($path);
$file = $path . $files[2];
header('Content-Type: ' . mime_content_type($file));
$handle = fopen($file, 'rb');
fpassthru($handle);
exit();
}
}
?>