XOOPS
2.6.0
|
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 | |
Definition at line 27 of file imageclass.php.
XoopsCaptchaImageHandler::__construct | ( | ) |
Constructor
Definition at line 86 of file imageclass.php.
References XoopsBaseConfig\get(), and XoopsCaptcha\getInstance().
XoopsCaptchaImageHandler::createFromFile | ( | ) |
Draw Image background
Definition at line 293 of file imageclass.php.
References drawBars(), and loadBackground().
Referenced by createImageGd().
XoopsCaptchaImageHandler::createImage | ( | ) |
create an image
Definition at line 139 of file imageclass.php.
References createImageBmp(), and createImageGd().
Referenced by loadImage().
XoopsCaptchaImageHandler::createImageBmp | ( | $file = "" | ) |
#@- Create CAPTCHA image with BMP
string | $file | filename |
Definition at line 460 of file imageclass.php.
References $file, $image, and exit.
Referenced by createImage().
XoopsCaptchaImageHandler::createImageGd | ( | ) |
Create CAPTCHA iamge with GD
Originated by DuGris' SecurityImage
Definition at line 191 of file imageclass.php.
References createFromFile(), drawBars(), drawBorder(), drawCircles(), drawCode(), drawEllipses(), drawLines(), drawPolygons(), drawRectangles(), loadFont(), and setImageSize().
Referenced by createImage().
XoopsCaptchaImageHandler::drawBars | ( | ) |
Draw Bars background
Definition at line 406 of file imageclass.php.
References $height, $i, and $width.
Referenced by createFromFile(), and createImageGd().
XoopsCaptchaImageHandler::drawBorder | ( | ) |
Draw Border
Definition at line 355 of file imageclass.php.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawCircles | ( | ) |
Draw Circles background
Definition at line 367 of file imageclass.php.
References $i.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawCode | ( | ) |
Draw Code
Definition at line 322 of file imageclass.php.
References $i.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawEllipses | ( | ) |
Draw Ellipses background
Definition at line 425 of file imageclass.php.
References $i.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawLines | ( | ) |
Draw Lines background
Definition at line 380 of file imageclass.php.
References $i.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawPolygons | ( | ) |
Draw polygons background
Definition at line 438 of file imageclass.php.
Referenced by createImageGd().
XoopsCaptchaImageHandler::drawRectangles | ( | ) |
Draw Rectangles background
Definition at line 393 of file imageclass.php.
References $i.
Referenced by createImageGd().
XoopsCaptchaImageHandler::generateCode | ( | ) |
Create Code
Definition at line 109 of file imageclass.php.
Referenced by loadImage().
XoopsCaptchaImageHandler::getList | ( | $name, | |
$extension = "" |
|||
) |
Get a list of extensions
string | $name | name of captcha looking for |
string | $extension | extentions for captcha |
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().
XoopsCaptchaImageHandler::loadBackground | ( | ) |
Return random background
Definition at line 279 of file imageclass.php.
References getList().
Referenced by createFromFile().
XoopsCaptchaImageHandler::loadFont | ( | ) |
loads a font
Definition at line 236 of file imageclass.php.
References getList().
Referenced by createImageGd(), and setImageSize().
XoopsCaptchaImageHandler::loadImage | ( | ) |
load an image
Definition at line 98 of file imageclass.php.
References createImage(), and generateCode().
XoopsCaptchaImageHandler::setImageSize | ( | ) |
sets the size of the image
Definition at line 247 of file imageclass.php.
References $i, $oImage, and loadFont().
Referenced by createImageGd().
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().
|
protected |
Definition at line 81 of file imageclass.php.