Use this line here:
if ($userfile_type == "image/gif" or $userfile_type == "image/pjpeg" or $userfile_type == "image/jpeg") {
So in code it would look like this:
if ($userfile_type == "image/gif" or $userfile_type == "image/pjpeg" or $userfile_type == "image/jpeg") {
// Copy the uploaded file to the proper directory
if (copy ($userfile, "$full_path$username$date$time$userfile_name") ) {
// Initialize BBCode tags for use in the Image URL - I know this is a cheap way to do this, but I was rushing :-)
$open_img_tag = "

";
// Remove the temp file from the server
unlink ($userfile);
// Begin User Code Presentation Page
print "<font face=\"arial\" size=\"-1\"><b><p>Copy the following code (from

) and insert it into your post:</p>";
print "<font face=\"arial\" size=\"-1\"><b><p><form><input type=\"text\" size=\"50\" value=\"" . $open_img_tag . "http://www.pbreview.com/fpics/$username$date$time$userfile_name$close_img_tag\"> </form></p>";
print "<font face=\"arial\" size=\"-1\"><b><p><a href=\"javascript
:self.close()\"><font color=\"#FF9900\">Close This Window</font></a></p>";
print "<font face=\"arial\" size=\"-1\"><b><p><a href=\"http://www.pbreview.com/fpics/$username$date$time$userfile_name\" target=\"_blank\"><font color=\"#FF9900\">Click here to preview your image</font></font></a></p>";
}
} else {
printf("<font face=\"arial\" size=\"-1\"><b>Illegal file type. It has to be a jpg or gif. Please <a href=\"javascript
:history.back()\"><font color=\"#FF9900\">click here</font></a> to go back and try again.");
}