c_ws_plugin__s2member_utils_captchas
public class c_ws_plugin__s2member_utils_captchas
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 | Public/private keys to use for reCAPTCHA™. |
| public static str | recaptcha_script_tag(str $theme, str $tabindex, str $error) Builds a reCAPTCHA™ JavaScript |
public static bool recaptcha_code_validates(str $challenge, str $response)
Verifies a reCAPTCHA™ code via Google®.
3.5
str $challenge - The value of recaptcha_challenge_field during form submisson.
str $response - The value of recaptcha_response_field during form submission.
bool - True if $response is valid, else false.
public static array recaptcha_keys()
Public/private keys to use for reCAPTCHA™.
111203
array - An array with with two elements: public and private.
public static str recaptcha_script_tag(str $theme, str $tabindex, str $error)
Builds a reCAPTCHA™ JavaScript script tag for display.
3.5
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.
str - HTML markup for JavaScript tag.
Captcha utilities.