Login   Register  
PHP Classes
elePHPant
Icontem

File: test.captcha.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Huda M Elmatsani  >  VeriWord  >  test.captcha.php  >  Download  
File: test.captcha.php
Role: Example script
Content type: text/plain
Description: test captcha class
Class: VeriWord
A PHP CAPTCHA System
Author: By
Last change:
Date: 9 years ago
Size: 1,199 bytes
 

Contents

Class file image Download
<?php
######
## VeriWord
## A PHP CAPTCHA System
## Version 2
#######
## Author: Huda M Elmatsani
## Email:     justhuda ## netscape ## net
##
## 25/07/2004
#######
## Copyright (c) 2004 Huda M Elmatsani All rights reserved.
## This program is free for any purpose use.
########
##
## PACKAGE OF VERIWORD V2
## sample.php
## image.veriword.php
## class.veriword.php
## class.captcha.php
## class.noisegenerator.php
## class.wordgenerator.php
## class.wordart.php
## class.filefinder.php
## class.configreader.php
## veriword.ini
##
#######

require_once("class.captcha.php");


$imgcaptcha = new Captcha;

$captcha['width'] = 200;
$captcha['height'] = 80;

$randomword['type'] = 'DictionaryWord';
$randomword['dict'] = 'words/words.txt';
$randomword['length'] = 5;

//Noise
$noise['type'] = 'RandomNoise';
$noise['dir'] = 'noises/';


//WordArt
$wordart['dir'] = 'fonts/';
$wordart['capital'] = TRUE;
$wordart['color'] = '#000000';
$wordart['angle'] = 20;
$wordart['filter'] = 'Wavy';

$imgcaptcha->setConfiguration($captcha$randomword,$noise,$wordart);
$im $imgcaptcha->getCaptcha();

header("Content-type: image/jpeg");
imagejpeg($im);
?>