Project

General

Profile

« Previous | Next » 

Revision 1371

Added by Dietmar over 13 years ago

captcha patch (Tks to FrankH)

View differences:

text.php
31 31
$file = WB_PATH."/temp/.captcha_$name.php";
32 32

  
33 33
srand((double)microtime()*100000);
34
$_SESSION['captcha'] = rand(0,99999);
34
$_SESSION['captcha'.$sec_id] = rand(0,99999);
35 35

  
36 36
// get questions and answers
37 37
$text_qa='';
......
90 90
// choose random question
91 91
$k = array_rand($qa[$lang]);
92 92

  
93
$_SESSION['captcha'] = $qa[$lang][$k];
93
$_SESSION['captcha'.$sec_id] = $qa[$lang][$k];
94 94

  
95 95
echo $k;
96 96

  

Also available in: Unified diff