Vendita Tele
"Indirizzo di posta elettronica",
"owner_email_to" => "info@duemmeoutlet.it",
"customer_email_from" => "info@duemmeoutlet.it",
"customer_email_to" => "Indirizzo di posta elettronica",
"owner_message" => "",
"customer_message" => "",
"owner_subject" => "",
"customer_subject" => "",
"owner_csv" => False,
"customer_csv" => False,
"confirmation_page" => "../index.html"
);
if(substr(basename($_SERVER['PHP_SELF']), 0, 11) == "imEmailForm") {
include "../res/x5engine.php";
$answers = array(
);
$form_data = array(
array('label' => 'Nome', 'value' => $_POST['imObjectForm_1_1']),
array('label' => 'Cognome', 'value' => $_POST['imObjectForm_1_2']),
array('label' => 'Indirizzo', 'value' => $_POST['imObjectForm_1_3']),
array('label' => 'Città', 'value' => $_POST['imObjectForm_1_4']),
array('label' => 'Indirizzo di posta elettronica', 'value' => $_POST['imObjectForm_1_5']),
array('label' => 'Misure quadro', 'value' => $_POST['imObjectForm_1_6']),
array('label' => 'Privacy', 'value' => $_POST['imObjectForm_1_8'])
);
$files_data = array(
array('label' => 'Allega file', 'value' => $_FILES['imObjectForm_1_7'])
);
if(@$_POST['action'] != "check_answer") {
if(!isset($_POST['imJsCheck']) || $_POST['imJsCheck'] != "jsactive")
die(imPrintJsError());
if (isset($_POST['imCpt']) && !isset($_POST['imCptHdn']))
die(imPrintJsError());
if(isset($_POST['imSpProt']) && $_POST['imSpProt'] != "")
die(imPrintJsError());
$email = new imSendEmail();
$email->sendFormEmail($settings['imEmailForm_0_1'], $form_data, $files_data);
@header('Location: ' . $settings['imEmailForm_0_1']['confirmation_page']);
} else {
if(@$_POST['id'] == "" || @$_POST['answer'] == "" || strtolower(trim($answers[@$_POST['id']])) != strtolower(trim(@$_POST['answer'])))
echo "0";
else
echo "1";
}
}
// End of file