; ANET HomepageSearchEngine 3.42 Configuration file (c) 2003, ANET.at * http://www.HomepageSearchEngine.com
; See section 6.2 of the Manual (ReadMe.txt) for a description of this file.
; ===========================================================================================================================================


; (1) Base directory:

; These are the only 2 values that *must* be checked and probably edited:

; (1.1) basepath: The path to the base directory, where the search should start.
; eg. "D:\web\www.yourdomain.tld\InetPub\wwwroot\startdir" (Windows) or
;     "/web/www.yourdomain.tld/httpd/htdocs/startdir" (Unix).
; The relative path may also work (eg. "../../htdocs/startdir" on both Windows and Unix platforms).

basepath = ../../

; (1.2) baseurl: The absolute URL which corresponds to the base directory. eg. "http://www.yourdomain.tld/startdir".
; You can also begin the URL with a slash (eg. "/startdir"). The full URL will then be constructed using the HTTP_HOST environment variable.
; If a part of your searchable site is password protected, you need to include valid login data to the URL,
; eg. "http://username:password@www.yourdomain.tld/startdir" to send the proper Basic Authorization HTTP Header.
;      But then you should put the same .htaccess file that protects those HTML documents into HSE's directory.

baseurl = /

; (1.3) cgiurl: the URL to the CGI executable. Determined automatically via the REQUEST_URI or SCRIPT_NAME environm. variable (so don't care)
; cgiurl = https://www.secureserver.tld/cgi-bin/hse/HomepageSearchEngine.cgi

; ===========================================================================================================================================

; All following settings are optional. You may want to keep the default values for the first time.


; (2) Files ex-/including (See sections 3.1 and 3.2 of the FAQ webpage for details):

; (2.1) exclude_dirs: Names of (sub-) directories under the start directory that should never be looked into.
; Be sure to specify all "unnecesarry" directories to optimize performance on on-the-fly searches.
; Separated by spaces (Be sure there don't exist directories containing a space in their name).
; You can include "*" characters as a wildcard for zero or more occurrences of any character.
; eg. "_*" specifies all directories beginning with "_"; "*" specifies all directories.

exclude_dirs = _* cgi-bin hse

; (2.2) ban_list: Strings that indicate files to be excluded (banned) from the search.
; Each string represents the rear part of a file's URL. This "rear part" of the URL is the part starting from the start directory
; and always begins with a slash ("/"). Use the "*" wildcard character (as in section 2.1) to match any character (at the beginning,
; within or at the end of a string). Strings must be separated by spaces - or leave this value blank if you don't want to ban any files.
; All directories and files beginning with "_" or "." are always banned.
; eg. "/a_private_directory/*" excludes files under the directory "/a_private_directory",
;     "*/private_directory/*" excludes files under all directories called "private_directory",
;     "/a_private_file.html" excludes the file "/a_private_file.html",
;     "*.log" excludes all files with the "log" extension,
;     "/*private*/*" excludes files in all directories that contain the string "private";

ban_list = /*private*/* /robots.txt /Thumbs.db *.log *.LOG *.BAK *.css *.js *.cgi *.pdf

; (2.3) search_always: Strings that indicate files to be always included in the search, regardless of being banned by the "ban_list".
; Same format as the "ban_list" (section 2.2). eg. "/a_private_directory/a_public_file.html"

search_always = 


; (3) Outfit of the input form (see also the StyleSheet definition in your HTML Template):

; (3.1) formtable_width: Width. As HTML-Code. eg. "475" (default) or "100%"; or "none" to not display the input form at all.

formtable_width = 

; (3.2) formtable_border-color: Border color. As HTML-Code or leave it blank for no border; eg. "black", "darkblue".
; On browsers other than Netscape 4, this also affects the border color around the range of currently viewed results (eg. '1-10')

formtable_border-color = black

; (3.3) formtable_background-color: Background color. As HTML-Code or leave it blank for no background; eg. "#dadada".

formtable_background-color = #dadada

; (3.4) formtable_background-image: Backgound image. URL relative to the .cgi-file or leave it blank (default).

formtable_background-image = 

; (3.5) formtable_alignment: Alignment. As HTML-Code; eg. "left" (default) or "center".

formtable_alignment = 

; (3.6) formtable_input-size: Size of the input field. In number of characters; eg. "38" (default).

formtable_input-size = 

; (3.7) helpwindow_width and helpwindow_height: Width and Height of the help window. 
; In pixel; eg. "620" (default for helpwindow_width) and "690" (default for helpwindow_height).

helpwindow_width = 
helpwindow_height = 


; (4) International settings:

; These settings are only effective if *no* "lang" parameter is delivered (look into the "lang" sub directory for details).

; (4.1) charset: Character set of the searched files. As HTML 4 compatible string or leave it blank;
; eg. "iso-8859-1" for Danish, Dutch, English, Finnish, French, German, Italian, Norwegian, Portuguese, Spanish, Swedish and others;
;     "iso-8859-2" for Hungarian, Polish, Romanian, (Latin) Serbian and Croatian, Slovak, Slovenian;
;     "iso-8859-7" for Greek;
;     "iso-8859-9" for Turkish;
;     "big5" for traditional Chinese (zh-tw); "gb2312" for simplified Chinese (zh-cn); "shift_jis" for Japanese; "tis-620" for Thai; 
;     "windows-1250" for Czech; "windows-1251" for Russian; "windows-1256" for Arabic.

charset = iso-8859-1

; (4.2) date_format: Format of date output. Combination of D (Day), M (Month from _lang.txt) and Y (Year) with separating characters;
; eg. "M D, Y" (default) results in eg. "July 1, 2000", "D. M Y" in "1. Juli 2000" and "Y.M.DD" in "2000.07.01".

date_format = 

; (4.3) decimal_sep: Decimal separating character. A dot (the character ".") (US-English style) or a comma (",") (German style);
; "." (default) results in eg. "0.5 KB" and "," in "0,5 KB".

decimal_sep = 

; (4.4) dir: Read direction of the language. "ltr" to read from left to right (default) or "rtl" (right to left - eg. for Arabic).

dir = 

; (4.5) locale: Locale string of the language your site is written in. For instance: "German". Leave it blank (default) to keep
; the system's default Locale and when your site only contains US-ASCII characters. See section 6.9 of the Manual for details. 

locale = 


; (5) Security tuning:

; (5.1) debug_level: Level of debugging restrictions. 0 (default) should be used during installation and testing, to enable 
; printing of useful debugging, warning and error messages, including the "Enhanced Debug mode". Once configuring has been finished,
; the output of pathes in such messages should be disabled by setting this value to at least 1. The recommended value is 2 to avoid 
; unsecure access of the admin area. A value of 3 also disables printing of the file list.

debug_level = 

; (5.2) max_found_files: Maximal number of files to be found before terminating. 1 - 10000 (default: 1000).

max_found_files = 

; (5.3) cgi_timeout: Max. CPU time in seconds the CGI application may require before it will be terminated. 1 - 120 (default: 10).
; Should not be higher than a little less than the allowed CPU seconds or CGI timeout set by the system. It is only advisable to set this
; value on systems with little available CPU time (eg. some shared servers from "cheap" hosting plans). If this time has been reached while
; gathering which files should be searched on-the-fly, HSE gets additional 50% of time to complete its job.

cgi_timeout = 

; (5.4) allowed_referer_sites: Site names (domain names or IP addresses) from all URLs this application may be called from.
; Case insensitive names, separated by spaces - or leave this value blank (default) if you want to allow all sites as referrers.
; You can include "*" characters as a wildcard for zero or more occurrences of any character.
; eg. "yourdomain.tld *.yourdomain.tld 127.0.0.1" to allow calling this application from the URLs
;     http://yourdomain.tld/..., http://www.yourdomain.tld/..., https://yourdomain.tld/..., http://127.0.0.1/... and so on.

allowed_referer_sites = 


; ===========================================================================================================================================


; All following settings are for advanced users and do not affect the Free edition.


; (7) Categories:

; (7.1) categories_nr: Number of the categories. 1 - 25 or "none" for no categories (default: 1; in the Free edition: "none").

categories_nr = 2

; (7.2) categories_nameNR: Name of each category NR.
;                  <==   category names max. 50 characters long   ==>

categories_name1 = whole website
categories_name2 = entire web using Google.com
; you can add the directives "categories_name3" to "categories_name24"
categories_name25 = 

; (7.3) categories_dirNR: Start directory for each of the categories. Starting from basepath;
; eg. "" (blank) means in base directory;
;     "subdir" means in sub directory "subdir";

categories_dir1 = 
categories_dir2 = 
; you can add the directives "categories_dir3" to "categories_dir24"
categories_dir25 = 

; (7.4) categories_sourceNR: "positive" or "negative" strings that indicate files to be included or excluded from the search, respectively.
; The strings have to be specified in the same manner as in the "ban_list" (section 2.2), with the exception that files to be excluded 
; must be represented by a string beginning with the minus sign ("-"). All files represented by such "negative" strings will never be
; searched. If "positive" strings are set, only files that match those strings will be searched. 
; If completely left blank, no restrictions apply;
; Use the key word "query:QUERY-NAME" to search in the entire web using a world wide search engine given by QUERY-NAME 
; that can be one of the following:
;     "AllTheWeb", "AltaVista.com", "DMoz", "Google.com", "Google.de" (searches sites in German), "HotBot", "Lycos", "NBCi", "Netscape", 
;     "Search.ch" (Swiss search) or "Yahoo";
; eg. "" (blank) means to search all files;
;     "/dir1/* /dir2/* -*secret*" means only files under the directories "/dir1" and "/dir2", but no files containing the string "secret";
;     "/dir*/*" means only files under directories that begin with "/dir", such as "/dir1" and "/dir2";
;     "-*/*/*" excludes all directories;
;     "*_en.*" means files that contain the string "_en." in their path;
;     "query:Google.com" queries the search terms to the Google.com search engine.

categories_source1 = 
categories_source2 = query:Google.com
; you can add the directives "categories_source3" to "categories_source24"
categories_source25 = 


; (8) Results pages customizing (see also the StyleSheet definition in your HTML Template):

; (8.1) template_url: absolute URL to an optional dynamic HTML template file.
; If specified, this template will be used instead of the static HTML template file "hse_template.html".
; See section 6.6 of the Manual for details.
; eg. "http://www.yourdomain.tld/hse/hse_template.shtml", "/hse/hse_template.shtml",
; "http://username:password@www.yourdomain.tld/hse/hse_template.shtml" (if the directory is password protected)
; or leave it blank to use the static template file (default).

template_url = 

; (8.2) results_global: Show global output in the results page(s). Can contain the following key words, separated by " + ":
; "search_string" to print the search string at the top;
; "options" to print the used search options at the top;
; "time" to print the required time at the top;
; "summary" to print a detailed summary of the results at the top;
; "engine-links: 'custom text to be printed' QUERY-NAME QUERY-NAME" to print links to world wide search engines at the bottom, 
; where QUERY-NAME can be those from (7.4) - "AllTheWeb", "AltaVista.com", and so on;
; or set "none" to print none of these.
; eg. "search_string + options + time + summary + engine-links: 'Query the entire Web using ' Google.com" (default);
;     "search_string + options + time + summary + engine-links: 'Suche im gesamten Web mit ' Google.de" (useful for sites in German);
;     "search_string", "none".

results_global = 

; (8.3) results_details: Show details from each hit. Can contain the following key words, separated by " + ":
; "icon:default", "icon:custom16x16" or "icon:custom" to print a default (depending on the type of file) or custom icon, respectively -
; a custom icon must be specified in the web pages's header like '<link rel="icon" href="/url_to/myimage.png" />' -
; all icons are shown in the size of 16 x 16 pixel unless "icon:custom" is specified to show them in the original size;
; "title (T)" to print up to the first T (10-500; default: 100) characters of the web page's title;
; "url (U)" to print the URL (If an optional number U is given in brackets, the output will wrap after these U characters);
; "size" to print the file size in KB;
; "matches" to print the number of matches;
; "update" to print the date of the last update;
; or set "none" to print none of these.
; eg. "icon:custom + title (100) + url + size + matches + update" (default), "title + url (100) + size", "matches + update", "none".

results_details = 

; (8.4) results_descriptions: Kind of the description shown for each hit. "C characters + M matches (L)" means
; a meta description containing the first C (0-10000; default: 250) characters from the "description" meta tag, if exists,
; otherwise from the text in the beginning of the body; plus
; M list items (0-50; default: 1) each containing the text around one match
;  - with a length of approx. L characters (20-5000; default: 40) to the left and right from the match.
; Or set "none" to print none of these.
; Note that the search speed decreases significantly with a higher number M of matches!
; eg. "250 characters + 1 matches (40)" (default), "250 characters + 3 matches", "0 characters + 1 matches (500)", "none".

results_descriptions = 

; (8.5) highlight-style: Style ... to be used for highlithing each match in the results page(s) and in the found files' contents.
; As value for a "style='...'" HTML attribute 
; or "none" for no highlithing (and a little performance increasement);
; eg. "background-color:yellow" (default) to highlight it with a yellow background color;
;     "background-color:yellowgreen; font-weight:bold" to highlight it yellowgreen and print it bold;
;     "color:red" to print it in red color; "none".

highlight-style = 

; (8.6) target: Target frame name where the result URLs should link to.
; eg. "mainframe" (when the results page is part of a frameset) or "_blank" (opens each URL in a new window)
; or leave it blank for no separate target frame (default).

target =

; (8.7) results_href: Custom code ... that will be used in the results' links as "<a href='...'>" instead of the URL alone.
; Useful to access the result URL by a custom script instead of linking to it directly.
; The URL must be given to the script by the key word "URL". An example "passurl.cgi" script is included in the distribution.
; Instead, you can also use a built-in script by specifying one or more of the following key words, separated by " + ":
; "changeurls" to redirect some URLs to other ones. For more information run the Shell Executable with "changeurls -help";
; "highlightmatches" to highlight matches not only in the results page(s), but also in the found files' contents themselves;
; "gotofirstmatch" to go to the first match (first match will be shown on top of the resulting window);
; "maxsize:SIZE" to apply "highlightmatches" or "gotofirstmatch" only if the target file's size is maximal SIZE KiloBytes (default: 100);
; or set "none" to link directly to the resulting URLs.
; eg. "/cgi-bin/hse/passurl.cgi?url=URL", "javascript:passurl('URL');", "changeurls", "changeurls + highlightmatches",
;     "highlightmatches", "highlightmatches + gotofirstmatch + maxsize:100" (default), "none" (default in the Free edition).

results_href = 

; (8.8) results_previous_img and results_next_img: images used as "previous" and "next" button in the
; link list to further result pages. Can be one of the following keywords:
; "none" for no images and the text "[ << previous ]" and "[ next >> ]" instead;
; "black" to use a built-in black image set (default);
; Or specify custom HTML attributes to be used inside an <img ...> tag 
; eg. results_previous_img = "src='/hse/images/previous.png' width='50' height='10' border='0' alt='previous' title='previous'".

results_previous_img = 
results_next_img     = 