equal
deleted
inserted
replaced
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 } |