diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 20:57:41 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 20:57:41 +1000 |
| commit | 10a8fe28e6d88dccf2ae168edec51055d1b7079d (patch) | |
| tree | fa2c54f92443a3a8ad85e77d80a0a44b816da0d9 /inc/functions.php | |
| parent | 87903f57e327c896dd10f857f782b7432129efd5 (diff) | |
non-image uploads
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/functions.php b/inc/functions.php index e37a367d..2a45c606 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -363,7 +363,7 @@ $query->bindValue(':height', $post['height'], PDO::PARAM_INT); $query->bindValue(':filesize', $post['filesize'], PDO::PARAM_INT); $query->bindValue(':filename', $post['filename']); - $query->bindValue(':filehash', $post['filehash']); + $query->bindValue(':filehash', $post['file']); } else { $query->bindValue(':thumb', null, PDO::PARAM_NULL); $query->bindValue(':thumbwidth', null, PDO::PARAM_NULL); @@ -1363,12 +1363,13 @@ } break; default: - error('Unknwon file extension.'); + error($config['error']['unknownext']); } return $image; } - function resize($src, $width, $height, $destination_pic, $max_width, $max_height, $ext) { + function resize($src, $width, $height, $destination_pic, $max_width, $max_height, $ext) { + global $config; $return = Array(); $x_ratio = $max_width / $width; @@ -1414,7 +1415,7 @@ imagebmp($tmp, $destination_pic); break; default: - error('Unknwon file extension.'); + error($config['error']['unknownext']); } imagedestroy($src); |
