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. | |
Protected Member Functions | |
| getPictchaData () | |
| Load Pictcha data from the pictcha.xml file into the object's $pictchaArray var. | |
| getRandomizedPictcha () | |
| INSERT BRIEF DESCRIPTION HERE. | |
| getRandomSeriesPictcha ($series) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| getValidImage ($series, $image) | |
| INSERT BRIEF DESCRIPTION HERE. | |
| setPictchaData ($data) | |
| INSERT BRIEF DESCRIPTION HERE. | |
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.
Definition at line 19 of file Pictcha.php5.
| Pictcha::getJavascript | ( | ) |
Get the Javascript that must be embedded in the page for the Pictchas to work.
INSERT FULL DESCRIPTION HERE
Definition at line 345 of file Pictcha.php5.
| Pictcha::getMaxPictcha | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 190 of file Pictcha.php5.
Referenced by getRandomizedPictcha().
| Pictcha::getPictcha | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 41 of file Pictcha.php5.
References getPictchaData(), and getRandomizedPictcha().
| Pictcha::getPictchaData | ( | ) | [protected] |
Load Pictcha data from the pictcha.xml file into the object's $pictchaArray var.
For internal use only.
Read the pictcha.xml file in this directory to get all the possible images and their "series" or the objects they represent. Store that data in the object's $pictchaArray var.
Definition at line 59 of file Pictcha.php5.
Referenced by getPictcha(), getPictchaImage(), and getValidImage().
| Pictcha::getPictchaImage | ( | $ | image | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $image | [TYPE]: DESCRIPTION |
Definition at line 235 of file Pictcha.php5.
References getPictchaData().
| Pictcha::getPictchaValue | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Definition at line 404 of file Pictcha.php5.
| Pictcha::getRandomizedPictcha | ( | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
Definition at line 97 of file Pictcha.php5.
References getMaxPictcha(), getRandomSeriesPictcha(), and setPictchaData().
Referenced by getPictcha().
| Pictcha::getRandomSeriesPictcha | ( | $ | series | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $series | [TYPE]: DESCRIPTION |
Definition at line 218 of file Pictcha.php5.
Referenced by getRandomizedPictcha().
| Pictcha::getValidImage | ( | $ | series, | |
| $ | image | |||
| ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $series | [TYPE]: DESCRIPTION | |
| $image | [TYPE]: DESCRIPTION |
Definition at line 284 of file Pictcha.php5.
References getPictchaData().
Referenced by getValidPictcha().
| Pictcha::getValidPictcha | ( | $ | seriesA, | |
| $ | hashA, | |||
| $ | seriesB, | |||
| $ | hashB | |||
| ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $seriesA | [TYPE]: DESCRIPTION | |
| $hashA | [TYPE]: DESCRIPTION | |
| $seriesB | [TYPE]: DESCRIPTION | |
| $hashB | [TYPE]: DESCRIPTION |
Definition at line 333 of file Pictcha.php5.
References getValidImage().
| Pictcha::setMaxPictcha | ( | $ | picIn | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $picIn | [TYPE]: DESCRIPTION |
Definition at line 206 of file Pictcha.php5.
| Pictcha::setPictchaData | ( | $ | data | ) | [protected] |
INSERT BRIEF DESCRIPTION HERE.
For internal use only.
INSERT FULL DESCRIPTION HERE
| $data | [TYPE]: DESCRIPTION |
Definition at line 393 of file Pictcha.php5.
Referenced by getRandomizedPictcha().
1.5.6