FILE_HASH in config.php

This commit is contained in:
Savetheinternet committed 2011-01-02 22:45:25 +11:00
1 parent 90b48f128b
commit e23aa7a736
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -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']);