recaptcha_check_answer [line 152]
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 |
ReCaptchaResponse recaptcha_check_answer(
string $privkey, string $remoteip, string $challenge, string $response, [array $extra_params = array()]
)
|
|
recaptcha_get_html [line 106]
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.
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) |
API Tags:
| Return: | - The HTML to be embedded in the user's form. |
string recaptcha_get_html(
string $pubkey, [string $error = null], [boolean $use_ssl = false]
)
|
|
recaptcha_get_signup_url [line 202]
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 |
void recaptcha_get_signup_url(
[string $domain = null], [string $appname = null]
)
|
|
recaptcha_mailhide_html [line 267]
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:
|
|
$pubkey: |
|
|
|
$privkey: |
|
|
|
$email: |
|
void recaptcha_mailhide_html(
$pubkey, $privkey, $email
)
|
|
recaptcha_mailhide_url [line 230]
Parameters:
|
|
$pubkey: |
|
|
|
$privkey: |
|
|
|
$email: |
|
void recaptcha_mailhide_url(
$pubkey, $privkey, $email
)
|
|
_recaptcha_aes_encrypt [line 214]
Parameters:
void _recaptcha_aes_encrypt(
$val, $ky
)
|
|
_recaptcha_aes_pad [line 206]
Parameters:
void _recaptcha_aes_pad(
$val
)
|
|
_recaptcha_http_post [line 67]
Submits an HTTP POST to a reCAPTCHA server
Parameters:
|
string |
$host: |
|
|
string |
$path: |
|
|
array |
$data: |
|
|
int |
$port: |
port |
API Tags:
array _recaptcha_http_post(
string $host, string $path, array $data, [int $port = 80]
)
|
|
_recaptcha_mailhide_email_parts [line 248]
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:
void _recaptcha_mailhide_email_parts(
$email
)
|
|
_recaptcha_mailhide_urlbase64 [line 225]
Parameters:
void _recaptcha_mailhide_urlbase64(
$x
)
|
|
_recaptcha_qsencode [line 47]
Encodes the given data into a query string format
Parameters:
|
$data |
$data: |
- array of string elements to be encoded |
API Tags:
| Return: | - encoded request |
string _recaptcha_qsencode(
$data $data
)
|
|