aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-10-01 10:29:27 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-10-01 10:29:27 +0000
commit18bfc5e69b3709452828cb3b94d15283a992c82a (patch)
treeed7e440d112310183beff23dfb84f56bb90b5d40 /phpBB/includes/captcha/plugins
parentad4d7c036eb144559bbce553afa4952587c28e56 (diff)
downloadforums-18bfc5e69b3709452828cb3b94d15283a992c82a.tar
forums-18bfc5e69b3709452828cb3b94d15283a992c82a.tar.gz
forums-18bfc5e69b3709452828cb3b94d15283a992c82a.tar.bz2
forums-18bfc5e69b3709452828cb3b94d15283a992c82a.tar.xz
forums-18bfc5e69b3709452828cb3b94d15283a992c82a.zip
and why not this as well?
git-svn-id: file:///svn/phpbb/trunk@8965 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/plugins')
-rwxr-xr-xphpBB/includes/captcha/plugins/phpbb_captcha_gd_wave_plugin.php59
1 files changed, 59 insertions, 0 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_gd_wave_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_gd_wave_plugin.php
new file mode 100755
index 0000000000..57f0cb88e3
--- /dev/null
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_gd_wave_plugin.php
@@ -0,0 +1,59 @@
+<?php
+/**
+*
+* @package VC
+* @version $Id$
+* @copyright (c) 2006 2008 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+*
+*/
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+* Placeholder for autoload
+*/
+include_once(PHPBB_ROOT_PATH . 'includes/captcha/plugins/captcha_abstract.' . PHP_EXT);
+
+class phpbb_captcha_gd_wave extends phpbb_default_captcha implements phpbb_captcha_plugin
+{
+
+ function __construct()
+ {
+ include_once(PHPBB_ROOT_PATH . 'includes/captcha/captcha_gd_wave.' . PHP_EXT);
+ }
+
+ public static function get_instance()
+ {
+ return new phpbb_captcha_gd_wave();
+ }
+
+ static function is_available()
+ {
+ return (@extension_loaded('gd') || can_load_dll('gd'));
+ }
+
+ static function get_name()
+ {
+ return 'CAPTCHA_GD_WAVE';
+ }
+
+ static function get_class_name()
+ {
+ return 'phpbb_captcha_gd_wave';
+ }
+
+ function acp_page($id, &$module)
+ {
+ global $config, $db, $template, $user;
+
+ trigger_error($user->lang['CAPTCHA_NO_OPTIONS'] . adm_back_link($module->u_action));
+ }
+}
+
+?> \ No newline at end of file