// configurate variables global $symbols, $letter; $image_width = 80; $image_height = 18; $font_size = 11; $symbols = 5; $area = $image_width/$symbols; //$back_lines = 1; // set to 1 to show lines grid $back_lines = 0; // set to 1 to show lines grid $src = "src"; // path to fonts and image // Definir la variable de entorno para GD putenv('GDFONTPATH=' . realpath('.')); // define font array here //$font = array("granit.ttf","elephant.ttf","cooper.ttf","penta.ttf"); $font = array("lsansdi.ttf","impact.ttf","lsansdi.ttf","impact.ttf"); $letter = array("P","S","D","W","O","U","K","H","Q","E","B","A","J","L","G","F","M","V","C","X","N","Y","I","R","T"); function code($in){ return strtr($in*5465872319, "1234567890", "HrYlKsMpXw"); } function decode($in){ return (strtr($in, "HrYlKsMpXw", "1234567890")/5465872319); } ?>