[ Index ]

PHP Cross Reference of phpBB 3.0 Beta 3

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: captcha_non_gd.php,v 1.5 2006/09/04 20:35:46 acydburn Exp $
File Size: 386 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)   X-Ref
Create the image containing $code


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 Nov 22 00:35:05 2006 Cross-referenced by PHPXref 0.6