phpBB API Documentation
Class

phpbb_default_captcha

class phpbb_default_captcha

This class holds the code shared by the two default 3.0.x CAPTCHAs.

Properties

$confirm_id
$confirm_code
$code
$seed
$attempts
$type
$solved
$captcha_vars

Methods

init($type)

execute_demo()

execute()

get_template()

get_demo_template($id)

get_hidden_fields()

garbage_collect($type)

uninstall()

install()

validate()

generate_code()

The old way to generate code, suitable for GD and non-GD.

regenerate_code()

New Question, if desired.

new_attempt()

New Question, if desired.

load_code()

Look up everything we need for painting&checking.

check_code()

delete_code()

get_attempt_count()

reset()

is_solved()

has_config()

API function

Details

at line 36
public init($type)

Parameters

$type

at line 58
public execute_demo()

at line 73
public execute()

at line 88
public get_template()

at line 116
public get_demo_template($id)

Parameters

$id

at line 139
public get_hidden_fields()

at line 152
public garbage_collect($type)

Parameters

$type

at line 182
public uninstall()

at line 187
public install()

at line 192
public validate()

at line 234
public generate_code()

The old way to generate code, suitable for GD and non-GD.

Resets the internal state.

at line 258
public regenerate_code()

New Question, if desired.

at line 280
public new_attempt()

New Question, if desired.

at line 303
public load_code()

Look up everything we need for painting&checking.

at line 327
public check_code()

at line 332
public delete_code()

at line 343
public get_attempt_count()

at line 348
public reset()

at line 361
public is_solved()

at line 373
public has_config()

API function