Sponsorenverwaltung - Team StarCraft e.V.
 All Data Structures Files Functions Variables
captcha.php File Reference

Creates a captcha image. More...

Go to the source code of this file.

Functions

 hex2rgb ($hex)
 

Variables

 $fontSize = 12
 holds default font size More...
 
 $fontName = 'font/Verdana_Italic.ttf'
 holds default font name More...
 
 $fontColor = array(255, 255, 255)
 holds default font color More...
 
 $height = 35
 holds default height More...
 
 $width = 75
 holds default width More...
 

Detailed Description

Creates a captcha image.

Creates a captcha image. The color of the text displayed in the captcha can be set with the GET-variable color= followed by a 6 characters long hexadeximal description of the desired color.

This file is based on captcha.php from UserCake (Version 2.0.2) with modifications by Daniel Seichter

This file has no dependencies.

Version
1.0.0
Author
Usercake (http://usercake.com)
Daniel Seichter
Date
02.07.2013

Definition in file captcha.php.

Function Documentation

hex2rgb (   $hex)

Converts a hex color string to an array with decimal RGB values

Parameters
mixed$hexhex color string
Returns
array array containing the RGB values
Author
Daniel Seichter

Definition at line 31 of file captcha.php.

Variable Documentation

$fontColor = array(255, 255, 255)

holds default font color

Definition at line 55 of file captcha.php.

$fontName = 'font/Verdana_Italic.ttf'

holds default font name

Definition at line 52 of file captcha.php.

$fontSize = 12

holds default font size

Definition at line 49 of file captcha.php.

$height = 35

holds default height

Definition at line 58 of file captcha.php.

Referenced by resizeImage().

$width = 75

holds default width

Definition at line 61 of file captcha.php.

Referenced by resizeImage().