Acaptcha is an anti-spam bot which protects your web-site form bots and spammers
by providing image and audio captcha to distingue between humans and computers.
captcha is stands for
(Completely Automated Public Turing test to tell Computers and Humans Apart) 

features :
----------
* Highly customizable with many options.
* it supports multiple fonts.
* Can output multiple images format.
* The background can be an image or gradient or just constant color.
* It supports audio captcha for virtual impaired people (Alpha).
* It uses ajax to refresh the captcha without
 the need for refreshing the whole page.
* It is first captcha that supports Arabic language using
only php language without using any external library or java.
* Have multiple filter for captcha's images ( wave, noise, blur, 
random lines and backgrounds characters, …… etc).
* Can use random generated characters or use words
from dictionary ( English – Arabic).
* It uses HTML5 audio tag to output the sound track, 
there is no need for flash player.

usage :
-------
first of all you need to include class_captcha.php in your document and
 create a new object ,options can be passed  through  out  the constructer
"
$captcha = new captcha(
		array
		(
			'option1'	=>	value,
			'option2'	=>	value,
			'option3'	=>	value
		)
	);
"

See The list of available option below.

the function display_captcha() returns an array the first one is an array
containing cashe folder path and file name
and the second one containing audio cashe folder path and file name
but the third element is the MD5 hash for the security code.

headline options
----------------

* 'tmp_dir' the folder where this cashe file will be stored
* 'image_dir' the folder where background images are stored 
if not provided gradenate background will be applied
* 'audio_dir' the folder where audio wave files are stored
* 'font_dir' the folder where ttf fonts files are stored
* 'image_width', 'image_height' the width and the height of the image ;
note that the chars will not be offset if you resized the image
* 'life_time' how many seconds before deleting the files
* 'background' tacks int 1-image, 2-gradient, 3-color
* 'ajax_file' the path to ajax file
* 'difficulty' also tacks an int 1  - easy , 2 - medium , 3 - hard 
* 'words' to generate code form dictionary or not ; true, false
* 'words_dir' path to words folder which contains to folders 'en, ar'
* 'arabic make' the captcha word arabic
* * 'use_audio' accepts true or false; to use audio or not

copyrights and license 
----------------------
This class is programed By Abd Allatif Eymsh Copyright (c) 
2012 all rights reserved
the copyright notice MUST stay intact for use
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation version 2
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

##the audio files are taken form pear's lib Text Spell Audio see 
http://pear.php.net/package/Text_Spell_Audio/docs/latest/Text_Spell_Audio
/Text_Spell_Audio.html
for more info

##the wave joining functions are taken form WavEdit
http://www.phpclasses.org/package
/2608-PHP-Manipulate-audio-files-in-the-WAV-format.html
For More info
