24a25,39 > // JACQUES > $captcha_questions = array( > 'Combien font deux plus vingt ?' => 22, > 'Combien font 44 moins un ?' => 43, > 'Combien font vingt-trois plus deux ?' => 25, > 'Combien font (10*3) ?' => 30, > 'Combien font cinq moins deux plus deux ?' => 5, > 'Combien font six et trois ?' => 9, > 'Combien font sept moins un ?' => 6, > 'Combien font huit fois deux ?' => 16, > 'Combien font 10 fois dix ?' => 100, > 'Combien font neuf fois 2 ?' => 18 > ); > $captcha_index = rand(0,count($captcha_questions)-1); > // FIN JACQUES 81a97,108 > // JACQUES > // Check the captcha > $p_question = trim($_POST['captcha_q']); > $p_answer = trim($_POST['captcha']); > > $questions_arry = array(); > foreach ($captcha_questions as $k => $v) > $questions_arry[md5($k)] = $v; > > if (empty($questions_arry[$p_question]) || $questions_arry[$p_question] != $p_answer) > message('Vous vous êtes trompé à la question ou vous n\'etes peut-être pas un humain ...'); > // JACQUES FIN 85a113 > 403a432,441 > > $question = array_keys($captcha_questions); > $qencoded = md5($question[$captcha_index]); > ?> >
Afin de terminer votre inscription, veuillez répondre à la question suivante et envoyer le formulaire :
> >