XOOPS  2.6.0
XoopsCaptchaImageHandler Class Reference

Public Member Functions

 __construct ()
 
 createFromFile ()
 
 createImage ()
 
 createImageBmp ($file="")
 
 createImageGd ()
 
 drawBars ()
 
 drawBorder ()
 
 drawCircles ()
 
 drawCode ()
 
 drawEllipses ()
 
 drawLines ()
 
 drawPolygons ()
 
 drawRectangles ()
 
 generateCode ()
 
 getList ($name, $extension="")
 
 loadBackground ()
 
 loadFont ()
 
 loadImage ()
 
 setImageSize ()
 

Public Attributes

 $captcha_handler
 
 $code
 
 $config = array()
 
 $font
 
 $height
 
 $invalid = false
 
 $mode = 'gd'
 
 $oImage
 
 $spacing
 
 $width
 

Protected Attributes

 $xoops_root_path
 

Detailed Description

Definition at line 27 of file imageclass.php.

Constructor & Destructor Documentation

XoopsCaptchaImageHandler::__construct ( )

Constructor

Definition at line 86 of file imageclass.php.

References XoopsBaseConfig\get(), and XoopsCaptcha\getInstance().

Here is the call graph for this function:

Member Function Documentation

XoopsCaptchaImageHandler::createFromFile ( )

Draw Image background

Returns
void

Definition at line 293 of file imageclass.php.

References drawBars(), and loadBackground().

Referenced by createImageGd().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImage ( )

create an image

Returns
bool|string|void

Definition at line 139 of file imageclass.php.

References createImageBmp(), and createImageGd().

Referenced by loadImage().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImageBmp (   $file = "")

#@- Create CAPTCHA image with BMP

Parameters
string$filefilename
Returns
string of image

Definition at line 460 of file imageclass.php.

References $file, $image, and exit.

Referenced by createImage().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImageGd ( )

Create CAPTCHA iamge with GD

Originated by DuGris' SecurityImage

Author
DuGris aka L. Jen http://www.dugris.info DuGri.nosp@m.s@wa.nosp@m.nadoo.nosp@m..fr
Version
$Id$
Returns
void

Definition at line 191 of file imageclass.php.

References createFromFile(), drawBars(), drawBorder(), drawCircles(), drawCode(), drawEllipses(), drawLines(), drawPolygons(), drawRectangles(), loadFont(), and setImageSize().

Referenced by createImage().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawBars ( )

Draw Bars background

Returns
void

Definition at line 406 of file imageclass.php.

References $height, $i, and $width.

Referenced by createFromFile(), and createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawBorder ( )

Draw Border

Returns
void

Definition at line 355 of file imageclass.php.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawCircles ( )

Draw Circles background

Returns
void

Definition at line 367 of file imageclass.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawCode ( )

Draw Code

Returns
void

Definition at line 322 of file imageclass.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawEllipses ( )

Draw Ellipses background

Returns
void

Definition at line 425 of file imageclass.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawLines ( )

Draw Lines background

Returns
void

Definition at line 380 of file imageclass.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawPolygons ( )

Draw polygons background

Returns
voif

Definition at line 438 of file imageclass.php.

References $i, and $j.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawRectangles ( )

Draw Rectangles background

Returns
void

Definition at line 393 of file imageclass.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::generateCode ( )

Create Code

Returns
bool

Definition at line 109 of file imageclass.php.

Referenced by loadImage().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::getList (   $name,
  $extension = "" 
)

Get a list of extensions

Parameters
string$namename of captcha looking for
string$extensionextentions for captcha
Returns
array|mixed

Definition at line 162 of file imageclass.php.

References $files, Xoops\Core\Cache\Legacy\read(), and Xoops\Core\Cache\Legacy\write().

Referenced by loadBackground(), and loadFont().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadBackground ( )

Return random background

Returns
string|null

Definition at line 279 of file imageclass.php.

References getList().

Referenced by createFromFile().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadFont ( )

loads a font

Returns
void

Definition at line 236 of file imageclass.php.

References getList().

Referenced by createImageGd(), and setImageSize().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadImage ( )

load an image

Returns
void

Definition at line 98 of file imageclass.php.

References createImage(), and generateCode().

Here is the call graph for this function:

XoopsCaptchaImageHandler::setImageSize ( )

sets the size of the image

Returns
void

Definition at line 247 of file imageclass.php.

References $i, $oImage, and loadFont().

Referenced by createImageGd().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

XoopsCaptchaImageHandler::$captcha_handler

Definition at line 71 of file imageclass.php.

XoopsCaptchaImageHandler::$code

Definition at line 36 of file imageclass.php.

XoopsCaptchaImageHandler::$config = array()

Definition at line 32 of file imageclass.php.

XoopsCaptchaImageHandler::$font

Definition at line 51 of file imageclass.php.

XoopsCaptchaImageHandler::$height

Definition at line 66 of file imageclass.php.

Referenced by drawBars().

XoopsCaptchaImageHandler::$invalid = false

Definition at line 46 of file imageclass.php.

XoopsCaptchaImageHandler::$mode = 'gd'

Definition at line 41 of file imageclass.php.

XoopsCaptchaImageHandler::$oImage

Definition at line 76 of file imageclass.php.

Referenced by setImageSize().

XoopsCaptchaImageHandler::$spacing

Definition at line 56 of file imageclass.php.

XoopsCaptchaImageHandler::$width

Definition at line 61 of file imageclass.php.

Referenced by drawBars().

XoopsCaptchaImageHandler::$xoops_root_path
protected

Definition at line 81 of file imageclass.php.


The documentation for this class was generated from the following file: