$obt_akismet_value) $obt_akismet_querystring .= $obt_akismet_key."=".urlencode(stripslashes($obt_akismet_value))."&"; $obt_akismet_response = akismet_http_post($obt_akismet_querystring,$akismet_api_host,"/1.1/comment-check",$akismet_api_port); $obt_is_spam = ($obt_akismet_response[1] == "true"); }; }; }; echo "
\n"; IF ($obt_is_spam) echo "

".obt_translate("Error").". ".obt_translate("The email could include spam and hasn't been delivered").".

"; ELSEIF (count($obt_errors)){ echo "

".obt_translate("Error").". ".obt_translate("Check the following data").":

\n"; echo "\n"; }ELSE{ $obt_subject = "[".get_bloginfo("name")."] {$_POST["contact-subject"]}"; $obt_message = wordwrap($_POST["contact-message"],70); $obt_headers = "From: {$_POST["contact-name"]} <{$_POST["contact-email"]}>\n"; $obt_headers .= "Message-ID: <".md5(time())."@".preg_replace("'^www\.'","",strtolower($_SERVER["HTTP_HOST"])).">\n"; $obt_headers .= "X-Mailer: PHP version ".phpversion()."\n"; $obt_headers .= "MIME-Version: 1.0\n"; $obt_headers .= "Content-type: text/plain; charset=\"".get_option("blog_charset")."\"\n"; @ini_set("sendmail_from",$_POST["contact-email"]); IF (@mail(get_the_author()." <".get_the_author_email().">",$obt_subject,$obt_message,$obt_headers)) echo "

".obt_translate("Thank you").". ".obt_translate("Your email has been sent and you'll get an answer as soon as possible").".

"; ELSE echo "

".obt_translate("Error").". ".obt_translate("Email couldn't be sent").".

"; @ini_restore("sendmail_from"); }; echo "
\n"; }; IF ($_SERVER["REQUEST_METHOD"] == "GET" || count($obt_errors) || $obt_is_spam){ echo "
\n"; echo "

\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "

\n"; echo "

\n"; echo "\n"; $obt_time = time(); $obt_hash = md5($obt_time."/".$_SERVER["SERVER_SOFTWARE"]); echo "\n"; echo "\n"; echo "

\n"; echo "
\n"; IF ($_SERVER["REQUEST_METHOD"] == "GET" && !strlen($comment_author)){ echo "\n"; }; echo "

* ".obt_translate("Required fields")."

\n"; }; ?>