Main Menu
Home
FAQ
Download
License
Readme
Install
back
This menu is a
simple php include.
It is supremely
editable. Do with
it as you like
on your site.
Readme.txt
back
Block Auto Submit A php script for blocking spammers. Version 1.0 ********************************************* Introduction: ********************************************* This suite of scripts has been adapted from the following link. http://www.cocoavillagepublishing.com/development/tools/php/scripts/ v0.2 LICENSE NOTE, This software is dual licensed using BSD-Style and LGPL. Where there is any discrepancy, the BSD-Style license will take precedence. Review the relative file ./license.txt for details. The intention is that these works are available for all and may be profited from but not restricted in use. It uses a randomly generated graphic image with true-type fonts to stymie auto-submission scripts created by spammers who attempt to take over your sendmail or qmail capabilities on your site. The most up-to-date adapted version is available here: http://www.activistinabox.org/blockautosubmit/ I make no claims of usefulness. Use this script at your own risk. However, if you do find it useful, drop me an email at this address: http://www.activistinabox.org/contact/ Tell me where I can get a copy of your script if you've made significant advances in what the script can do! Cheers, Chris Sparnicht activistinabox.org Changes made from the original script: Changes in May 2009 Fixed a bug /contact/index.php so that it actually works correctly out of the box. Changes in January 2009 Image generation now works correctly in php5. Cosmetic changes to the admin interface. Removal of the overlib library. Changes in August 2006 This faq may help you troubleshoot installation: http://www.activistinabox.org/contact/faq.php 1. There is a tighter look and feel. CSS is slighly improved. There are headers and footers that can be changed to suit your needs. If you don't like them, at least it gives you some ideas about how to set up your site efficiently so that pages can change globally just by changing CSS, headers and footers. It's transitional html, so don't expect miracles. Get a good start for yourself is http://www.alistapart.com 2. A new color scheme as been added to the image generator called 'sea.' It's generally in the teal range. There, I said it: 'sea' and 'teal'... too many late nights. 3. There is a mySQL interface now for coordinating multiple contacts on your website. It keeps track of creation and modification date. If you prefer not to use the interface, you can edit the config.php file not to use it pretty easily, but then you are limited to one contact. 4. There is an administrative Graphic User Interface (GUI) that will let you create, delete, edit and preview your contacts from the web. You can copy the contact link in the preview page to other parts of your site in whatever software you are using. 5. Consquently, the administrative area will need .htaccess security. The admin subfolder must be password protected. Here's a very dry tutorial: http://httpd.apache.org/docs/1.3/howto/htaccess.html There are lots of ways to acheive security but in the end, it's all up to you. http://www.google.com/search?hl=en&lr=&q=.htaccess+.htpasswd+tutorial Google '.htaccess .htpasswd tutorial' You are in charge of this. If you don't know how to do it, don't run this suite. 6. Instead of confusing red arrows and boxes, there is now a clean 'help!' button for the totally clueless that explains in a popup frame exactly what to do and why. Then it disappears completely out of the way off the screen without wasting the time to bring up a new page. Thanks to Marshall for that idea. The popup uses overlib - see the link above. 7. I've removed several of the more confusing fonts. Apparently even humans had trouble passing that Turing Test. 8. /contacts/admin/ folder holds only items that are pertinent to the administrative area. 9. /contacts/assets folder holds things like includes, css, sql, overlib 10. /contacts/images folder holds all images used in the public part of the suite. Changes in 2005 a . Scripting has been changed to Dreamweaver-style coding. b. The config.php file has these changes: 1. BAS_companyname to be used in page titles, Thanks page, Email Subject and X-Mailer header entry 2. BAS_colorscheme Choose a color scheme - green, sea, blue, red, purple, brown or b/w. 3. BAS_chars Choose 'numbers, lower, upper' to reduce character set appropriately. 4. Test mode now does two things: i. Shows the characters and fonts used diagnostically like the original script. ii. Sends a diagnostic email with lots of info (from original script.) When not in test mode, image shows normally and script sends a normal email. c. Regarding the generateimage.php file: 1. The image size and fonts have been reduced by 50% height and width. It doesn't take up as much room, so it's not as obnoxious to viewers. 2. There color-choosing schema is set to reflect colors from the config file. d. Regarding the index.php file: 1. A javascript validity test for name, email and text area has been added so that if people forget these, it's taken care of on the client side, rather than the server side. 2. After the first attempt, if no code is put in the field, a red indicator arrow points our the field. If the code isn't valid, it suggests trying again. 3. After the second attempt, arrows point to the image, and a red border surrounds the image, just in case it wasn't obvious enough. e. The thanks.php page has been scripted to include the name of the form-filler in a thank-you phrase, along with your company name. f. 'blockauto.css' stylesheet has been introduced. You can use your own instead if you like.
Contact form ©
Greenman Design
. Download
here
.