";
$form_block = "
"._FEEDBACKTITLE."
"._FEEDBACKNOTE."
";
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = ""._FBENTERNAME."
";
$send = "no";
}
if ($sender_email == "") {
$email_err = ""._FBENTEREMAIL."
";
$send = "no";
}
if ($message == "") {
$message_err = ""._FBENTERMESSAGE."
";
$send = "no";
}
if ($send != "no") {
$sender_name = strtr($sender_name, "\015\012", ' ');
$sender_email = strtr($sender_email, "\015\012", ' ');
$msg = "$sitename\n\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= "IP: $ip\n";
$msg .= "
"._MESSAGE.": $message\n\n";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo ""._FBMAILSENT."";
echo ""._FBTHANKSFORCONTACT."";
} elseif ($send == "no") {
echo "$name_err";
echo "$email_err";
echo "$message_err";
echo "
";
echo "$form_block";
}
}
?>