diff options
author | deva <deva> | 2008-10-12 17:04:43 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-12 17:04:43 +0000 |
commit | 870a449effd7b1c80b8d7bc5808fad100f21308f (patch) | |
tree | 3988462de42250d4829a9d1ce22171b0e549a33e /forum/utils/files.php | |
parent | bf738e366e34c330649a9f36a3b2001231230b3a (diff) |
Downscaled file preview images to 64x64, added the previews to the filehandler.
Diffstat (limited to 'forum/utils/files.php')
-rw-r--r-- | forum/utils/files.php | 1 |
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&task=delete&fid=" . $this->fid . "\">Delete</a>\n"; } + echo " <div class=\"preview\"><img src=\"?mode=file&preview=1&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"; |