b2af33c2cab00a0f4550d60df3ce3f0a2714fadb
3 class captcha
extends model
{
5 public function display() {
6 $challenge = $_GET['challenge'];
7 $response = $_GET['response'];
8 $remoteip = $_SERVER['REMOTE_ADDR'];
9 $curl = curl_init('http://api-verify.recaptcha.net/verify?');
10 curl_setopt ($curl, CURLOPT_POST
, 4);
11 curl_setopt ($curl, CURLOPT_POSTFIELDS
, "privatekey=$this->recaptcha_privatekey&remoteip=$remoteip&challenge=$challenge&response=$response");
12 $result = curl_exec ($curl);