VERBOTEN.PHP Forbidden Words Module for Phorm The purpose of this module is to allow the user to forbid certain words in form input. INSTALLATION To install this module, place the file verboten.php in your plugins directory and add the following line to the registry file registry.php: < valid verboten.php NOTE: This plugin requires PHP4 USE When installed, the Verboten plugin creates a new $PHORM_ variable and a new validation criterion. The variable is $PHORM_BADWORD, which should contain a comma-separated list of the words you wish to forbid. The check is not case sensitive. Be sure to include all forms of the words you wish to exclude; for example if you wished to disallow discussion of cars you would include "car" and "cars". Example: $PHORM_BADWORD = "spider, spiders, spiderweb, car, cars, carwash"; The validation criterion is BADWORD, and you simply apply it to the fields you wish to check: BADWORD»Comments»1 When examining visitor input, the Verboten module considers a word to be any group of letters separated by one or more non-letters. That's all there is to it! =========================== Copyright (c) 2002 Holotech Enterprises (phorm@holotech.net) You may freely distribute this program as-is, without modifications, as part of a valid Phorm distribution. If you are not sure whether you have a valid distribution, you can obtain one from http://www.phorm.com/. You may use this program freely, and modify it for your own purposes.