0); //possible hacking else if (strpos($_REQUEST[del],$upload_dir) === false); //possible hacking else if (substr($_REQUEST[del],0,6)==$upload_dir) { unlink($_REQUEST[del]); print ""; } } else if ($_FILES['userfile']) { $resource = fopen("log.txt","a"); fwrite($resource,date("Ymd h:i:s")."UPLOAD - $_SERVER[REMOTE_ADDR]" .$_FILES['userfile']['name']." " .$_FILES['userfile']['type']."\n"); fclose($resource); $file_type = $_FILES['userfile']['type']; $file_name = $_FILES['userfile']['name']; $file_ext = strtolower(substr($file_name,strrpos($file_name,"."))); //File Size Check if ( $_FILES['userfile']['size'] > $MAX_SIZE) $message = "The file size is over 2MB."; //File Extension Check else if (!in_array($file_ext, $FILE_EXTS)) $message = "Sorry, $file_name($file_type) is not allowed to be uploaded."; else $message = do_upload($upload_dir, $upload_url); print ""; } else if (!$_FILES['userfile']); else $message = "Invalid File Specified."; /************************************************************ * List Files ************************************************************/ $handle=opendir($upload_dir); $filelist = ""; while ($file = readdir($handle)) { if(!is_dir($file) && !is_link($file)) { $filelist .= "".$file." - URL: $upload_url$file"; if ($DELETABLE) $filelist .= " Added at ".date("d-m H:i", filemtime($upload_dir.$file)) .""; $filelist .= " x"; $filelist .="
"; } } function do_upload($upload_dir, $upload_url) { $temp_name = $_FILES['userfile']['tmp_name']; $file_name = $_FILES['userfile']['name']; $file_name = str_replace("\\","",$file_name); $file_name = str_replace("'","",$file_name); $file_path = $upload_dir.$file_name; //File Name Check if ( $file_name =="") { $message = "Invalid File Name Specified"; return $message; } $result = move_uploaded_file($temp_name, $file_path); if (!chmod($file_path,0777)) $message = "change permission to 777 failed."; else $message = ($result)?"$file_name was uploaded successfully." : "Something is wrong with uploading the file."; return $message; } ?> Bad Bridesmaid by Siri Agrell
Tragedy in Taffeta

Submit Your Photos!

We know that one style does not fit all, and empire waists only look good on skinny actresses in films based on Jane Austen novels, but someone, somewhere must have actually thought that hideous fabric fiasco you walked down the aisle in looked good. To protect friendships and avoid needless embarrassment, we ask that you submit a photo of just the dress on a hanger. If you choose to submit a photo of you or someone else wearing the offending garment, we will obscure all faces before posting the picture to insure the fashion faux pas remains anonymous. Finally, we can only accept jpg and gif file formats. By submitting a photo you are agreeing to this website's Terms of Use, which include granting Henry Holt and Company the right to publish your photo online


Upload File:
Acceptable formats: .jpg, .gif.   -  Maximum file size: 500KB

 

Tragedy in Taffeta ~ Your Photos

4 Comments:

Anonymous said...

http://www.655994635.com

June 4, 2007 4:56 AM  
Anonymous said...

[url=http://www.285450249.com]285450249[/url]

June 4, 2007 4:56 AM  
Anonymous said...

800843134

June 4, 2007 4:56 AM  
Sez said...

Is this the gold brocade number from page 72??

November 19, 2007 6:52 PM  

Post a Comment

<< Back to Tragedy in Taffeta Main Page