diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2009-06-12 15:24:30 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2009-06-12 15:24:30 +0000 |
| commit | 8c246032cc03ceceb8fcf24fe3802a1f8165de2f (patch) | |
| tree | d71da920ca36770a80b172724db3fc4e9d671d6a /phpBB/includes/captcha/plugins/captcha_abstract.php | |
| parent | 863d7a7614a09dac545d3c3201e67c3beddb3960 (diff) | |
| download | forums-8c246032cc03ceceb8fcf24fe3802a1f8165de2f.tar forums-8c246032cc03ceceb8fcf24fe3802a1f8165de2f.tar.gz forums-8c246032cc03ceceb8fcf24fe3802a1f8165de2f.tar.bz2 forums-8c246032cc03ceceb8fcf24fe3802a1f8165de2f.tar.xz forums-8c246032cc03ceceb8fcf24fe3802a1f8165de2f.zip | |
fix preview in ACP
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9576 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/plugins/captcha_abstract.php')
| -rw-r--r-- | phpBB/includes/captcha/plugins/captcha_abstract.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/includes/captcha/plugins/captcha_abstract.php b/phpBB/includes/captcha/plugins/captcha_abstract.php index 0666a3ca67..9e52762bc2 100644 --- a/phpBB/includes/captcha/plugins/captcha_abstract.php +++ b/phpBB/includes/captcha/plugins/captcha_abstract.php @@ -30,6 +30,7 @@ class phpbb_default_captcha var $seed; var $type; var $solved = false; + var $captcha_vars = false; function init($type) { @@ -106,10 +107,20 @@ class phpbb_default_captcha $template->set_filenames(array( 'captcha_demo' => 'captcha_default_acp_demo.html') ); + + $variables = ''; + + if (is_array($this->captcha_vars)) + { + foreach ($this->captcha_vars as $captcha_var => $template_var) + { + $variables .= '&' . rawurlencode($captcha_var) . '=' . request_var($captcha_var, (int) $config[$captcha_var]); + } + } // acp_captcha has a delivery function; let's use it $template->assign_vars(array( - 'CONFIRM_IMAGE' => append_sid($phpbb_admin_path . 'index.' . $phpEx . '?captcha_demo=1&mode=visual&i=' . $id . '&select_captcha=' . $this->get_class_name()), + 'CONFIRM_IMAGE' => append_sid($phpbb_admin_path . 'index.' . $phpEx . '?captcha_demo=1&mode=visual&i=' . $id . '&select_captcha=' . $this->get_class_name()) . $variables, 'CONFIRM_ID' => $this->confirm_id, )); |
