summaryrefslogtreecommitdiff
path: root/forum/utils/files.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-11 10:55:28 +0000
committerdeva <deva>2008-10-11 10:55:28 +0000
commit07882614bfd402132d2f8df23cc23c2c013b5f14 (patch)
treec66a6cd2ce98d04921882176e90a2226c7db5350 /forum/utils/files.php
parentf6d90d8d3504fc1ba428da81e77c4484c4646f30 (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.php5
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&amp;fid=" . $this->fid;
}
public function show()
{
global $PERMSTORE;
echo "<div class=\"file\">\n";
- echo " <a class=\"delete\" href=\"?mode=files&amp;task=delete&amp;fid=" . $this->fid . "\">Delete</a>\n";
+ echo " <a class=\"delete\" href=\"?mode=filehandler&amp;task=delete&amp;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";