"; throw new Exception($error); } $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } } } $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) { $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); } catch (Exception $e) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); echo $errorcode; } exit; } // This script was created by DBTECHNOSYSTEMS.com ---- // © DBTechnosystems.com http://www.dbtechnosystems.com // You may use this script but please leave author details here // DBTS Form Processor Extension version 2.7.5.6 ini_set('display_errors', 1); $version = "2.7.5.6"; error_reporting(0); if(session_id() == ""){ session_start(); } if("Working Mode" == "Debug Mode"){ error_reporting(E_ALL); } $SESSION = $_SESSION['POST']; if(is_array($SESSION)){ while (list ($key, $val) = each($SESSION)) { // Stripslashes only if it is not an array, or it empties the array if (!is_array($val)) { $SESSION[$key] = stripslashes($val); } } extract ($SESSION, EXTR_OVERWRITE); } if($_SERVER['REQUEST_METHOD'] == 'POST') { $error=""; require_once 'dbts_includes/dbts_functions.php'; // -------- RECEIVIMG CONFIG FILE VARIABLES----------- $form_id = "BAR Form"; $from_email = "formmail@spcmultimedia.com"; $nameto = "esupport"; $mailto = "esupport@spcmultimedia.com"; $cc_email = ""; $bcc_email = ""; $email_field = "email"; $charset = "UTF8"; $success_url = "./confirm-gs.html"; $error_url = "./error-gs.html"; $timezone = "Central (USA)"; if(trim($timezone) != ""){ if (function_exists(date_default_timezone_set)) { date_default_timezone_set($timezone); } else{ putenv ($timezone); mktime(0,0,0,1,1,1970); } } $time_format = ""; $date = date("l jS F Y, g:i A"); if(trim($time_format) != ""){ $date = date(""); } $admin_mail = "Yes"; $autoresponder = "Yes"; $csvStore = "No"; $dbStore = "No"; $post_further = "No"; $post_further_to = ""; $copy_in_session = "No"; $copy_from_session = "No"; $clear_session = "Yes"; $afterprocessing = "Redirect"; $end_include = ""; $include_null_fields = "No"; $null_field_text = "No user input"; $excluded_fields = ""; $allow_urls = "Yes"; $captcha_rewrite = "Yes"; $captcha_error = "The entered code is wrong!"; $force_recaptcha = "No"; $privatekey = ""; $recaptcha_error_array['invalid-site-private-key'] = "We weren't able to verify the private key."; $recaptcha_error_array['invalid-request-cookie'] = "The challenge parameter of the verify script was incorrect."; $recaptcha_error_array['incorrect-captcha-sol'] = "The code you have entered in the captcha is wrong"; $recaptcha_error_array['recaptcha-not-reachable'] = "The captcha verification server is not accessible at the moment, so we can't verify your input. Please try again later."; $recaptcha_failure_behavior = "Allow submission"; $use_reverse_captcha = "No"; $non_empty_field_name = ""; $non_empty_field_value = ""; $empty_field_name = ""; $reverse_captcha_error = ""; $reverse_captcha_behavior = "Display Success Page"; $enable_departments = "No"; $department_field = "department"; $departments = array(); $department_emails = array(); $banned_behavior = "Display Success Page"; $banned_error = ""; $banned_ipname = array(); $banned_ipaddress = array(); $bannedemail_names = array(); $bannedemail_emails = array(); $logo_image_url = ""; $logo_alt = "Visit our site!"; $logo_link = "http://www.yourdomain.com"; $logo_bgrd_clr = "#FFFFFF"; $logo_align = "center"; $table_width = "600"; $labelscolumn_width = ""; $cellspacing = "0"; $cellpadding = "1"; $border_width = "0"; $border_clr = "#F8F8F8"; $border_type = strtolower("Default"); $bgrd_clr = "#FFFFFF"; $table_bgrd_clr = "#FFFFFF"; $header_bgrd_clr = "#D3D7FE"; $footer_bgrd_clr = "#D3D7FE"; $labels_text_clr = "#000000"; $labels_bkgd_clr = "#FFFFFF"; $values_text_clr = "#000000"; $values_bkgd_clr = "#FFFFFF"; $time_of_submission_label = "Time of Submission"; $ip_address_label = "IP Address"; $browser_label = "Browser"; $admin_mode = "HTML"; $subject = "General Inquiry"; $namefrom = "Website Form Manager"; $form_namefrom = ""; $htmlbodystart = 'There has been a new submission from our Website form. Here is the info submitted:'; $bodystart = "There has been a new submission from our Website form. Here is the info submitted:"; $htmlbodyend = 'Please review and act accordingly.'; $bodyend = "Please review and act accordingly."; $custom_admin_mail_template = ""; $include_ip ="Yes"; $include_browser = "Yes"; $include_datetime = "Yes"; $auto_mode = "HTML"; $autorespondersubject = "Contact Confirmation"; $autoresponderfrom = "no_reply@yourdomain.com "; $include_info = "Yes"; $autorespondernamefrom = "My Site Title"; $auto_form_nameto = ""; $htmlautoresponderstart= 'Hello, this email is to confirm that your info has been received.'; $autoresponderstart = "Hello, this email is to confirm that your info has been received."; $htmlautoresponderend = 'Thank you for contacting us!'; $autoresponderend = "Thank you for contacting us!"; $custom_auto_mail_template = ""; $auto_include_datetime = "Yes"; $auto_attach = ""; $file_ext = strtolower("jpg, gif, png, bmp, mp3, pdf, html, htm"); $filesize = "1024"; $store_uploaded = "Yes"; $uploadfolder = "uploads"; $add_prefix = "Yes"; $attach_files = "No"; $max_attach_size = "10"; $double_quote_fields = "Yes"; $csvSeparator = "comma ,"; $csvFile = "fomdata.csv"; $db_host = "localhost"; $db_name = "database_name"; $db_user = "username"; $db_password = "password"; $db_table = "table_name"; $create_table = "Yes"; $add_columns = "Yes"; $mail_engine = "mail() function"; $SMTPSecure = "No"; $SMTPHost = ""; $SMTPPort = "25"; $SMTPAuth = "false"; $SMTPUser = "you@smtp.com"; $SMTPPass = ""; $start_of_script_include = ''; $before_formdata_include = ''; $after_formdata_include = ''; $after_filedata_include = ''; $before_error_include = ''; $before_admin_mail_include = ''; $before_auto_mail_include = ''; $end_of_script_include = ''; $end_include = ''; // End of settings section // Process form include 'dbts_includes/dbts_formprocessor.php'; } ?>