summaryrefslogtreecommitdiff
path: root/forum/htdocs
diff options
context:
space:
mode:
authordeva <deva>2008-10-12 16:02:03 +0000
committerdeva <deva>2008-10-12 16:02:03 +0000
commit28856d6f9b7d726b1681df9384f3ef000dbf6f4c (patch)
tree4297943b1d5656ee2b0c01d3aabac5ddb414d45d /forum/htdocs
parented97119bc3a7203b11d92cf170869a12bd2da953 (diff)
Made file preview (original image or png with filename as text). Added error image as png with error text.
Diffstat (limited to 'forum/htdocs')
-rw-r--r--forum/htdocs/config.php.defaults2
-rw-r--r--forum/htdocs/index.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/forum/htdocs/config.php.defaults b/forum/htdocs/config.php.defaults
index 51f7f4e..7f0d643 100644
--- a/forum/htdocs/config.php.defaults
+++ b/forum/htdocs/config.php.defaults
@@ -6,5 +6,5 @@ $ADMIN_TIMEOUT = 100000;
$PERMSTORE = $DATA_DIR . "/files";
$IMAGECACHE = $DATA_DIR . "/imagecache";
$LOG_FILE = $DATA_DIR . "/forum.log";
-$FILE_MAX_SIZE = 5*1024*1024; // 5kb
+$FILE_MAX_SIZE = 5*1024; // 5kb
?>
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;
}
}