|
@ -639,6 +639,9 @@ if (isset($_POST['delete'])) { |
|
|
if (!$size = @getimagesize($file['tmp_name'])) { |
|
|
if (!$size = @getimagesize($file['tmp_name'])) { |
|
|
error($config['error']['invalidimg']); |
|
|
error($config['error']['invalidimg']); |
|
|
} |
|
|
} |
|
|
|
|
|
if (!in_array($size[2], array(IMAGETYPE_PNG, IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_BMP))) { |
|
|
|
|
|
error($config['error']['invalidimg']); |
|
|
|
|
|
} |
|
|
if ($size[0] > $config['max_width'] || $size[1] > $config['max_height']) { |
|
|
if ($size[0] > $config['max_width'] || $size[1] > $config['max_height']) { |
|
|
error($config['error']['maxsize']); |
|
|
error($config['error']['maxsize']); |
|
|
} |
|
|
} |
|
|