Go to the source code of this file.
Data Structures | |
class | ReCaptchaResponse |
Enumerations | |
enum | RECAPTCHA_API_SERVER |
enum | RECAPTCHA_API_SECURE_SERVER |
enum | RECAPTCHA_VERIFY_SERVER |
Functions | |
_recaptcha_qsencode ($data) | |
_recaptcha_http_post ($host, $path, $data, $port=80) | |
recaptcha_get_html ($pubkey, $error=null, $use_ssl=false) | |
recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params=array()) | |
recaptcha_get_signup_url ($domain=null, $appname=null) | |
_recaptcha_aes_pad ($val) | |
_recaptcha_aes_encrypt ($val, $ky) | |
_recaptcha_mailhide_urlbase64 ($x) | |
recaptcha_mailhide_url ($pubkey, $privkey, $email) | |
_recaptcha_mailhide_email_parts ($email) | |
recaptcha_mailhide_html ($pubkey, $privkey, $email) |
Definition at line 39 of file recaptchalib.php.
enum RECAPTCHA_API_SERVER |
The reCAPTCHA server URL's
Definition at line 38 of file recaptchalib.php.
Definition at line 40 of file recaptchalib.php.
_recaptcha_aes_encrypt | ( | $ | val, | |
$ | ky | |||
) |
Definition at line 214 of file recaptchalib.php.
_recaptcha_aes_pad | ( | $ | val | ) |
Definition at line 206 of file recaptchalib.php.
_recaptcha_http_post | ( | $ | host, | |
$ | path, | |||
$ | data, | |||
$ | port = 80 | |||
) |
Submits an HTTP POST to a reCAPTCHA server
string | $host | |
string | $path | |
array | $data | |
int | port |
Definition at line 67 of file recaptchalib.php.
_recaptcha_mailhide_email_parts | ( | $ | ) |
Definition at line 248 of file recaptchalib.php.
_recaptcha_mailhide_urlbase64 | ( | $ | x | ) |
Definition at line 225 of file recaptchalib.php.
_recaptcha_qsencode | ( | $ | data | ) |
Encodes the given data into a query string format
$data | - array of string elements to be encoded |
Definition at line 47 of file recaptchalib.php.
recaptcha_check_answer | ( | $ | privkey, | |
$ | remoteip, | |||
$ | challenge, | |||
$ | response, | |||
$ | extra_params = array() | |||
) |
Calls an HTTP POST function to verify if the user's guess was correct
string | $privkey | |
string | $remoteip | |
string | $challenge | |
string | $response | |
array | $extra_params an array of extra variables to post to the server |
Definition at line 152 of file recaptchalib.php.
recaptcha_get_html | ( | $ | pubkey, | |
$ | error = null , |
|||
$ | use_ssl = false | |||
) |
Gets the challenge HTML (javascript and non-javascript version). This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from.
string | $pubkey A public key for reCAPTCHA | |
string | $error The error given by reCAPTCHA (optional, default is null) | |
boolean | $use_ssl Should the request be made over ssl? (optional, default is false) |
Definition at line 106 of file recaptchalib.php.
recaptcha_get_signup_url | ( | $ | domain = null , |
|
$ | appname = null | |||
) |
gets a URL where the user can sign up for reCAPTCHA. If your application has a configuration page where you enter a key, you should provide a link using this function.
string | $domain The domain where the page is hosted | |
string | $appname The name of your application |
Definition at line 202 of file recaptchalib.php.
recaptcha_mailhide_html | ( | $ | pubkey, | |
$ | privkey, | |||
$ | ||||
) |
Gets html to display an email address given a public an private key. to get a key, go to:
http://www.google.com/recaptcha/mailhide/apikey
Definition at line 267 of file recaptchalib.php.
recaptcha_mailhide_url | ( | $ | pubkey, | |
$ | privkey, | |||
$ | ||||
) |
Definition at line 230 of file recaptchalib.php.