Revision 630
Added by thorn almost 17 years ago
text.php | ||
---|---|---|
39 | 39 |
if($content===FALSE) { |
40 | 40 |
echo '<b>Error</b>: Can not read text! Enter <b>0</b> to solve this captcha'; |
41 | 41 |
$_SESSION['captcha'] = '0'; |
42 |
exit;
|
|
42 |
return;
|
|
43 | 43 |
} |
44 | 44 |
reset($content); |
45 | 45 |
while($s = current($content)) { |
... | ... | |
69 | 69 |
if($qa == array()) { |
70 | 70 |
echo '<b>Error</b>: no text defined! Enter <b>0</b> to solve this captcha'; |
71 | 71 |
$_SESSION['captcha'] = '0'; |
72 |
exit;
|
|
72 |
return;
|
|
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
// choose language to use |
... | ... | |
80 | 80 |
if(!isset($qa[$lang])) { |
81 | 81 |
echo '<b>Error</b>: no text defined! Enter <b>0</b> to solve this captcha'; |
82 | 82 |
$_SESSION['captcha'] = '0'; |
83 |
exit;
|
|
83 |
return;
|
|
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
// choose random question |
Also available in: Unified diff
Text-CAPTCHA: uses return() instead of exit() in case of error.