rss layout now fully separated m/v/c
[dylansserver.git] / model / captcha.php
1 <?php
2
3 class captcha extends model {
4
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);
13 curl_close ($curl);
14 }
15
16 }
17
18 ?>