summaryrefslogtreecommitdiff
path: root/forum/utils/files.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/files.php')
-rw-r--r--forum/utils/files.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/forum/utils/files.php b/forum/utils/files.php
index b9758ae..e17ca8b 100644
--- a/forum/utils/files.php
+++ b/forum/utils/files.php
@@ -21,6 +21,7 @@ class File {
if($current_user->uid == 0) {
echo " <a class=\"delete\" href=\"?mode=filehandler&amp;task=delete&amp;fid=" . $this->fid . "\">Delete</a>\n";
}
+ echo " <div class=\"preview\"><img src=\"?mode=file&amp;preview=1&amp;fid=" . $this->fid . "\"</div>\n";
echo " <div class=\"filename\">Filename: <a href=\"" . $this->link() . "\">" . $this->name . "</a> (" . $this->mimetype. ")</div>\n";
echo " <div class=\"fileuser\">Uploaded by: " . $users->getUser($this->uid)->name . "</div>\n";
echo " <div class=\"filesize\">Size: " . ceil(filesize($PERMSTORE . "/" . $this->fid) / 1024) . "kb</div>\n";