[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/mp-includes/class/options/form/field_types/recaptcha/captcha/ -> recaptchalib.php (summary)

The reCAPTCHA server URL's

File Size: 277 lines (10 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ReCaptchaResponse:: (8 methods):

Defines 8 functions


Class: ReCaptchaResponse  - X-Ref

A ReCaptchaResponse is returned from recaptcha_check_answer()

recaptcha_check_answer( $privkey, $remoteip, $challenge, $response, $extra_params = array()   X-Ref
Calls an HTTP POST function to verify if the user's guess was correct

param: string $privkey
param: string $remoteip
param: string $challenge
param: string $response
param: array $extra_params an array of extra variables to post to the server
return: ReCaptchaResponse

recaptcha_get_signup_url( $domain = null, $appname = null )   X-Ref
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.

param: string $domain The domain where the page is hosted
param: string $appname The name of your application

_recaptcha_aes_pad( $val )   X-Ref
No description

_recaptcha_aes_encrypt( $val,$ky )   X-Ref
No description

_recaptcha_mailhide_urlbase64( $x )   X-Ref
No description

recaptcha_mailhide_url( $pubkey, $privkey, $email )   X-Ref
No description

_recaptcha_mailhide_email_parts( $email )   X-Ref
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

recaptcha_mailhide_html( $pubkey, $privkey, $email )   X-Ref
Gets html to display an email address given a public an private key.
to get a key, go to:


Functions that are not part of a class:

_recaptcha_qsencode( $data )   X-Ref
Encodes the given data into a query string format

param: $data - array of string elements to be encoded
return: string - encoded request

_recaptcha_http_post( $host, $path, $data, $port = 80 )   X-Ref
Submits an HTTP POST to a reCAPTCHA server

param: string $host
param: string $path
param: array $data
param: int port
return: array response

recaptcha_get_html( $pubkey, $error = null, $use_ssl = false )   X-Ref
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.

param: string $pubkey A public key for reCAPTCHA
param: string $error The error given by reCAPTCHA ( optional, default is null )
param: boolean $use_ssl Should the request be made over ssl? ( optional, default is false )
return: string - The HTML to be embedded in the user's form.

Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1