Project

General

Profile

« Previous | Next » 

Revision 215

Added by stefan about 19 years ago

Fixed bug #54 - captcha functionality not working.

View differences:

trunk/wb/modules/form/view.php
251 251
	
252 252
	// Captcha
253 253
	if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
254
		if(isset($_POST['captcha'])) {
254
		if(isset($_POST['captcha']) AND $_POST['CAPTCHA']!=''){
255 255
			// User-supplied captcha
256 256
			$user_captcha = $_POST['captcha'];
257 257
			// Computer generated
......
260 260
			}
261 261
			// Check for a mismatch
262 262
			if($user_captcha != $system_captcha) {
263
				$captcha_error = $MESSAGE['INCORRECT_CAPTCHA'];
263
				$captcha_error = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
264 264
			} else {
265 265
				unset($_SESSION['captcha']);
266 266
			}
267
		} else {
268
			$captcha_error = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
267 269
		}
268 270
	}
269 271
	

Also available in: Unified diff