diff --git a/bbs.php b/bbs.php index 81a0399..e1c4c3e 100644 --- a/bbs.php +++ b/bbs.php @@ -69,7 +69,7 @@ // Validate and move the uploaded image file, if necessary if(!empty($img['tmp_name'])) { - if ((($img['type'] == 'image/gif') || ($img['type'] == 'image/jpeg') || ($img['type'] == 'image/pjpeg') + if((($img['type'] == 'image/gif') || ($img['type'] == 'image/jpeg') || ($img['type'] == 'image/pjpeg') || ($img['type'] == 'image/png') || ($img['type'] == 'image/bmp')) && ($img['size'] > 0) && ($img['size'] <= MAX_FILE_SIZE)) { if($img['error'] == 0) { @@ -142,7 +142,7 @@ // Print posts $show_delete = FALSE; echo '