summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-10-12 11:54:45 +0000
committerdeva <deva>2008-10-12 11:54:45 +0000
commitdbc0b3f3bbe3cbc048be27108ad1a9e67458b378 (patch)
treee1cf3218bd3d2069853415942a8ecf31cd713fbe
parent3f6433096ba4182782463ad7a0d9824bedfc17f0 (diff)
We dont need this anymore.
-rw-r--r--forum/htdocs/file.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/forum/htdocs/file.php b/forum/htdocs/file.php
deleted file mode 100644
index abf02fb..0000000
--- a/forum/htdocs/file.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-include_once("config.php");
-include_once($UTIL_DIR . "/mimetypes.php");
-include_once($UTIL_DIR . "/files.php");
-
-$files = new Files($DATA_DIR . "/files.xml");
-$file = $files->getFile($fid);
-
-$filename = $PERMSTORE . "/" . $file->fid;
-
-$download = false;
-foreach($MIME_TYPES as $m) {
- if($m->name == $file->mimetype) $download = !$m->show;
-}
-
-//header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
-header('Content-Description: File Transfer');
-header('Content-Type: ' . $file->mimetype);
-header('Content-Length: ' . filesize($filename));
-
-if($download) header('Content-Disposition: attachment; filename=' . basename($file->name));
-else header('Content-Disposition: inline; filename=' . basename($file->name));
-
-readfile($filename);
-
-?> \ No newline at end of file