includes/captcha.php
changeset 558 fd082123f2f4
parent 536 218a627eb53e
child 685 17ebe24cdf85
equal deleted inserted replaced
557:26479224936a 558:fd082123f2f4
   164   if ( !$engine )
   164   if ( !$engine )
   165   {
   165   {
   166     $engine = getConfig('captcha_engine');
   166     $engine = getConfig('captcha_engine');
   167     if ( !$engine )
   167     if ( !$engine )
   168     {
   168     {
   169       $engine = 'bc';
   169       $engine = 'freecap';
   170     }
   170     }
   171   }
   171   }
   172   if( !extension_loaded("gd") || !function_exists("gd_info") || !function_exists('imagettftext') )
   172   if( !extension_loaded("gd") || !function_exists("gd_info") || !function_exists('imagettftext') || !function_exists('imagepng') || !function_exists('imagecreatefromjpeg') )
   173   {
   173   {
   174     $engine = 'failsafe';
   174     $engine = 'failsafe';
   175   }
   175   }
   176   if ( !class_exists("captcha_engine_$engine") )
   176   if ( !class_exists("captcha_engine_$engine") )
   177   {
   177   {