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