forked from leftypol/leftypol
FILE_HASH in config.php
This commit is contained in:
parent
90b48f128b
commit
e23aa7a736
2 changed files with 7 additions and 1 deletions
3
post.php
3
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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue