<?php
/*
:::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: CAPTCHA Validation projects ::
:: ::
:: 2007 02. 01. 18.24. ::
:: ::
:: ::
:: ::
:: Try on-line animated CAPTCHA form generator ::
:: ::
:: http://gifs.hu/phpclasses/demos/Captcha01/ ::
:: ::
:: ::
:: ::
:::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: Include required classes ::
:: ::
:::::::::::::::::::::::::::::::::::::::::::::::::
*/
include "/home/myownspace/web/www/classes/gifcaptcha/Captcha_Vol_01.class.php";
include "/home/myownspace/web/www/classes/gifcaptcha/Captcha_Vol_01.funcs.php";
/*
:::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: And turn the http header into image/gif ::
:: ::
:::::::::::::::::::::::::::::::::::::::::::::::::
*/
Header ( 'Content-type: image/gif' );
if ( $dh = opendir ( "/home/myownspace/web/www/classes/gifcaptcha/fonts/" ) ) {
while ( false !== ( $dat = readdir ( $dh ) ) ) {
if ( $dat != "." && $dat != ".." ) {
$fonts [ ] = "/home/myownspace/web/www/classes/gifcaptcha/fonts/$dat";
}
}
closedir ( $dh );
}
if ( $_GET [ 'uid' ] ) {
$UID = explode ( ";", $_GET [ 'uid' ] );
$IMG = new Captcha ( md5_decrypt ( $UID [ 1 ] ),
$fonts [ rand ( 0, ( count ( $fonts ) ) - 1 ) ], "8a8a8a" );
echo $IMG->AnimatedOut ( );
}
?>