[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/ -> class_captcha.php (summary)

(no description)

File Size: 506 lines (12 kb)
Included or required: 19 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

captcha:: (10 methods):
  __construct()
  build_captcha()
  build_recaptcha()
  build_hcaptcha()
  build_hidden_captcha()
  validate_captcha()
  invalidate_captcha()
  set_error()
  get_errors()
  _qsencode()


Class: captcha  - X-Ref

MyBB 1.8
Copyright 2014 MyBB Group, All Rights Reserved

Website: http://www.mybb.com
License: http://www.mybb.com/about/license

This class is based from reCAPTCHA's PHP library, adapted for use in MyBB.

Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net
AUTHORS:
Mike Crawford
Ben Maurer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
__construct($build = false, $template = "")   X-Ref

param: bool   $build
param: string $template

build_captcha($return = false)   X-Ref

param: bool $return Not used

build_recaptcha()   X-Ref
No description

build_hcaptcha()   X-Ref
No description

build_hidden_captcha()   X-Ref

return: string

validate_captcha()   X-Ref

return: bool

invalidate_captcha()   X-Ref
No description

set_error($error, $data='')   X-Ref
Add an error to the error array.
param: string $error
param: string $data

get_errors()   X-Ref
Returns the error(s) that occurred when handling data
in a format that MyBB can handle.

return: array An array of errors in a MyBB format.

_qsencode($data)   X-Ref

return: string
param: array $data



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref