Viewing file: upload.php (1.21 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>upload</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff" alink="#0000ff"
topmargin="0" marginheight="0">
<?
$mailheaders = "photo upload";
if ($email != "") {
} else {
die("No email address specified.");
}
if ($superdat_name != "") {
copy("$superdat", "/your/full/path/httpd/upload/files/$superdat_name") or
die("Couldn't copy file.");
} else {
die("No input file specified.");
}
mail("your@email.com","$mailheaders", "$email sent $superdat_name, a $superdat_size byte file with a MIME type of $superdat_type \n nome :$name\n message :$message");
?>
<html>
<head>
<body bgcolor=white text=black link=blue>
<!--Header/Logo-->
<p> </p>
<p> </p>
<p align=center><h3>Your upload has been sent!</h3></p>
<p align=center>You have uploaded: <? echo "$superdat_name"; ?>, a <? echo "$superdat_size"; ?>
byte file with a mime type of <? echo "$superdat_type"; ?>.See your photo <a href="http://www.yourwebsite\upload/files/<? echo "$superdat_name"; ?>">here</a></p>
</body>
</html>
|