plugins/SpecialUserFuncs.php
changeset 1313 da50b017af94
parent 1303 ed0bd14b6223
child 1335 28b52db3cf3a
equal deleted inserted replaced
1312:e6c6b42a5a51 1313:da50b017af94
  1371 	$q = $db->sql_query('UPDATE ' . table_prefix . "captcha SET code = '$code' WHERE session_id = '$hash';");
  1371 	$q = $db->sql_query('UPDATE ' . table_prefix . "captcha SET code = '$code' WHERE session_id = '$hash';");
  1372 	if ( !$q )
  1372 	if ( !$q )
  1373 		$db->_die();
  1373 		$db->_die();
  1374 	
  1374 	
  1375 	require ( ENANO_ROOT.'/includes/captcha.php' );
  1375 	require ( ENANO_ROOT.'/includes/captcha.php' );
  1376 	$captcha = captcha_object($hash, 'freecap');
  1376 	try
       
  1377 	{
       
  1378 		$captcha = captcha_object($hash, 'freecap');
       
  1379 	}
       
  1380 	catch ( Exception $e )
       
  1381 	{
       
  1382 		die("CAPTCHA engine returned a hard exception");
       
  1383 	}
  1377 	// $captcha->debug = true;
  1384 	// $captcha->debug = true;
  1378 	$captcha->make_image();
  1385 	$captcha->make_image();
  1379 	
  1386 	
  1380 	exit;
  1387 	exit;
  1381 }
  1388 }