PHP Classes

File: libreria/generateCaptcha.php

Recommend this page to a friend!
  Classes of Guerrieri Luca   PXAServer   libreria/generateCaptcha.php   Download  
File: libreria/generateCaptcha.php
Role: Auxiliary script
Content type: text/plain
Description: it generate a captcha image for login interface
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change: updated to ver. 1.0.0
Date: 14 years ago
Size: 433 bytes
 

Contents

Class file image Download
<?php
/*
 * File per testare la classe Session
 * Le prove sono sequenziali quindi si deve commentare il codice della
 * prova precedente e decommentare quello della prova successiva
 */
 //$_C_Captcha=true;
 //$_C_Session=true;
 
require ('global.inc.php');
 
$c = new Captcha;
 
$stringa=$c->rand_str();
 
$s = new Session;
 
$s -> init_session();
 
$s -> set_session_var("captcha",$stringa);
 
$c -> make($stringa);

?>