From e23aa7a7368f9c373f7593976ab84f8f093e5cbd Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 2 Jan 2011 22:45:25 +1100 Subject: FILE_HASH in config.php --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index 56bddd5d..169a55e1 100644 --- a/post.php +++ b/post.php @@ -166,7 +166,8 @@ error(ERR_MAXSIZE); } - $post['filehash'] = md5_file($post['file']); + $hash_function = FILE_HASH; + $post['filehash'] = $hash_function($post['file']); $post['filesize'] = filesize($post['file']); $image = createimage($post['extension'], $post['file']); -- cgit v1.3