permission to photograph and display your subject, and that your subject is over the age of 18."; } if(!$photographeremail) { $processerror = "Please include your email address. It will not be displayed and we will not add you to any email lists."; } if(!$album) { $processerror = "Please select an album for your photograph."; } if ($ext != 'jpeg' && $ext != 'jpg' && $ext != 'JPG' && $ext != 'JPEG' && $ext != 'png' && $ext != 'PNG') { $processerror = 'Sorry. Only .jpg or .png images can be uploaded.'; } if(!$name) { $processerror = "Please select a photo to be uploaded."; } if (!$processerror && $ext) { $photoid = uniqid(rand()).'.'.$ext; $target = "photoalbums/$album/$photoid"; $directoryName = "photoalbums/$album"; if(!is_dir($directoryName)){ mkdir($directoryName, 0755, true); } // Content type if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { header('Content-Type: image/jpeg'); } if($ext == 'png' || $ext == 'PNG') { header('Content-Type: image/png'); } // Get new dimensions list($width_orig, $height_orig) = getimagesize($_FILES['imageuploaded']['tmp_name']); ini_set("memory_limit","10000M"); if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { $image = imagecreatefromjpeg($_FILES['imageuploaded']['tmp_name']); } if($ext == 'png' || $ext == 'PNG') { $image = imagecreatefrompng($_FILES['imageuploaded']['tmp_name']); } if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { imagejpeg($image, "$target"); } if($ext == 'png' || $ext == 'PNG') { imagepng($image, "$target"); } $width = 800; $height = 800; $target = "photoalbums/$album/slides/$photoid"; $directoryName = "photoalbums/$album/slides"; if(!is_dir($directoryName)){ mkdir($directoryName, 0755, true); } if($width_orig > $width || $height_orig > $height) { $highres = 1; $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } $image_p = imagecreatetruecolor($width, $height); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { imagejpeg($image_p, "$target"); } if($ext == 'png' || $ext == 'PNG') { imagepng($image_p, "$target"); } } if($width_orig <= $width && $height_orig <= $height) { if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { imagejpeg($image, "$target"); } if($ext == 'png' || $ext == 'PNG') { imagepng($image, "$target"); } } $width = 150; $height = 150; $target = "photoalbums/$album/thumbs/$photoid"; $directoryName = "photoalbums/$album/thumbs"; if(!is_dir($directoryName)){ mkdir($directoryName, 0755, true); } if($width_orig > $width || $height_orig > $height) { $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } $image_p = imagecreatetruecolor($width, $height); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { imagejpeg($image_p, "$target"); } if($ext == 'png' || $ext == 'PNG') { imagepng($image_p, "$target"); } } if($width_orig <= $width && $height_orig <= $height) { if($ext == 'jpg' || $ext == 'jpeg' || $ext == 'JPG' || $ext == 'JPEG') { imagejpeg($image, "$target"); } if($ext == 'png' || $ext == 'PNG') { imagepng($image, "$target"); } } $insertphoto = "INSERT INTO photos (photoid, album, caption, credit, photoemail, website, highres, permission) VALUES ('$photoid', '$album', '$captionslashed', '$creditslashed', '$photographeremail', '$website', '$highres', '$permission')"; mysql_query($insertphoto) or die ('Error updating the database with photo information.
Please try again, or if the problem persists, contact us at support@sffb.com for help.

('.mysql_error().')'); $message = "Photo ID: $photoid
Click to view and approve: https://sffb.com/photoapproval.php?photoid=$photoid

Album: $album
Caption: $caption
Credit: $credit
Photographer Email: $photographeremail
Website: $website
Permission: $permission

"; //$to = "fedorbu@yahoo.com,panta@panta.me"; $to = "fedorbu@yahoo.com"; //$bcc = "fedorbu@yahoo.com"; $from = "support@sffb.com"; $subject = "New Photo Uploaded at SFFB"; $headers = "From: $from\r\n" . "Bcc: $bcc\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n"; @mail($to, $subject, $message, $headers); $submission_success = "Photo uploaded for review. You can select another photo to upload."; } } ?>

Upload Photo

'.$submission_success.'

'; } if($processerror) { echo '
'.$processerror.'

'; } ?>
Photo parameters
  • Subjects must have given permission to have their photograph taken and be displayed on the website
  • Subjects must be over the age of 18 years
  • Photos must be tasteful and of non-sexual content
  • All photos will be reviewed for appropriate content before they are displayed


> Haulover Beach       > Nudism Everywhere Else
 






>



(* required)