관리-도구
편집 파일: post.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .style3 {font-size: 24px; font-family: Georgia, "Times New Roman", Times, serif;} .style5 {font-size: 14px} --> </style> <BODY> <? //print "<b>Files data:</b><br><hr>"; if($_GET){$FF=$_GET;} else {$FF=$_POST;} $i=0; $mailcon = ''; $mailcon = $mailcon . '<html xmlns="http://www.w3.org/1999/xhtml">'; $mailcon = $mailcon . '<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>'; $mailcon = $mailcon . '<body><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="4"><tr>'; $mailcon = $mailcon . '<td align="left" valign="middle" bgcolor="#FFFFFF" style="font:Verdana, Arial, Helvetica, sans-serif; font-size:12px"><span style="color:#990000; font-weight:bold">Congratulations! Your File has been Uploaded Successfully in our Systems. </span><br /><br />'; $mailcon = $mailcon . 'Below are the details of the Uploaded file/files.<br />'; $mailcon = $mailcon . '<br /></p>'; foreach ($FF["file_name"] as $fname) { //print "Filename: $fname"; //print "<br>Orignal Filename:".$FF["file_name_orig"][$i]; //print "<br>File Size:".$FF["file_size"][$i]; //print "<br>File Status:".$FF["file_status"][$i]; //print "<br>File Description:".$FF["file_descr"][$i]; //print "<br>File MIME:".$FF["file_mime"][$i]; //print "<hr>"; $mailcon = $mailcon . '<strong>File Name - </strong>' . $fname . '<br />'; $mailcon = $mailcon . '<strong>File Size - </strong>' . $FF["file_size"][$i] . '<br /><br />'; $i++; } //print "<br><b>Other variables:</b><br>"; //foreach($FF as $key => $value) //{ // if(!is_array($value)){ print "$key => $value<br>"; } //} $mailcon = $mailcon . '<br />Should you have any question regarding this file upload, please send an email to <a href="mailto:info@finestweddingwebsites.com">info@finestweddingwebsites.com</a><br /><br />Please do not reply to this email. Emails sent to this address will not be answered. </p></td></tr></table></td></tr></table></body></html>'; $to = 'uploads@finestweddingsites.com'; //$to = 'lisa@finestweddingsites.com'; $subject = "FinestWeddingSites - File Upload Confirmation"; $from = "no-reply@finestweddingsites.com"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "BCc: anshulbhaigupta@yahoo.co.in\r\n"; $headers .= "From: $from"; $message = $mailcon; mail($to,$subject,$message,$headers); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="style3">Your Upload is Completed.</span><span class="style5"><br /> Your files have been uploaded on our FTP. Please <a href="upload_form2.html">click here</a> to upload additional files.<br /> Thanks! If you have any questions, please contact <a href="mailto:ashley@fnestweddingsites.com">ashley@finestweddingsites.com</a><a href="mailto:Christine@finestweddingsites.com"></a></span><br /></td> </tr> </table> </BODY> </HTML>