Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_text.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Josť Manuel Carnero  >  Captchazo  >  sample_text.php  >  Download  
File: sample_text.php
Role: Example script
Content type: text/plain
Description: Use as text
Class: Captchazo
Validate users with image or text based CAPTCHA
Author: By
Last change:
Date: 2 years ago
Size: 571 bytes
 

Contents

Class file image Download
<?php
//includes comunes
require('class.captchazo.inc'); //parametros basicos de la aplicacion
$oTest captchazo_sel('letra');

/*$oTest->sDirectorio = false; //dirname(__FILE__).'/captchazo/';
$oTest->iAncho = 100;
$oTest->iAlto = 50;
$oTest->aCaracteres = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','p','q','r','s','t','u','v','w','x','y','z',1,2,3,4,5,6,7,8,9,0,'!','?','@','#','+','-','*','/','=','$','%','&');
*/
$oTest->generar();

echo(
$oTest->sHtml);
/*var_dump($oTest->sPregunta);
var_dump($oTest->sRespuesta);
var_dump($oTest->sError);*/
?>