From 28856d6f9b7d726b1681df9384f3ef000dbf6f4c Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 12 Oct 2008 16:02:03 +0000 Subject: Made file preview (original image or png with filename as text). Added error image as png with error text. --- forum/htdocs/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'forum/htdocs/index.php') diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php index 99169ab..ab63d9b 100644 --- a/forum/htdocs/index.php +++ b/forum/htdocs/index.php @@ -17,7 +17,8 @@ if($current_user) { case "file": include_once($UTIL_DIR. "/file.php"); - getFile($fid); + if($preview) getFilePreview($fid); + else getFile($fid); return; } } -- cgit v1.2.3