Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2007-06-17 (9 years ago) ![]() | ![]() ![]() ![]() ![]() | 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 | ||
![]() |
/ | checkspam |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
Class | The main source of class |
![]() |
/ | checkspam | / | font |
File | Role | Description |
---|---|---|
![]() |
Data | PNG font image |
![]() |
Data | PNG font image |
![]() |
Data | PNG font image |
![]() |
/ | checkspam | / | images |
File | Role | Description |
---|---|---|
![]() |
Data | Temporary security images |
![]() |
/ | samples |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
![]() |
/ | samples | / | 1_SIMPLE_TEXT_VERIFICATION |
File | Role | Description |
---|---|---|
![]() |
Example | Simple text verification |
![]() |
Example | Validate |
![]() |
/ | samples | / | 2_GRAPHIC_VERIFICATION |
File | Role | Description |
---|---|---|
![]() |
Example | Graphic verification |
![]() |
Example | Validate |
![]() |
/ | samples | / | 3_CUSTOM_TEXT_VERIFICATION |
File | Role | Description |
---|---|---|
![]() |
Example | Custom text verification |
![]() |
Example | Validate |
![]() |
/ | samples | / | 4_GRAPHIC_VERIFICATION_WITH_CUSTOM_INPUT |
File | Role | Description |
---|---|---|
![]() |
Example | Graphic verification with custom input form |
![]() |
Example | Validate |
![]() |
/ | samples | / | 5_MULTIPLE_CODE_VERIFICATIONS |
File | Role | Description |
---|---|---|
![]() |
Example | Multiple code verifications |
![]() |
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 )... |