values['_captcha'] = strtolower($captcha); $SESS->put(); //On détruit les variables inutiles unset($chiffre, $i, $caractere, $nbr_chiffres, $nb_caracteres, $caracteres); //On définit la police //$fontfile = './'.mt_rand(0, 2).'.TTF'; $fontfile = './2.TTF'; //imagestring($_img, 5, 18, 8, $nombre, $avant_plan); if ($fontfile == './0.TTF') ImageTTFText($_img, 20, 2, 0, 23, $avant_plan, $fontfile, strtoupper($captcha)); else ImageTTFText($_img, 20, mt_rand(1,5), rand(1,7), 30, $avant_plan, $fontfile, $captcha); imagepng($_img); ?>