Beispiel #1
0
        $secret = 'Google Secret Key';
        $ip = $_SERVER['REMOTE_ADDR'];
        $url = $google_url . "?secret=" . $secret . "&response=" . $recaptcha . "&remoteip=" . $ip;
        $res = getCurlData($url);
        $res = json_decode($res, true);
        //reCaptcha success check
        if ($res['success']) {
            //Include login check code
        } else {
            $msg = "Please re-enter your reCAPTCHA.";
        }
    } else {
        $msg = "Please re-enter your reCAPTCHA.";
    }
}
if ($crypt->open_connection()) {
    ?>
<html>
<head>
<title>Faucet</title>   
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <link href="css/bootstrap.css" rel="stylesheet" />
    <link href="faucet.css" rel="stylesheet" />
    
    <script>
        $(document).ready(function() {
            $("#balf").load('includes/faucet_bal.php');
			$(".recents").load('includes/faucet_recents.php');
            $("#payedout").load('includes/faucet_payed.php');
            $("#today").load('includes/faucet_today.php');