diff options
author | deva <deva> | 2008-10-11 10:55:28 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-11 10:55:28 +0000 |
commit | 07882614bfd402132d2f8df23cc23c2c013b5f14 (patch) | |
tree | c66a6cd2ce98d04921882176e90a2226c7db5350 /forum/utils/files.php | |
parent | f6d90d8d3504fc1ba428da81e77c4484c4646f30 (diff) |
Did a lot of work on the imagecache, and the filehandler. Now both are functional, and used indirectly throught index.php, thus requiering login for access.
Diffstat (limited to 'forum/utils/files.php')
-rw-r--r-- | forum/utils/files.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/forum/utils/files.php b/forum/utils/files.php index d714ba2..6cae023 100644 --- a/forum/utils/files.php +++ b/forum/utils/files.php @@ -10,15 +10,14 @@ class File { public function link() { - global $PERMSTORE; - return "file.php?fid=" . $this->fid; + return "?mode=file&fid=" . $this->fid; } public function show() { global $PERMSTORE; echo "<div class=\"file\">\n"; - echo " <a class=\"delete\" href=\"?mode=files&task=delete&fid=" . $this->fid . "\">Delete</a>\n"; + echo " <a class=\"delete\" href=\"?mode=filehandler&task=delete&fid=" . $this->fid . "\">Delete</a>\n"; echo " <div class=\"filename\">Filename: <a href=\"" . $this->link() . "\">" . $this->name . "</a>(" . $this->mimetype. ")</div>\n"; echo " <div class=\"filesize\">Size: " . ceil(filesize($PERMSTORE . "/" . $this->fid) / 1024) . "kb</div>\n"; echo "</div>\n"; |