UNB Components Code Reference

UnbCaptcha class

Completely Automated Public Turing test to tell Computers and Humans Apart, using text in an image.

Public methods

S CheckWord Checks the specified user input to determine whether it is correct or not.
S ClearWord Clears the last word.
S GenerateImage Generates the CAPTCHA image, sends it to the browser and terminates the script execution.
S GetConfiguration Gets the CAPTCHA configuration array.
S GetWord Gets the word used in the last displayed image in this session.
S SetConfiguration Sets a new CAPTCHA configuration array.

Private methods

   Class constructor No description available.
S NormaliseWord Normalises a word, removes non-letters, converts to upper case.
S php_imageconvolution Compatibility function for GD libraries not bundled with PHP.

Private fields

config  –  default: null
Configuration array. Should always be retrieved through the GetConfiguration method.

Implementation file: captcha.class.php, line 12

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.