max_filesize(500000); // OPTIONAL: if you're uploading images, you can set the max pixel dimensions # $my_uploader->max_image_size(800, 800); // max_image_size($width, $height) // UPLOAD the file if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) { $success = $my_uploader->save_file($path, $mode); } if ($success) { // Successful upload! //$ip = getenv('REMOTE_ADDR'); $ip = $_SERVER["REMOTE_ADDR"]; //$ipname = getenv('REMOTE_HOST'); $ipname = $_SERVER["REMOTE_HOST"]; $file_name = $my_uploader->file['name']; // The name of the file uploaded print($file_name . " was successfully uploaded!"); print(" "); print_file($path . $file_name, $my_uploader->file["type"], 2); $body = "http://biel.third-net.com/upload/uploads/$file_name\n\n$desc\n\nSent by: $email\nFrom: $ip\n"; // $body = "$file_name\n$desc\nSent by $email\nFrom $ip, hostname $ipname\n"; mail( "[email protected]", $file_name, $body, "From: $email\r\n" ); mail( "[email protected]", $file_name, $body, "From: $email\r\n" ); } else { // ERROR uploading... if($my_uploader->errors) { while(list($key, $var) = each($my_uploader->errors)) { echo $var . "
"; } } } #--------------------------------# # HTML FORM #--------------------------------# ?>
Upload this file:

Enter your email address:

(This is necessary to help ensure that these pictures really are of "Bondage in Everyday Life". You won't get spammed, and your address won't be made public or shared with anyone else. It's needed only in case there's a question about the picture, and won't be retained once the picture has appeared on the website.)

Description:

(Please briefly describe the circumstances of the picture -- if possible, the URL of the page where you found it [it won't be made public]. At the least, give some information about what kind of page it was on, what the accompanying text said about it, etc. And please indicate what nickname you'd like to be credited for the upload, or whether you'd prefer to remain anonymous.)



"; } else { echo " "; } } } ?>

Important: If your picture doesn't display here after you've uploaded it, it means it didn't upload properly. If you're sure the file is an image file (JPG or GIF), the problem may be with your browser (some versions of Internet Explorer, for example, don't correctly identify the file type when uploading). If that happens, please try again with a different browser. As a last resort, use the Feedback link on the front page to mail it.


Home

Hosted by Third-Net.Com