Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (20) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-06-17 (9 years ago) | 70% | Total: 4,053 | All time: 737 This week: 1,109 |
Version | License | PHP version | Categories | |||
checkspam 1.6 | GNU General Publi... | 5.0 | HTML, PHP 5, Graphics, Validation |
Description | Author | |||||||||||||
This package can be used to generate and validate CAPTCHA validation images. |
|
NAME CheckSpam - a simple Class that helps you to prevent the spam attack to your website. It provide to generate two types of verification: 1 - Text (Customizable style in CSS like); 2 - Graphic (Using the GD 2.x PHP Library). SYNOPSIS # THE FORM: <?php define('CHECKSPAM_DIR','../../checkspam/'); require_once(CHECKSPAM_DIR.'checkspam.class.php'); $cs = new checkspam; $cs->init_session(); $cs->exec_checkspam(0); // Text mode verification ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>checkspam - First example</title> </head> <body> <h1>SIMPLE TEXT VERIFICATION:</h1> <form method="post" action="register.php"> <table width="60%" border="1"> <tr> <td width="30%">Name:</td> <td width="70%"><input type="text" name="txt_name" /></td> </tr> <tr> <td>Security code: <?php $cs->print_imagetext(); ?></td> <td><?php $cs->print_input(); ?></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="send data" /></td> </tr> </table> </form> <body> </html> # THE VERIFICATION: <?php define('CHECKSPAM_DIR','../../checkSpam/'); require_once(CHECKSPAM_DIR.'checkspam.class.php'); $cs = new checkspam; $cs->init_session(); if($cs->verify($_POST['secretcode'])){ echo "Valid code specified !"; }else{ echo "NO valid code specified !"; } ?> DESCRIPTION GETTING STARTED IMPORTANT # About the Graphic Mode # If the Graphic mode is enable, the "checkspam/images/ directory must be writable by everyone ( chmod 777 ) # How to use other fonts # A new font image can be uploaded into the font's directory "checkspam/font"; IMPORTANT NOTE: The new font PNG image must have the same color and character position of the other font image already present into the directory. COPYRIGHT Copyright(c) 2006 joseph@masterdrive.it. All rights reserved. This software is released under the GNU General Public License. http://www.gnu.org |
Screenshots | ||
Files | / | checkspam |
File | Role | Description | ||
---|---|---|---|---|
font (3 files) | ||||
images (1 file) | ||||
checkspam.class.php | Class | The main source of class |
Files | / | checkspam | / | font |
File | Role | Description |
---|---|---|
checkspam-font-1.png | Data | PNG font image |
checkspam-font-2.png | Data | PNG font image |
checkspam-font-3.png | Data | PNG font image |
Files | / | checkspam | / | images |
File | Role | Description |
---|---|---|
checkSpam5493f0e69...c52e01179502984.png | Data | Temporary security images |
Files | / | samples |
File | Role | Description | ||
---|---|---|---|---|
1_SIMPLE_TEXT_VERIFICATION (2 files) | ||||
2_GRAPHIC_VERIFICATION (2 files) | ||||
3_CUSTOM_TEXT_VERIFICATION (2 files) | ||||
4_GRAPHIC_VERIFICATION_WITH_CUSTOM_INPUT (2 files) | ||||
5_MULTIPLE_CODE_VERIFICATIONS (2 files) |
Files | / | samples | / | 1_SIMPLE_TEXT_VERIFICATION |
File | Role | Description |
---|---|---|
form.php | Example | Simple text verification |
register.php | Example | Validate |
Files | / | samples | / | 2_GRAPHIC_VERIFICATION |
File | Role | Description |
---|---|---|
form.php | Example | Graphic verification |
register.php | Example | Validate |
Files | / | samples | / | 3_CUSTOM_TEXT_VERIFICATION |
File | Role | Description |
---|---|---|
form.php | Example | Custom text verification |
register.php | Example | Validate |
Files | / | samples | / | 4_GRAPHIC_VERIFICATION_WITH_CUSTOM_INPUT |
File | Role | Description |
---|---|---|
form.php | Example | Graphic verification with custom input form |
register.php | Example | Validate |
Files | / | samples | / | 5_MULTIPLE_CODE_VERIFICATIONS |
File | Role | Description |
---|---|---|
form.php | Example | Multiple code verifications |
register.php | Example | Validate |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Pages that reference this package |
PHP 5: Nozioni di sicurezza Un ringraziamento particolare per la stesura di questo articolo va a Matteo ( Bottomap )... |