it was working, now it isn't..... I didnt change any of the code, I think i am screwing it up trying to work on it with dream weaver. every time I save the file more and more wont work, now it doesnt work at all, were before it was working but showing the code. man, i use to be good a this stuff.... ( dont ever get into construction, you WILL forget how to do allll of this)
<?php
# ----------------------------------------------------
# ----- EMAIL IMAGE UPLOAD
# ----- Version 4.1
# ----- Created on: 02/04/07
# ----- Designed by: American Financing
# -----
http://www.americanfinancing.net# ----- Free Appraisal! 2 Hour Pre-Approval 1 Week Closing. Now That's Service!
# ----- PLEASE FEEL FREE TO MODIFY THIS SCRIPT TO YOUR NEEDS
# ----- ENJOY!!!
# ----------------------------------------------------include("header.html");
@$Name = addslashes($_POST['Name']);
@$email = addslashes($_POST['email']);
@$upload_Name = $_FILES['upload']['name'];
@$upload_Size = $_FILES['upload']['size'];
@$upload_Temp = $_FILES['upload']['tmp_name'];
@$upload_Mime_Type = $_FILES['upload']['type'];
function RecursiveMkdir($path)
{
if (!file_exists($path))
{
RecursiveMkdir(dirname($path));
mkdir($path, 0777);
}
}if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
die("<p align='center'><b><font face='Arial Black' size='5'
color='#FF0000'>Please enter a valid email</font></b></p>");
}
if( $upload_Size == 0)
{
die("<p align='center'><b><font face='Arial Black' size='2'
color='#FF0000'>ERROR<br>YOUR FILE WAS NOT UPLOADED<br>PLEASE CHECK
THE FILE SIZE AND FORMAT</font></b></p>");
}// CHANGE THIS TO A HIGHER OR LOWER VALUE - REMEMBER HOSTING LIMITS
if( $upload_Size >2000000)
//--------
{
unlink($upload_Temp);
die("<p align='center'><b><font face='Arial Black' size='2'
color='#FF0000'>ERROR<br>YOUR FILE WAS NOT UPLOADED<br>PLEASE CHECK
THE FILE SIZE AND FORMAT</font></b></p>");
}
if( $upload_Mime_Type != "image/cgm" AND $upload_Mime_Type != "image/g3fax"
AND $upload_Mime_Type != "image/gif" AND $upload_Mime_Type != "image/ief"
AND $upload_Mime_Type != "image/pjpeg" AND $upload_Mime_Type != "image/jpeg"
AND $upload_Mime_Type != "image/naplps" AND $upload_Mime_Type != "image/png"
AND $upload_Mime_Type != "image/prs.btif" AND $upload_Mime_Type != "image/prs.pti"
AND $upload_Mime_Type != "image/tiff" AND $upload_Mime_Type != "image/vnd.cns.inf2"
AND $upload_Mime_Type != "image/vnd.dwg" AND $upload_Mime_Type != "image/vnd.dxf"
AND $upload_Mime_Type != "image/vnd.fastbidsheet" AND $upload_Mime_Type
!= "image/vnd.fpx" AND $upload_Mime_Type != "image/vnd.fst"
AND $upload_Mime_Type != "image/vnd.fujixerox.edmics-mmr" AND $upload_Mime_Type
!= "image/vnd.fujixerox.edmics-rlc" AND $upload_Mime_Type != "image/vnd.mix"
AND $upload_Mime_Type != "image/vnd.net-fpx" AND $upload_Mime_Type !=
"image/vnd.svf" AND $upload_Mime_Type != "image/vnd.wap.wbmp"
AND $upload_Mime_Type != "image/vnd.xiff" )
{
unlink($upload_Temp);
die("<p align='center'><b><font face='Arial Black' size='2'
color='#FF0000'>ERROR<br>YOUR FILE WAS NOT UPLOADED<br>PLEASE CHECK
THE FILE SIZE AND FORMAT</font></b></p>");
}
$uploadFile = "uploads/".$upload_Name ;
if (!is_dir(dirname($uploadFile)))
{
@RecursiveMkdir(dirname($uploadFile));
}
else
{
@chmod(dirname($uploadFile), 0777);
}
@move_uploaded_file( $upload_Temp , $uploadFile);
chmod($uploadFile, 0644);
//CHANGE THIS TO THE YOUR DOMAIN
$upload_URL = "
http://manipulatedforyou.com/public_html/uploads/".$upload_Name
;
//------------
$pfw_header = "From: $email";
$pfw_subject = "AN IMAGE HAS BEEN UPLOADED";
// CHANGE THIS TO YOUR EMAIL ADDRESS
$pfw_email_to = "design@manipulated.com";
//------------
$pfw_message = "email: $email\n"
. "Name: $Name\n"
. "upload: $upload_URL\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
echo("<p align='center'><b><font face='Arial Black' size='2'
color='#0000FF'>THANK YOU!<br>YOUR IMAGE HAS BEEN UPLOADED</font></b></p>");
include("footer.html");
<html>