From db3cb85d0992dd49ca2fdf33ea35c0cad60e312f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 22 Sep 2011 23:26:59 -0400 Subject: Implement ReCaptcha entirely as a plugin, remove all of the ugliness from my old implementation. --- src/views/pages/users/new.html.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/views/pages/users/new.html.php') diff --git a/src/views/pages/users/new.html.php b/src/views/pages/users/new.html.php index 326f0bc..147e3c0 100644 --- a/src/views/pages/users/new.html.php +++ b/src/views/pages/users/new.html.php @@ -30,13 +30,9 @@ if (in_array('no pw', $VARS['errors'])) { $t->inputNewPassword('auth_password','Password', $password); $t->closeFieldset(); -global $mm; $db = $mm->database(); -$public_key = $db->getPluginConf('ReCaptcha', 'public_key'); -$recaptcha_error = null; -if (isset($VARS['recaptcha_error'])) - $recaptcha_error = $VARS['recaptcha_error']; -require_once('recaptchalib.php'); -echo recaptcha_get_html($public_key, $recaptcha_error); +foreach ($VARS['antispam_html'] as $html) { + echo $html; +} $t->tag('input', array('type'=>'submit', 'value'=>'Submit')); -- cgit v1.2.3-54-g00ecf