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
$recaptcha_server
$recaptcha_server_secure
$response

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

uninstall()

No description

install()

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 32
init($type)

No description

Parameters

$type

at line 122
execute_demo()

No description

at line 127
execute()

No description

at line 131
get_template()

No description

at line 157
get_demo_template($id)

No description

Parameters

$id

at line 162
get_hidden_fields()

No description

in captcha_abstract at line 152
garbage_collect($type)

No description

Parameters

$type

at line 175
uninstall()

No description

at line 180
install()

No description

at line 185
validate()

No description

in captcha_abstract at line 233
generate_code()

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

in captcha_abstract at line 257
regenerate_code()

New Question, if desired.

in captcha_abstract at line 279
new_attempt()

New Question, if desired.

in captcha_abstract at line 302
load_code()

Look up everything we need for painting&checking.

in captcha_abstract at line 326
check_code()

No description

in captcha_abstract at line 331
get_attempt_count()

No description

in captcha_abstract at line 336
reset()

No description

in captcha_abstract at line 349
is_solved()

No description

at line 51
has_config()

API function

in captcha_abstract at line 371
string get_service_name()

No description

Return Value

string

the name of the service corresponding to the plugin

in captcha_abstract at line 381
set_name(string $name)

Set the name of the plugin

Parameters

string $name

at line 64
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

in captcha_abstract at line 397
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 26
__construct()

Constructor

at line 41
is_available()

No description

at line 56
static get_name()

No description

at line 69
acp_page($id, $module)

No description

Parameters

$id
$module

at line 202
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.