Revision 266
Added by ryan almost 20 years ago
| trunk/wb/account/signup2.php | ||
|---|---|---|
| 58 | 58 |
$admin->print_error($MESSAGE['SIGNUP']['NO_EMAIL'], $js_back); |
| 59 | 59 |
} |
| 60 | 60 |
// Captcha |
| 61 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
|
|
| 61 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg') AND CAPTCHA_VERIFICATION) { /* Make's sure GD library is installed */
|
|
| 62 | 62 |
if(isset($_POST['captcha']) AND $_POST['captcha'] != ''){
|
| 63 | 63 |
// Check for a mismatch |
| 64 | 64 |
if(!isset($_POST['captcha']) OR !isset($_SESSION['captcha']) OR $_POST['captcha'] != $_SESSION['captcha']) {
|
Also available in: Unified diff
Fixed captcha bug for signup when disabled