관리-도구
편집 파일: post.php
<? session_start(); include("ftp-app/connect.php"); //echo "Here you can see what file you uploaded with the status of this file.<br><br>"; if($_GET){$FF=$_GET;} else {$FF=$_POST;} foreach($FF as $key => $value) { if(!is_array($value)) { //if (($key != 'target_dir') && ($key != 'file_1_original')) //print "$key => $value<br>"; if ($key == 'file_1') $filename = $value; if ($key == 'Comment') $comment = $value; } } $sql = "Insert into ftp_uploaddetails values ('', '" . $_SESSION['AXAuserPXAidCXA'] . "', '". $filename ."', '". date("Y-m-d H:i:s") ."', '" . $comment ."')"; $res = mysql_query($sql); $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.<br />'; $mailcon = $mailcon . '<br /></p>'; $mailcon = $mailcon . '<strong>File Name - </strong>' . $filename . '<br />'; $mailcon = $mailcon . '<strong>Comments - </strong>' . $comment . '<br />'; //$mailcon = $mailcon . '<strong>File URL - </strong><a href="http://finestweddingsites.com/cgi-bin/uploads/' . $filename . '">http://finestweddingsites.com/cgi-bin/uploads/' . $filename . '</a><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'; $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); header("location:ftp-app/memberAdmin/uploadList.php?actionname=addSuccess"); //echo "<br><br> <a href='ftp-app/memberAdmin/uploadlist.php'>Click Here<a> if you want to review all your uploaded files till date.<br>"; ?>