6 * @copyright (c) 2006, 2008 phpBB Group
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
14 if (!defined('IN_PHPBB'))
20 * Placeholder for autoload
22 if (!class_exists('phpbb_default_captcha'))
24 include($phpbb_root_path . 'includes/captcha/plugins/captcha_abstract.' . $phpEx);
30 class phpbb_captcha_gd_wave extends phpbb_default_captcha
33 function phpbb_captcha_gd_wave()
35 global $phpbb_root_path, $phpEx;
37 if (!class_exists('captcha'))
39 include_once($phpbb_root_path . 'includes/captcha/captcha_gd_wave.' . $phpEx);
43 function get_instance()
45 return new phpbb_captcha_gd_wave();
48 function is_available()
50 global $phpbb_root_path, $phpEx;
52 if (@extension_loaded('gd'))
57 if (!function_exists('can_load_dll'))
59 include($phpbb_root_path . 'includes/functions_install.' . $phpEx);
62 return can_load_dll('gd');
67 return 'CAPTCHA_GD_3D';
70 function get_class_name()
72 return 'phpbb_captcha_gd_wave';
75 function acp_page($id, &$module)
77 global $config, $db, $template, $user;
79 trigger_error($user->lang['CAPTCHA_NO_OPTIONS'] . adm_back_link($module->u_action));