[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/captcha/ -> captcha_non_gd.php (summary)

(no description)

Copyright: (c) 2006 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 392 lines (86 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

captcha:: (6 methods):
  captcha()
  execute()
  randomise()
  png_chunk()
  create_png()
  define_filtered_pngs()


Class: captcha  - X-Ref

Main non-gd captcha class

captcha()   X-Ref
Define filtered pngs on init


execute($code, $seed)   X-Ref
Create the image containing $code with a seed of $seed


randomise($scanline, $width)   X-Ref
This is designed to randomise the pixels of the image data within
certain limits so as to keep it readable. It also varies the image
width a little


png_chunk($length, $type, $data)   X-Ref
This creates a chunk of the given type, with the given data
of the given length adding the relevant crc


create_png($raw_image, $width, $height)   X-Ref
Creates greyscale 8bit png - The PNG spec can be found at
http://www.libpng.org/pub/png/spec/PNG-Contents.html we use
png because it's a fully recognised open standard and supported
by practically all modern browsers and OSs


define_filtered_pngs()   X-Ref
png image data
Each 'data' element is base64_encoded uncompressed IDAT




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1