$sitekey="6LcmwIYaAAAAAF7ZRCqxf3fARATCoxWejeAQaqkN"; $secretkey="6LcmwIYaAAAAAD0zWLNsXPPBg5QjWbcu9XmNsNVw"; require_once("liberislabs.php"); $pagedata=array( 'name' => 'contact.html', 'title' => 'Ian Beckwith', 'jumbotron_title' => "Ian Beckwith", 'jumbotron_lead' => CONFIG_JUMBOTRON_LEAD ); $mailstatus=""; $mailok=TRUE; if(!empty($_POST) && !empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['msg'])) { if(empty($_POST['recaptcha_response'])) { $mailstatus="ReCaptcha Failure"; } else { $recaptchacode=$_POST['recaptcha_response']; $url="https://www.google.com/recaptcha/api/siteverify"; $jsonresponse=file_get_contents($url.'?secret='.$secretkey.'&response='.$recaptchacode); #print("
".print_r($jsonresponse,TRUE).""); $response=json_decode($jsonresponse); #print("
".print_r($response,TRUE).""); if($response->success && ($response->score >= 0.5) && ($response->action=='submit')) { $to='ianb-company-contactform@erislabs.net'; $from=$_POST['name'] . " <" . $_POST['email'] . ">"; $subject="ianbeckwith.uk contact form message"; $hdrs='From: ' . $from; $mailok=mail($to, $subject, $_POST['msg'], $hdrs); if($mailok) { $mailstatus="Message sent"; } else { $mailstatus="Problem sending message"; } } else { $mailstatus="ReCaptcha Error: ".join('
Contact Me
You can email info@ianbeckwith.uk, phone +44 7851 946 075 or fill in the form below.
If you want to contact me securely, use my GPG public key, also available from the public keyservers. You can cross-check it with the fingerprint below:
pub 4096R/0x17D713AD62E88618 2014-12-31 [expires: 2020-12-29] Key fingerprint = A796 3918 B66A A6DD CFC5 EFF2 17D7 13AD 62E8 8618 uid [ultimate] Ian Beckwith <ianb@erislabs.net> uid [ultimate] Ian Beckwith <ianb@gnu.org> uid [ultimate] Ian Beckwith <ianb@erislabs.co.uk> uid [ultimate] Ian Beckwith <ian.beckwith@gmail.com> uid [ultimate] Ian Beckwith <ianb@debian.org> sub 4096R/0xBA5970EAC5C2AEA2 2014-12-31 [expires: 2020-12-29] sub 4096R/0xE5A431A8C306762A 2014-12-31 sub 4096R/0x0602408DFF020175 2014-12-31 [expires: 2016-06-23]show_page_foot($name, $pagedata); show_page_end($name, $pagedata); ?>