French
19th C. Group Portrait
The
Tear in Detail
After
Restoration
\n";
print "Your Name: \n";
print " \n";
print " \n";
print "Email Address: \n";
print " \n";
print " \n";
print "Subject: \n";
print "\n";
print "Please indicate enquiry type\n";
$SubjArraySize = sizeof($subject_option);
for ($i=1; $i<=$SubjArraySize; $i++) {
if ($i == $var_subject_chosen) { $CHECKED = " SELECTED"; }
else { $CHECKED = ""; }
print " ".$subject_option[$i]['desc']."\n";
}
print " \n";
print " \n";
print "Details: \n";
print "
Please give as much
detail as possible like measurements, known history, observed problems. It
is always helpful if you can provide images. Please send these by seperate mail
to restoration -at- mbgj.org
";
print "
\n";
print "
\n";
print "
\n";
print "\n";
print " \n";
print "
\n";
print "\n";
}
# -------------------------------------------------------
if (isset($_POST['act'])) { $action = strtolower(trim($_POST['act'])); }
else { $action = ""; }
if (!(empty($open_template))) { include($open_template); }
if (empty($action)) {
if (!(empty($mail_head_template))) { include($mail_head_template); }
print_mailform();
if (!(empty($mail_foot_template))) { include($mail_foot_template); }
}
elseif ($action == "send") {
if (isset($_POST['form_message'])) { $var_message = htmlentities(trim($_POST['form_message'])); }
else { $var_message = ""; }
if (isset($_POST['form_subject'])) { $var_subject = htmlentities(trim($_POST['form_subject'])); }
else { $var_subject = ""; }
if (isset($_POST['form_replyto_email'])) { $var_replyto_email = htmlentities(trim($_POST['form_replyto_email'])); }
else { $var_replyto_email = ""; }
if (isset($_POST['form_replyto_name'])) { $var_replyto_name = htmlentities(trim($_POST['form_replyto_name'])); }
else { $var_replyto_name = ""; }
$var_message = str_replace("|","",$var_message);
$var_subject = str_replace("|","",$var_subject);
$var_replyto_email = str_replace("|","",$var_replyto_email);
$var_replyto_email = str_replace(">","",$var_replyto_email);
$var_replyto_email = str_replace("<","",$var_replyto_email);
$var_replyto_email = str_replace('/',"",$var_replyto_email);
$var_replyto_email = str_replace('..',"",$var_replyto_email);
$var_replyto_name = str_replace("|","",$var_replyto_name);
$var_message = preg_replace("/\n\r|\n|\r|\t/","",$var_message);
$var_subject = preg_replace("/\n\r|\n|\r|\t/","",$var_subject);
$var_replyto_email = preg_replace("/\n\r|\n|\r|\t/","",$var_replyto_email);
$var_replyto_name = preg_replace("/\n\r|\n|\r|\t/","",$var_replyto_name);
$var_subject_chosen_array = explode(' ',$var_subject);
$var_subject_chosen = $var_subject_chosen_array[0];
if (!(is_numeric($var_subject_chosen))) { $var_subject_chosen = ""; }
$var_subject = "";
$SubjChosenArraySize = sizeof($var_subject_chosen_array);
for ($i=1; $i<$SubjChosenArraySize; $i++) {
$var_subject .= $var_subject_chosen_array[$i]." ";
}
$var_subject = trim($var_subject);
if ($add_slashes) {
if ($slash_msg) { $var_message = myaddslashes($var_message); }
$var_subject = myaddslashes($var_subject);
$var_replyto_email = myaddslashes($var_replyto_email);
$var_replyto_name = myaddslashes($var_replyto_name);
}
if (($var_subject_chosen == "0") OR (empty($var_subject_chosen))) { $var_subject = ""; }
if ($var_subject_chosen > (sizeof($subject_option) + 1)) { $var_subject = ""; }
$skipflag = FALSE;
print "
\n";
if (empty($var_replyto_name)) { print "
* Required field -- \"Your Name\" is missing! Fix and re-submit. \n"; $skipflag = TRUE; }
if (empty($var_message)) { print "
* Required field -- \"Your Message\" is missing! Fix and re-submit. \n"; $skipflag = TRUE; }
if (empty($var_subject)) { print "
* Required field -- \"The Subject\" is missing! Fix and re-submit. \n"; $skipflag = TRUE; }
if (empty($var_replyto_email)) { print "
* Required field -- \"Your E-mail Address\" is missing! Fix and re-submit. \n"; $skipflag = TRUE; }
if ($skipflag) {
print "
\n";
print_mailform();
}
else {
$user_info_string = "";
$user_info_string .= "Sent from: ".$_SERVER['REMOTE_HOST']." [".$_SERVER['REMOTE_ADDR']."] \n";
$user_info_string .= "Coming from (referer): ".$_SERVER['HTTP_REFERER']."\n";
$user_info_string .= "Using (user agent): ".$_SERVER['HTTP_USER_AGENT']."\n\n";
$send_subj = $subject_option[$var_subject_chosen]['subj'];
$send_addy = $subject_option[$var_subject_chosen]['addy'];
$send_name = $subject_option[$var_subject_chosen]['name'];
$send_conf = $subject_option[$var_subject_chosen]['conf'];
$var_message = $user_info_string.$var_replyto_name."\n\n".$var_message;
mail($send_addy, $var_subject, $var_message, "From: $var_replyto_name <$var_replyto_email>");
if ($send_conf) {
mail($var_replyto_email, $confirm_sub, $confirm_msg, "From: $send_name <$send_addy>");
}
print "
\n";
print "Your message was sent. \n";
print " \n";
print "
\n";
print "Thank you $var_replyto_name,
\n";
print "In a minute you should receive a confirmation at $var_replyto_email.
\n";
print "
\n";
print "Please send any pictures directly to
restoration@mbgj.org \n";
print "
\n";
}
}
else {
print "
ERROR! I did not understand your action! \n";
}
if (!(empty($close_template))) { include($close_template); }
?>
You can also contact us
directly by mail restoration "at" mbgj.org (replace "at" with
@ no blanks)
Home