Main Page   File List   File Members  

search.conf

Go to the documentation of this file.
00001 <?PHP
00002 /*********** Configuration Sections *********/
00003 /********* Mandatory Configuration ********/
00004 
00005 /*** Setup the path to your SWISH-E executable ***/
00006 $strSearchEngine = "/usr/local/bin/swish-e";
00007 
00008 /*** Setup SWISH-E Indices ***/
00009 $arySearchSiteIndices = array(
00010         //  Escape special characters "' and use _ instead of whitespace
00011         "Test_Index"  => "/home/kg9ae/public_html/search/swish/linux.swish"
00012                 // Only use one index file per array item for the meantime.  
00013                 // Hope to add multiple index searches, soon.
00014 );
00015 
00016 /*** Toggle reading of each file's from the file system, may impact speed.
00017 **** 0 = OFF, 1 = ON  Toggles some Meta and date-time displays. */
00018 $intGetFileData = 1;
00019 
00020 /*** This indicates the directory where the files may be accessed.
00021 **** META Tags and File Modification Times depend on this. */
00022 $strSiteRootDir = "/home/kg9ae/public_html/";
00023 
00024 /* THE URL STUFF IS BROKEN, I THINK.
00025    Stick to FileSystem until fixed. */
00026 // $strSiteRootDir = $DOCUMENT_ROOT;
00027 // $strSiteRootDir = "/www/some/dir";
00028 // $strSiteRootDir = "C:/www/some/dir";
00029 // $strSiteRootDir = "http://DarkStar";
00030 // $strSiteRootDir = "ftp://DarkStar";
00031 
00032 /********* Optional Configuration ********/
00033 
00034 /****** The Base of your web ******/
00035 // You may override the URL stored in your SWISH-E Index here
00036 
00037 $strBaseURL = "/sysdoc/";
00038 // $strBaseURL = "/search/";
00039 // $strBaseURL = "/~username/";
00040 // $strBaseURL = "http://www.mysite.dom/";
00041 
00042 /*** Name of associated style sheet. Change this if you rename it. ***/
00043 $strStyleName = "search.css";
00044 
00045 /*** Name of current document.  Change only if form doesn't call search.php3. ***/
00046 $strSelf = "/search/";
00047 
00048 /* On platforms with PHP installed as a server module you may use this */
00049 // $strSelf = basename($PHP_SELF);
00050 /* On platforms with PHP installed as a CGI, you may use this */
00051 //$strSelf = basename(getenv("PATH_INFO"));
00052 
00053 /*** Setup MaxHits options (a single value is allowed if desired)
00054 ***/
00055 $aryMaxHits = array( 10,50,100,500 );
00056 
00057 /*** Setup meta tags to display with their headings
00058 **** Seperate with a |, leave description blank if not wanted. */
00059 
00060 $aryMetaList = array(
00061     "description|",
00062     "author|<span style=\"font-weight:700;\">Written By: </span> ",
00063     "keywords|<span style=\"font-weight:700;\">Keywords: </span> "
00064 );
00065 
00066 /*** Toggle Body, Head, Title, ... limiters (1=true, 0=false) ***/
00067 $intUseLimits = 1 ;
00068 
00069 /*** Turn this on to view the Swish-e debug information ***/
00070 $debug = 0;
00071 // $debug = 0 // Debug Display Off
00072 // $debug = 1 // Debug commandline
00073 // $debug = 2 // Debug 1 + Comment Values
00074 // $debug = 3 // Debug 2 + Comments
00075 // $debug = 4 // Debug 3 + filenames for File Info
00076 
00077 /*** Setup Search Limit [t] delimiters
00078 **** This is in case SWISH-E adds more limiters
00079 **** Or, you may have added your own.*/
00080 $arySearchDelimiter = array(
00081         "Head" => "H",
00082         "Title" => "t",
00083         "Body" => "B",
00084         "Heading" => "h",
00085         "Emphasis" => "e",
00086         "Comment" => "c"
00087 );
00088 //****** Please Configure above lines ******
00089 ?>

Generated at Sun Sep 17 14:33:41 2000 for SWS 1.0 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000