[ Index ]

MailPress 7.0.1

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

title

Body

[close]

/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):
  recaptcha_check_answer()
  recaptcha_get_signup_url()
  _recaptcha_aes_pad()
  _recaptcha_aes_encrypt()
  _recaptcha_mailhide_urlbase64()
  recaptcha_mailhide_url()
  _recaptcha_mailhide_email_parts()
  recaptcha_mailhide_html()

Defines 8 functions

  _recaptcha_qsencode()
  _recaptcha_http_post()
  recaptcha_get_html()

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:

http://mailhide.recaptcha.net/apikey

Functions
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: Mon Jan 28 00:07:10 2019 Cross-referenced by PHPXref 0.7.1