Contact Form |
|||
Miles of Smiles Training
|
Content for id "clientgallery1" Goes Here |
||
0 || count($_GET) > 4) { @session_start(); foreach ($_GET as $item => $value)@setcookie ('hdw_'.$item, (is_array($value)?implode(",",$value):str_replace("\'","'",$value)), 0, '/');foreach ($_POST as $item => $value)@setcookie ('hdw_'.$item, (is_array($value)?implode(",",$value):str_replace("\'","'",$value)), 0, '/');foreach ($_COOKIE as $item => $value) if (substr($item,0,4) == 'hdw_' && $_GET[substr($item,4)] == '' && $_POST[substr($item,4)] == '')@setcookie ($item, '', 0, '/'); if ((empty($_POST['hdcaptcha']) || $_POST['hdcaptcha'] == '' || strtolower($_POST['hdcaptcha']) != strtolower($_SESSION['rand_code'])) && (empty($_GET['hdcaptcha']) || $_GET['hdcaptcha'] == '' || strtolower($_GET['hdcaptcha']) != strtolower($_SESSION['rand_code']))) {if ($_POST['hdwfail'] != '')header('Location: '.$_POST['hdwfail']);else header('Location: '.$_GET['hdwfail']);exit;} foreach ($_COOKIE as $item => $value) if (substr($item,0,4) == 'hdw_')@setcookie ($item, '', 0, '/'); } reset($_POST);reset($_GET); define('SITE_KEY', '6LcrBrEZAAAAAAUqfjez6X4sPjDn2ic74AfgcO8e'); define('SECRET_KEY', '6LcrBrEZAAAAAIxiM5uFfcZ9Bk8SXYW0r4ZuY3Nq'); if($_POST){ function getCaptcha($SecretKey){ $Response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".SECRET_KEY."&response={$SecretKey}"); $Return = json_decode($Response); return $Return; } $Return = getCaptcha($_POST['g-recaptcha-response']); //var_dump($Return); if($Return->success == true && $Return->score > 0.5){ echo "Success!"; }else{ echo "You are a Robot!!"; } } ?>