class recaptcha extends captcha_abstract

Properties

$confirm_id from  captcha_abstract
$confirm_code from  captcha_abstract
$code from  captcha_abstract
$seed from  captcha_abstract
$attempts from  captcha_abstract
$type from  captcha_abstract
$solved from  captcha_abstract
$captcha_vars from  captcha_abstract
protected string $service_name from  captcha_abstract

Methods

init($type)

No description

execute_demo()

No description

execute()

No description

get_template()

No description

get_demo_template($id)

No description

get_hidden_fields()

No description

garbage_collect($type)

No description

validate()

No description

generate_code()

The old way to generate code, suitable for GD and non-GD. Resets the internal state.

regenerate_code()

New Question, if desired.

new_attempt()

New Question, if desired.

load_code()

Look up everything we need for painting&checking.

check_code()

No description

get_attempt_count()

No description

reset()

No description

is_solved()

No description

has_config()

API function

string
get_service_name()

No description

set_name(string $name)

Set the name of the plugin

string
get_generator_class()

This function is implemented because required by the upper class, but is never used for reCaptcha.

string
get_login_error_attempts()

Get language variable for error message when CAPTCHA is being shown due to exceeding the maximum number of login attempts

__construct()

Constructor

is_available()

No description

static 
get_name()

No description

acp_page($id, $module)

No description

bool|string
recaptcha_check_answer()

Calls an HTTP POST function to verify if the user's guess was correct

Details

at line 29
init($type)

No description

Parameters

$type

at line 128
execute_demo()

No description

at line 133
execute()

No description

at line 137
get_template()

No description

at line 164
get_demo_template($id)

No description

Parameters

$id

at line 169
get_hidden_fields()

No description

in captcha_abstract at line 152
garbage_collect($type)

No description

Parameters

$type

at line 182
validate()

No description

in captcha_abstract at line 223
generate_code()

The old way to generate code, suitable for GD and non-GD. Resets the internal state.

in captcha_abstract at line 247
regenerate_code()

New Question, if desired.

in captcha_abstract at line 269
new_attempt()

New Question, if desired.

in captcha_abstract at line 292
load_code()

Look up everything we need for painting&checking.

in captcha_abstract at line 316
check_code()

No description

in captcha_abstract at line 321
get_attempt_count()

No description

in captcha_abstract at line 326
reset()

No description

in captcha_abstract at line 339
is_solved()

No description

at line 48
has_config()

API function

in captcha_abstract at line 361
string get_service_name()

No description

Return Value

string

the name of the service corresponding to the plugin

in captcha_abstract at line 371
set_name(string $name)

Set the name of the plugin

Parameters

string $name

at line 62
string get_generator_class()

This function is implemented because required by the upper class, but is never used for reCaptcha.

Return Value

string

the name of the class used to generate the captcha

Exceptions

runtime_exception

in captcha_abstract at line 387
string get_login_error_attempts()

Get language variable for error message when CAPTCHA is being shown due to exceeding the maximum number of login attempts

Return Value

string

at line 25
__construct()

Constructor

at line 38
is_available()

No description

at line 53
static get_name()

No description

at line 67
acp_page($id, $module)

No description

Parameters

$id
$module

at line 199
bool|string recaptcha_check_answer()

Calls an HTTP POST function to verify if the user's guess was correct

Return Value

bool|string

Returns false on success or error string on failure.