IPBWI
[ class tree: IPBWI ] [ index: IPBWI ] [ all elements ]

Procedural File: recaptchalib.inc.php

Source Location: /ipbwi/lib/third_party/recaptchalib.inc.php



Classes:

ReCaptchaResponse
A ReCaptchaResponse is returned from recaptcha_check_answer()


Page Details:



Tags:

filesource:  Source Code for this file







RECAPTCHA_API_SECURE_SERVER [line 39]

RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api"

[ Top ]



RECAPTCHA_API_SERVER [line 38]

RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api"
The reCAPTCHA server URL's


[ Top ]



RECAPTCHA_VERIFY_SERVER [line 40]

RECAPTCHA_VERIFY_SERVER = "www.google.com"

[ Top ]




recaptcha_check_answer [line 152]

ReCaptchaResponse recaptcha_check_answer( string $privkey, string $remoteip, string $challenge, string $response, [array $extra_params = array()])

Calls an HTTP POST function to verify if the user's guess was correct



Parameters

string   $privkey  
string   $remoteip  
string   $challenge  
string   $response  
array   $extra_params   an array of extra variables to post to the server
[ Top ]



recaptcha_get_html [line 106]

string recaptcha_get_html( string $pubkey, [string $error = null], [boolean $use_ssl = false])

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.




Tags:

return:  - The HTML to be embedded in the user's form.


Parameters

string   $pubkey   A public key for reCAPTCHA
string   $error   The error given by reCAPTCHA (optional, default is null)
boolean   $use_ssl   Should the request be made over ssl? (optional, default is false)
[ Top ]



recaptcha_get_signup_url [line 202]

void recaptcha_get_signup_url( [string $domain = null], [string $appname = null])

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
[ Top ]



recaptcha_mailhide_html [line 267]

void recaptcha_mailhide_html( $pubkey, $privkey, $email)

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




Parameters

   $pubkey  
   $privkey  
   $email  
[ Top ]



recaptcha_mailhide_url [line 230]

void recaptcha_mailhide_url( $pubkey, $privkey, $email)



Parameters

   $pubkey  
   $privkey  
   $email  
[ Top ]



_recaptcha_aes_encrypt [line 214]

void _recaptcha_aes_encrypt( $val, $ky)



Parameters

   $val  
   $ky  
[ Top ]



_recaptcha_aes_pad [line 206]

void _recaptcha_aes_pad( $val)



Parameters

   $val  
[ Top ]



_recaptcha_http_post [line 67]

array _recaptcha_http_post( string $host, string $path, array $data, [int $port = 80])

Submits an HTTP POST to a reCAPTCHA server



Tags:

return:  response


Parameters

string   $host  
string   $path  
array   $data  
int   $port   port
[ Top ]



_recaptcha_mailhide_email_parts [line 248]

void _recaptcha_mailhide_email_parts( $email)

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




Parameters

   $email  
[ Top ]



_recaptcha_mailhide_urlbase64 [line 225]

void _recaptcha_mailhide_urlbase64( $x)



Parameters

   $x  
[ Top ]



_recaptcha_qsencode [line 47]

string _recaptcha_qsencode( $data $data)

Encodes the given data into a query string format



Tags:

return:  - encoded request


Parameters

$data   $data   - array of string elements to be encoded
[ Top ]



Documentation generated on Sat, 23 Oct 2010 23:36:09 +0200 by phpDocumentor 1.4.3