Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/bottlesrepublik.com/public_html/ |
<?php
//captcha start
function curl_get_file_contents($URL)
{
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $URL);
$contents = curl_exec($c);
curl_close($c);
if ($contents) return $contents;
else return FALSE;
}
$recaptcha_secret = "6Leh5JYpAAAAAHbsiXmOjVkrQbZ-IxdbNcb2HPfq";
$response = curl_get_file_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secret."&response=".$_POST['g-recaptcha-response']);
$response = json_decode($response, true);
if($response["success"] === true){
$captcha_error = "";
}
else{
$captcha_error = "*Please prove you are not a robot*";
$errors = 1;
}
if($errors == 1){$msg = "Please prove you are not a robot.";}
?>