Procedural File: recaptchalib.inc.php
Source Location: /ipbwi/lib/third_party/recaptchalib.inc.php
Classes:
ReCaptchaResponse
A ReCaptchaResponse is returned from recaptcha_check_answer()
Page Details:
Tags:
RECAPTCHA_API_SECURE_SERVER [line 39]
RECAPTCHA_API_SERVER [line 38]
RECAPTCHA_VERIFY_SERVER [line 40]
recaptcha_check_answer [line 152]
ReCaptchaResponse recaptcha_check_answer(
string $privkey, string $remoteip, string $challenge, string $response, [array $extra_params = array()])
|
|
Calls an HTTP POST function to verify if the user's guess was correct
Parameters
| string |
$privkey |
|
| string |
$remoteip |
|
| string |
$challenge |
|
| string |
$response |
|
| array |
$extra_params |
an array of extra variables to post to the server |
recaptcha_get_html [line 106]
string recaptcha_get_html(
string $pubkey, [string $error = null], [boolean $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.
Tags:
Parameters
| 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) |
recaptcha_get_signup_url [line 202]
void recaptcha_get_signup_url(
[string $domain = null], [string $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.
Parameters
| string |
$domain |
The domain where the page is hosted |
| string |
$appname |
The name of your application |
recaptcha_mailhide_html [line 267]
void recaptcha_mailhide_html(
$pubkey, $privkey, $email)
|
|
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
Parameters
recaptcha_mailhide_url [line 230]
void recaptcha_mailhide_url(
$pubkey, $privkey, $email)
|
|
Parameters
_recaptcha_aes_encrypt [line 214]
void _recaptcha_aes_encrypt(
$val, $ky)
|
|
Parameters
_recaptcha_aes_pad [line 206]
void _recaptcha_aes_pad(
$val)
|
|
Parameters
_recaptcha_http_post [line 67]
array _recaptcha_http_post(
string $host, string $path, array $data, [int $port = 80])
|
|
Submits an HTTP POST to a reCAPTCHA server
Tags:
Parameters
| string |
$host |
|
| string |
$path |
|
| array |
$data |
|
| int |
$port |
port |
_recaptcha_mailhide_email_parts [line 248]
void _recaptcha_mailhide_email_parts(
$email)
|
|
gets the parts of the email to expose to the user. eg, given johndoe@example,com return ["john", "example.com"]. the email is then displayed as john...@example.com
Parameters
_recaptcha_mailhide_urlbase64 [line 225]
void _recaptcha_mailhide_urlbase64(
$x)
|
|
Parameters
_recaptcha_qsencode [line 47]
string _recaptcha_qsencode(
$data $data)
|
|
Encodes the given data into a query string format
Tags:
Parameters
| $data |
$data |
- array of string elements to be encoded |
|
|