Pictcha Class Reference

Provide the Pictcha validation system (Shodor's version of Captchas). More...

List of all members.

Public Member Functions

 __construct ()
 Construct a new Pictcha.
 getJavascript ()
 Get the Javascript that must be embedded in the page for the Pictchas to work.
 getMaxPictcha ()
 INSERT BRIEF DESCRIPTION HERE.
 getPictcha ()
 INSERT BRIEF DESCRIPTION HERE.
 getPictchaImage ($image)
 INSERT BRIEF DESCRIPTION HERE.
 getPictchaValue ()
 INSERT BRIEF DESCRIPTION HERE.
 getValidPictcha ($seriesA, $hashA, $seriesB, $hashB)
 INSERT BRIEF DESCRIPTION HERE.
 setMaxPictcha ($picIn)
 INSERT BRIEF DESCRIPTION HERE.


Detailed Description

Provide the Pictcha validation system (Shodor's version of Captchas).

Display and authenticate Pictchas (on XForms) to block automated form submissions. The Pictcha system presents a grid of pictures and tells the user to click on two types of objects, i.e., the dog and the chair. When they submit the form, the Pictcha module submits hash strings based on the images they clicked. Since the image of each object (and hash) is chosen at random from a large collection, there is no simple way for an automated agent to figure out what hashes to submit to validate the form submission. This would not work on a heavily trafficked project where a malicious user could initially identify all of the images for each object and then let an automated agent use that information.

Author:
Monte Evans <monte@shodor.org> (2006)

Member Function Documentation

Pictcha::getJavascript (  ) 

Get the Javascript that must be embedded in the page for the Pictchas to work.

INSERT FULL DESCRIPTION HERE

Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::getMaxPictcha (  ) 

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::getPictcha (  ) 

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::getPictchaImage ( image  ) 

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Parameters:
$image [TYPE]: DESCRIPTION
Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::getPictchaValue (  ) 

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::getValidPictcha ( seriesA,
hashA,
seriesB,
hashB 
)

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Parameters:
$seriesA [TYPE]: DESCRIPTION
$hashA [TYPE]: DESCRIPTION
$seriesB [TYPE]: DESCRIPTION
$hashB [TYPE]: DESCRIPTION
Returns:
[TYPE]: RETURN DESCRIPTION

Pictcha::setMaxPictcha ( picIn  ) 

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Parameters:
$picIn [TYPE]: DESCRIPTION
Returns:
[TYPE]: RETURN DESCRIPTION


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:02:29 2010 for Common by  doxygen 1.5.6