Site Searcher 2
This is only a screenshot. It does not operate.
[
Go to Search Screen
]
Config Password:
This is the password that must be entered to get to this configuration screen
Retype Password:
Type in the password again to verify the change.
Start Folder:
This is the starting folder on your web site to begin searching
Web Site URL:
This the web site address that corresponds to the folder above. Example: http://www.your-web-site.com
Exclude Folders:
Do not search in these folders
Example: /path/to/private/folder
(Enter one per line)
File Extensions:
html htm shtm shtml php php2 php3 php4 txt text doc js wri bbs
Only search for files with these extensions
(Enter one per line)
Max. Folders:
Maximum number of folders that should be searched into
Max. Files to Display:
Maximum number of files that should be displayed at one time
Max. Chars to Display:
Maximum number of characters that will be displayed for each file description
Min. Search Chars:
Mininum number of characters the user must enter to search for
Max. Search Time:
Maximum number of seconds each search can run for
Max. Bytes:
Maximum number of bytes a file can be, or it will not be searched
Remove HTML Tags?
Yes
No
Should basic HTML tags be removed when searching for files? This may improve search accuracy.
Below will be used to display on the screen during searches
Title:
This is the title that is displayed for your search engine
Search Description:
Display this before any files or folders have been found
Term Description:
Display this when searching in found files for search terms entered
Found Description:
Display this while searching to show how many files and folders have been found
No More:
Display this when there are no more results to be displayed
Max Reached:
Stop searching and display this when the default number of search seconds has been reached
Font Color:
Choose Color
Background Color:
Choose Color
Border Color:
Choose Color
Below is the default style sheet for the searches
This sets the overall colors and feel of the search screens
<style type="text/css"> table.sitesearch { font-family: 12px verdana, arial, sans-serif; color: !FONTCOLOR!; background: !BACKCOLOR!; border: 1px solid !BORDERCOLOR!; } body { font-size: 12px; font-family: verdana, arial, sans-serif; color: #000000; background-color: #ffffff; margin-left: 5%; margin-right: 5%; } h2 { font-family: verdana, arial, sans-serif; } table { font-family: verdana, arial, sans-serif; font-size: 12px; color: #000000; background: #cccccc; } #searchbox { font: verdana, arial, sans-serif; background-color: !BACKCOLOR!; color: !FONTCOLOR!; border: 3px solid black; } </style>
Below is the default screen visitors will see when they go to your search page
<html><body> <title>!TITLE!</title> <center> <h2>!TITLE!</h2> </center> <center> <form name="sitesearch" method=POST action="!SITESEARCHURL!"> <input type=hidden name=area value="search"> <center><table cellpadding=10 class="sitesearch"> <tr><td> <b>Text to Search For:</b> <input type=text name="terms" value="!TERMS!" size=40> <input type=submit value="Search"> <div align="center"> <b>Boolean:</b> <input type=radio name="boolean" value="AND" CHECKED> AND <input type=radio name="boolean" value="OR"> OR <b>Case</b> <input type=radio name="case" value="insensitive" CHECKED> Insensitive <input type=radio name="case" value="sensitive"> Sensitive </div> </td></tr></table></form> <br /> Powered by <a href="http://www.cgiconnection.com">CGI Connection</a> </center> <script> document.sitesearch.terms.focus(); </script> </body></html>
Copy and Paste the below code to your web pages to link directly to Site Searcher 2
<a href="http://www.cgiconnection.com/cgi-bin/cgi-con/sitesearch2.cgi?area=start">Search Web Site</a>
Below is the searchbox that will be displayed when using the JavaScript version
<style type="text/css"> table.sitesearch { font-size: 12px; color: !FONTCOLOR!; background: !BACKCOLOR!; border: 1px solid !BORDERCOLOR!; font-family: verdana, arial, sans-serif; } </style> <form name"sitesearch" method=POST action="!SITESEARCHURL!" target=_blank> <input type=hidden name=area value="search"> <table cellpadding=10 class="sitesearch"> <tr><td> <b>Text to Search For:</b> <input type=text name="terms" value="" size=40> <input type=submit value="Search"> <div align="center"> <b>Boolean:</b> <input type=radio name="boolean" value="AND" CHECKED> AND <input type=radio name="boolean" value="OR"> OR <b>Case</b> <input type=radio name="case" value="insensitive" CHECKED> Insensitive <input type=radio name="case" value="sensitive"> Sensitive </div> </td></tr> </table> </form>
Copy and Paste the below JavaScript code to display the search box on your web page instead of linking to it
<script src="http://www.cgiconnection.com/cgi-bin/cgi-con/sitesearch2.cgi?area=script"></script>
Below is how the results of each search will be displayed
<!--TOP--> <html> <title>!TITLE!</title> <body> <center> <h2>!TITLE!</h2> <hr size=2 width=75%> <form method=POST action="!SITESEARCHURL!"> <input type=hidden name=area value="search"> <center><table cellpadding=10 class="sitesearch"> <tr><td> <b>Text to Search For:</b> <input type=text name="terms" value="!TERMS!" size=40> <input type=submit value="Search"> <div align="center"> <b>Boolean:</b> <input type=radio name="boolean" value="AND"!ANDCHECKED!> AND <input type=radio name="boolean" value="OR"!ORCHECKED!> OR ���� <b>Case</b> <input type=radio name="case" value="insensitive"!INSCHECKED!> Insensitive <input type=radio name="case" value="sensitive"!SENSCHECKED!> Sensitive </div> </td></tr></table></form> <hr size=2 width=75%> </center> <br /><br /> </center> <!--/TOP--> <!--MIDDLE--> [<b>!DOCNUM!</b>] <a href="!SITESEARCHURL!?area=get&filename=!FILENAMEENCODED!" target=_blank>!DOCTITLE!</a> <br /> !DESCRIPTION! <br /> <font color="green">!FILENAME! - !SIZE!</font> <br /><br /> <!--/MIDDLE--> <!--BOTTOM--> <hr size=2 width=75%> <center> <a href="javascript:history.back(-1);">Previous</a> �� <a href="!SITESEARCHURL!?area=next&terms=!TERMSENCODED!&boolean=!BOOLEAN!&case=!CASE!&count=!COUNT!&filename=!FILENAME!">Next</a> <br /><br /> <form method=POST action="!SITESEARCHURL!"> <input type=hidden name=area value="search"> <center><table cellpadding=10 class="sitesearch"> <tr><td> <b>Text to Search For:</b> <input type=text name="terms" value="!TERMS!" size=40> <input type=submit value="Search"> <div align="center"> <b>Boolean:</b> <input type=radio name="boolean" value="AND"!ANDCHECKED!> AND <input type=radio name="boolean" value="OR"!ORCHECKED!> OR ���� <b>Case</b> <input type=radio name="case" value="insensitive"!INSCHECKED!> Insensitive <input type=radio name="case" value="sensitive"!SENSCHECKED!> Sensitive </div> </td></tr></table></form></center> <hr size=2 width=75%> </body> </html> <!--/BOTTOM-->