diff --git a/include/function.inc.php b/include/function.inc.php index 6f631ea..b7c6abd 100644 --- a/include/function.inc.php +++ b/include/function.inc.php @@ -23,36 +23,6 @@ function getimage() { } } -// Captcha (cf http://www.webelix.net/trucs_et_astuces-(PHP)_Anti_Robots_Spammeurs.html) - -function aff_captcha() -{ - // Tableau de valeurs - $input = array(2, 35, 15, 6, 40, 4, 8, 22, 11, 5, 32, 10, 1, 12, 26, 16, 55, 17); - // Extraction aléatoire de deux valeurs du tableau - $rand_keys = array_rand($input, 2); - // Creation et calcul de la somme des deux valeurs - $question = 'Quelle est la somme de '.$input[$rand_keys[0]].' + '.$input[$rand_keys[1]].' = '; - $add = md5($input[$rand_keys[0]] + $input[$rand_keys[1]]); - - echo ' - - - - -
Anti-Spam : '. $question .' -
'; -} - -function valid_captcha() -{ -// if (md5($_POST['reponse']) == $_POST['captcha']) - if (md5(get_post('reponse')) == get_post('captcha')) - return true; - else - return false; -} - // // escape_string // Action: Escape a string