summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-22 18:20:47 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-22 18:20:47 -0400
commitfef0de218e9485ea3db394f3e173b3c64a0463a8 (patch)
tree935f5a3e32e03d0f964608afb6d0cb67f335063f /src/views
parent485cc0fad823d50ed07df15f629ff824d2332ece (diff)
Add an ugly hacky-hacked reCaptcha to new user registration.
Diffstat (limited to 'src/views')
-rw-r--r--src/views/pages/users/new.html.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/pages/users/new.html.php b/src/views/pages/users/new.html.php
index d9a6c75..326f0bc 100644
--- a/src/views/pages/users/new.html.php
+++ b/src/views/pages/users/new.html.php
@@ -30,6 +30,14 @@ 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);
+
$t->tag('input', array('type'=>'submit', 'value'=>'Submit'));
$t->closeTag('form');