CJ Website Search V2.0(MySQl Version) - James Crooke © 2002 - webmaster@cj-design.com CJ Web Design http://www.cj-design.com =============================== =============================================================== ==== TO HELP CJ-DESIGN PRODUCE MORE GREAT, FREE SCRIPTS SEE BOTTOM ==== Whats New about this script: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is Version 2.0 unoffical. Whats new is a few items.: adjusted code to work for those who have register_globals set to off, also a huge security fix in doing this. gave the option of letting users have their visitors submit their website(can be turned off). if you wish to see other items check out the version of this made by PHPDUMMY: http://www.cj-design.com/forum/viewtopic.php?t=1820 or post a topic on the forum to let us know. Note about this script: ~~~~~~~~~~~~~~~~~~~~~~~ This script is just like the flatefile version, the only real difference is the database type and a few enhancements. This version and any other version that james, his moderators/admins make are suppoerted if you get stuck. This was created for those who wanted a mysql version and also those who wanted some new features. Installation Help ~~~~~~~~~~ 1. Edit the "config.php" file (only edit the following!) $DB_HOST = "localhost"; //if it isn't localhost, ask your provider. $DB_NAME = "dbname"; //name of database $DB_USER = "root"; //username of database $DB_PASS = ""; //password of database //search info $url = "http://mysite.com"; //enter the address of your website $website = "My Website"; //the name of your website //Logging search feature $log_searches = true; //set to true to allow logging, set to false if you do not want it. //User-Submit option: this will allow users to submit their website to be placed on your search engine. $user_submit = false; //set to true to allow users to add to the searchlist or false to disable this. $adding_level = "private"; //set to 'private' to have admin verify before listing is allowed in search results. //set to 'public' to allow the listing to get automatically added, HUGE SPAM RISK IF SET TO PUBLIC. $admin_email = "admin@email.com"; //your email to get notified about user listings. //Default value per page - set the default amount to as high you like, but keep it between 10-25 for a decent loading time $limit = "10"; In this release I have added the feature of allowing your visitors to add their link to your searchlist. now it is optional and I have allowed you to set wheather you review the listing or it get added automatically. EXTREAM CAUTION: Setting the level to public is a MAJOR spam risk, it is recommended AND is default that it is set to private to allow you to review all listings first. You will get an email to review the link and then accept or deny the listing. 2. Upload all the required files as you downloaded them into a directory (ideally called search) CHMOD the folder to 777. If you dont CHMOD it the setup file will NOT delete itself after being used, then you will have to remove the setup file yourself and make sure you do it to prevent an overwrite. Make sure that the images are all uploaded in the folder "/gfx" 3. run setup.php, it will install the needed tables and will also delete the file after its done(if you chmoded the folder to 777) 3. include searchcode.php into your php page, to do that you have to: this is the only way to make it work, I might work on a different way later. 4. edit the search.php header & footer to match the look of your site. if you need help with that, post on the support forum. 5. add some listings by going in the admin panel. Thats All! ~~~~~~ Thank you for downloading this script, I hope you like it - feedback would be appreciated (nothing to harsh please) at the CJ Forums! - http://www.cj-design.com/forum/ ********************************************************************************* * Please, Please, Please help keep Cj-Design.com alive by visiting our Donate page (if you havent already) * * It is COMPLETELY FREE to support us, all you need to do is sign up to Ebay for FREE! * * @ http://www.cj-design.com/?id=donate * * * ********************************************************************************* All other donations are welcome of course. James - CJ Web Designer ==========================================================================