$sid = session_id();
if(!$sid){
session_start();
$sid = session_id();
}
require(dirname(__FILE__)."/humancheck_config.php");
//1) lets generate the code
$noautomationcode = "";
for($i=0; $i<$config_max_digits;$i++) $noautomationcode = $noautomationcode.rand(0,9);
//save it in session
$alfabetoM = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
$alfabeto = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
$generador = rand(0,25);
$generador1 = rand(0,25);
$letra_aleatorio1 = $alfabetoM[$generador];
$letra_aleatorio2 = $alfabeto[$generador1];
$HTTP_SESSION_VARS["noautomationcode"] = $letra_aleatorio1.$noautomationcode.$letra_aleatorio2;
$_SESSION[codigo] = $noautomationcode;
/*$numero_aleatorio = rand(1000,9999); // Generamos el numero secreto
$alfabeto = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
$alfabetoM = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
$secuencia = array ("1","2","3");
$generador = rand(0,25);
$letra_aleatorio = $alfabeto[$generador];
$secuencia = array ("1","2","3");
$generador = rand(0,25);
$letra_aleatorio1 = $alfabetoM[$generador];
*/
//
$config_max_digits = 5; //how many digits should be in secretcode?
$config_back_image = "backgroundimage.jpg"; // background image over which secret code will be shown
//it must be jpeg
$config_font = 100; //size of the font to print the secret code. Must fit the image.
//this is not implemented yet, however from 1 to 5? it makes some slight changes to the font
$config_code_color = "#000000"; //real color will not be exactly as this code, but closest existing in image palete
//
?>
Dirección de Investigación Científica y Tecnológica