You are here

function recaptcha_get_signup_url in reCAPTCHA 6

Same name and namespace in other branches
  1. 8 recaptcha-php-1.11/recaptchalib.php \recaptcha_get_signup_url()
  2. 5.2 recaptcha/recaptchalib.php \recaptcha_get_signup_url()
  3. 7 recaptcha-php-1.11/recaptchalib.php \recaptcha_get_signup_url()

gets a URL where the user can sign up for reCAPTCHA. If your application has a configuration page where you enter a key, you should provide a link using this function.

Parameters

string $domain The domain where the page is hosted:

string $appname The name of your application:

1 call to recaptcha_get_signup_url()
recaptcha_admin_settings in ./recaptcha.admin.inc
Form callback; administrative settings for reCaptcha.

File

recaptcha-php-1.11/recaptchalib.php, line 202

Code

function recaptcha_get_signup_url($domain = null, $appname = null) {
  return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode(array(
    'domains' => $domain,
    'app' => $appname,
  ));
}