Intial revision.
This commit is contained in:
commit
f87492d73e
19 changed files with 607 additions and 0 deletions
18
modules/file.php
Normal file
18
modules/file.php
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue