phod.php3) This software comes as is, with no warranties specified or implied. USE AT YOUR OWN RISK! (read: if it works, cheers. if it doesn't, don't look at me.) Security issues - All tags (PHP and HTML) are stripped from search input. Validation - only one point here. depending on what version of PHP you are using, it may add slashes to user input automatically. you will have to strip \ not strip these accordingly. Action - parse requesting url send request to dmoz make changes to page format print results with header & footer Requirements - This works with Apache and PHP 3.0.14. It didn't work on a win98/onmiHTTPd/php 3.0.14 box. It didn't work with Apache and 3.0.12. I guarantee it will not work for 3.0.6 or below. (strip_tags() is really buggy - I've had this work on some machines and fail on others. ?) Notes - As I am not a real programmer, I don't know if this is a resource hog or not. If anyone has any tips or suggestions, let me know. I'd be really happy if you sent me streamlined / more robust version of this script. Wishlist - Maxcomm? Logging of searches (not really necessary as they should be in your server logs) The ability to drop the ? from the url (apparently apache should have no problems, but I tried it and no luck) When it's in original search mode, I defaulted the search box back to the new search. It'd be nice if it could stay in original search mode. */ //******************************************************************************// //CONFIGURATION VARIABLES! YOU CAN CHANGE THESE FREELY! $phod_title = "Gomang Open Directory"; //what will you name your PHOD? $phod_header = "head.html"; //this is the relative file path to a header file e.g. "header.html". //control colors, fonts, etc, using this file and css. //HEADER FILE MUST CONTAIN AT LEAST:
| , |