Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Utilities

s2member\includes\classes\utils-captchas.inc.php at line #28

Class c_ws_plugin__s2member_utils_captchas

c_ws_plugin__s2member_utils_captchas

public class c_ws_plugin__s2member_utils_captchas

Captcha utilities.

Since:

3.5


( 3 Methods )
Method Summary
public static bool

recaptcha_code_validates(str $challenge, str $response)

Verifies a reCAPTCHA™ code via Google®.

public static array

recaptcha_keys()

Public/private keys to use for reCAPTCHA™.

public static str

recaptcha_script_tag(str $theme, str $tabindex, str $error)

Builds a reCAPTCHA™ JavaScript script tag for display.

( 3 Methods )
Method Detail

s2member\includes\classes\utils-captchas.inc.php at line #55

recaptcha_code_validates()

public static bool recaptcha_code_validates(str $challenge, str $response)

Verifies a reCAPTCHA™ code via Google®.

Since:

3.5

Parameters:

str $challenge - The value of recaptcha_challenge_field during form submisson.

str $response - The value of recaptcha_response_field during form submission.

Returns:

bool - True if $response is valid, else false.

[ back to top ]

s2member\includes\classes\utils-captchas.inc.php at line #38

recaptcha_keys()

public static array recaptcha_keys()

Public/private keys to use for reCAPTCHA™.

Since:

111203

Returns:

array - An array with with two elements: public and private.

[ back to top ]

s2member\includes\classes\utils-captchas.inc.php at line #73

recaptcha_script_tag()

public static str recaptcha_script_tag(str $theme, str $tabindex, str $error)

Builds a reCAPTCHA™ JavaScript script tag for display.

Since:

3.5

Parameters:

str $theme - Optional. The theme used in display. Defaults to clean.

str $tabindex - Optional. Value of tabindex="" attribute. Defaults to -1.

str $error - Optional. An error message to display.

Returns:

str - HTML markup for JavaScript tag.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail