"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field"); $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { $logdata .= ','; if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; $value = str_replace(",", " ", $value); $logdata .= $value; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; $logdata .= implode("|", $value); } } } $logdata = str_replace("\r", "", $logdata); $logdata = str_replace("\n", " ", $logdata); $logdata .= "\r\n"; $handle = fopen($csvFile, 'a') or die("can't open file"); $logtime = date("Y-m-d H:i:s,"); fwrite($handle, $logtime); fwrite($handle, $_SERVER['REMOTE_ADDR']); fwrite($handle, $logdata); fclose($handle); $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } header('Location: '.$success_url); exit; } ?> DC Supplys
DC Supplys
6 McFadyens Lane, Bright, VIC, 3741
Ph: 0421230596 / 0357501582 Em: sale@dcsupplys.net.au
www.dcsupplys.net.au
Contact
Owner:  Luke Davis

Address: 6 McFadyens Lane, Bright, VIC, 3741

Ph: 0421230596 or 0357501582

Sales Em: sale@dcsupplys.net.au

Admin Em: admin@dcsupplys.net.au

Support Em: support@dcsupplys.net.au
 
Subject:
Name:
Email:
Address:
City:
State:
Zip
Home Phone:
Work Phone
Fax Number
Comment
When is the best time to contact you?
Morning
Afternoon
Evening
What is the best way to contact you?
Phone
E-mail
Fax