You are here

function recaptcha_mailhide_html in reCAPTCHA 7

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

Gets html to display an email address given a public an private key. to get a key, go to:

http://www.google.com/recaptcha/mailhide/apikey

1 call to recaptcha_mailhide_html()
_recaptcha_replace in recaptcha_mailhide/recaptcha_mailhide.module
Private reCAPTCHA function to replace an email regex match.

File

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

Code

function recaptcha_mailhide_html($pubkey, $privkey, $email) {
  $emailparts = _recaptcha_mailhide_email_parts($email);
  $url = recaptcha_mailhide_url($pubkey, $privkey, $email);
  return htmlentities($emailparts[0]) . "<a href='" . htmlentities($url) . "' onclick=\"window.open('" . htmlentities($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities($emailparts[1]);
}