Skip to content

Commit

Permalink
using the constants brought in by the config file cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
SignpostMarv committed May 16, 2012
1 parent 714ccd9 commit 75b509d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions www/sites/account/register.php
Expand Up @@ -300,8 +300,7 @@ function displayDefaultAvatars()
<?
echo "<script type=\"text/javascript\">var RecaptchaOptions = {theme : '".$template_captcha_color."'};</script>"; ?>
<? require_once('recaptchalib.php');
$publickey = "6Lf_MQQAAAAAAIGLMWXfw2LWbJglGnvEdEA8fWqk"; // you got this from the signup page
echo recaptcha_get_html($publickey);
echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY);
?>
</div>
</td>
Expand Down Expand Up @@ -379,8 +378,7 @@ function displayDefaultAvatars()
}

require_once('recaptchalib.php');
$privatekey = "6Lf_MQQAAAAAAB2vCZraiD2lGDKCkWfULvhG4szK";
$resp = recaptcha_check_answer($privatekey,
$resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
Expand Down

0 comments on commit 75b509d

Please sign in to comment.