[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
This is a PHP library that handles calling reCAPTCHA. - Documentation and latest version {@link http://code.google.com/apis/recaptcha/docs/php.html} - Get a reCAPTCHA API Key {@link https://www.google.com/recaptcha/admin/create} - Discussion group {@link http://groups.google.com/group/recaptcha} Copyright (c) 2007 reCAPTCHA -- {@link http://www.google.com/recaptcha} AUTHORS: Mike Crawford Ben Maurer
Copyright: | (c) 2007 reCAPTCHA -- {@link http://www.google.com/recaptcha} |
File Size: | 325 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ReCaptchaResponse:: (8 methods):
recaptcha_check_answer()
recaptcha_get_signup_url()
_recaptcha_aes_pad()
_recaptcha_aes_encrypt()
_recaptcha_mailhide_urlbase64()
recaptcha_mailhide_url()
_recaptcha_mailhide_email_parts()
recaptcha_mailhide_html()
Class: ReCaptchaResponse - X-Ref
A ReCaptchaResponse is returned from recaptcha_check_answer()recaptcha_check_answer($privkey, $remoteip, $challenge, $response, $https=false) X-Ref |
Calls an HTTP POST function to verify if the user's guess was correct param: string $privkey param: string $remoteip param: string $challenge param: string $response return: ReCaptchaResponse |
recaptcha_get_signup_url($domain = null, $appname = null) X-Ref |
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. param: string $domain The domain where the page is hosted param: string $appname The name of your application |
_recaptcha_aes_pad($val) X-Ref |
No description |
_recaptcha_aes_encrypt($val,$ky) X-Ref |
No description |
_recaptcha_mailhide_urlbase64($x) X-Ref |
No description |
recaptcha_mailhide_url($pubkey, $privkey, $email) X-Ref |
No description |
_recaptcha_mailhide_email_parts($email) X-Ref |
gets the parts of the email to expose to the user. eg, given johndoe@example,com return ["john", "example.com"]. the email is then displayed as john...@example.com |
recaptcha_mailhide_html($pubkey, $privkey, $email) X-Ref |
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 |
_recaptcha_qsencode($data) X-Ref |
Encodes the given data into a query string format param: $data - array of string elements to be encoded return: string - encoded request |
_recaptcha_http_post($host, $path, $data, $port = 80, $https=false) X-Ref |
Submits an HTTP POST to a reCAPTCHA server param: string $host param: string $path param: array $data param: int port return: array response |
recaptcha_get_html($pubkey, $error = null, $use_ssl = false) X-Ref |
Gets the challenge HTML (javascript and non-javascript version). This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from. param: string $pubkey A public key for reCAPTCHA param: string $error The error given by reCAPTCHA (optional, default is null) param: boolean $use_ssl Should the request be made over ssl? (optional, default is false) return: string - The HTML to be embedded in the user's form. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |