gino CMS  2.5.0
gino รจ un CMS scritto in PHP che offre tutti gli strumenti necessari per poter creare un sito web e gestire i contenuti al suo interno in maniera semplice ed efficace, svincolando l'amministratore da conoscenze tecniche di programmazione
recaptchalib.php File Reference

Contiene la libreria che gestisce la chiamata del reCaptcha. More...

Data Structures

class  ReCaptchaResponse
 A ReCaptchaResponse is returned from recaptcha_check_answer() More...
 

Functions

 _recaptcha_qsencode ($data)
 Encodes the given data into a query string format. More...
 
 _recaptcha_http_post ($host, $path, $data, $port=80)
 Submits an HTTP POST to a reCAPTCHA server. More...
 
 recaptcha_get_html ($pubkey, $error=null, $use_ssl=false)
 Gets the challenge HTML (javascript and non-javascript version). More...
 
 recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params=array())
 Calls an HTTP POST function to verify if the user's guess was correct. More...
 
 recaptcha_get_signup_url ($domain=null, $appname=null)
 gets a URL where the user can sign up for reCAPTCHA. More...
 
 _recaptcha_aes_pad ($val)
 
 _recaptcha_aes_encrypt ($val, $ky)
 
 _recaptcha_mailhide_urlbase64 ($x)
 
 recaptcha_mailhide_url ($pubkey, $privkey, $email)
 
 _recaptcha_mailhide_email_parts ($email)
 gets the parts of the email to expose to the user. More...
 
 recaptcha_mailhide_html ($pubkey, $privkey, $email)
 Gets html to display an email address given a public an private key. More...
 

Variables

const RECAPTCHA_API_SERVER "http://www.google.com/recaptcha/api"
 The reCAPTCHA server URL's. More...
 
const RECAPTCHA_API_SECURE_SERVER "https://www.google.com/recaptcha/api"
 
const RECAPTCHA_VERIFY_SERVER "www.google.com"
 

Detailed Description

Contiene la libreria che gestisce la chiamata del reCaptcha.

Function Documentation

_recaptcha_aes_encrypt (   $val,
  $ky 
)
_recaptcha_aes_pad (   $val)
_recaptcha_http_post (   $host,
  $path,
  $data,
  $port = 80 
)

Submits an HTTP POST to a reCAPTCHA server.

Parameters
string$host
string$path
array$data
intport
Returns
array response
_recaptcha_mailhide_email_parts (   $email)

gets the parts of the email to expose to the user.

eg, given johndoe(at)example,com return ["john", "example.com"]. the email is then displayed as john...(at)example.com

_recaptcha_mailhide_urlbase64 (   $x)
_recaptcha_qsencode (   $data)

Encodes the given data into a query string format.

Parameters
$data- array of string elements to be encoded
Returns
string - encoded request
recaptcha_check_answer (   $privkey,
  $remoteip,
  $challenge,
  $response,
  $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_paramsan array of extra variables to post to the server
Returns
ReCaptchaResponse
recaptcha_get_html (   $pubkey,
  $error = null,
  $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.

Parameters
string$pubkeyA public key for reCAPTCHA
string$errorThe error given by reCAPTCHA (optional, default is null)
boolean$use_sslShould the request be made over ssl? (optional, default is false)
Returns
string - The HTML to be embedded in the user's form.
recaptcha_get_signup_url (   $domain = null,
  $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$domainThe domain where the page is hosted
string$appnameThe name of your application
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

recaptcha_mailhide_url (   $pubkey,
  $privkey,
  $email 
)

Variable Documentation

const RECAPTCHA_API_SECURE_SERVER "https://www.google.com/recaptcha/api"
const RECAPTCHA_API_SERVER "http://www.google.com/recaptcha/api"

The reCAPTCHA server URL's.

const RECAPTCHA_VERIFY_SERVER "www.google.com"