Current Path : /storage/v11800/madhavcotex-com/public_html/YULIO/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/madhavcotex-com/public_html/YULIO/secret.php |
<?php
@session_start();
$site_secret = "6Lf8cm0hAAAAABkpP648N6velkK5UXW9DJzvSTdD";
if(isset($_POST["g-recaptcha-response"])) {
$response = $_POST["g-recaptcha-response"];
$url = 'https://www.google.com/recaptcha/api/siteverify';
$data = array(
'secret' => $site_secret,
'response' => $response
);
$options = array(
'http' => array (
'method' => 'POST',
'content' => http_build_query($data),
'header' => 'Content-Type: application/x-www-form-urlencoded'
)
);
$context = stream_context_create($options);
$verify = file_get_contents($url, false, $context);
$captcha_success = json_decode($verify);
if ($captcha_success->success == false) {
header('Location: site.php');
exit;
} else {
$move = $_SESSION['landing'];
echo "<script>document.location.href='$move';</script>";
}
}
?>