summaryrefslogtreecommitdiff
path: root/src/views/pages/users/new.html.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-22 23:26:59 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-22 23:26:59 -0400
commitdb3cb85d0992dd49ca2fdf33ea35c0cad60e312f (patch)
treecc93adcf6708dca02e02b4e4acb2aa654d073eca /src/views/pages/users/new.html.php
parentfef0de218e9485ea3db394f3e173b3c64a0463a8 (diff)
Implement ReCaptcha entirely as a plugin, remove all of the ugliness
from my old implementation.
Diffstat (limited to 'src/views/pages/users/new.html.php')
-rw-r--r--src/views/pages/users/new.html.php10
1 files changed, 3 insertions, 7 deletions
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'));