HomepageSearchEngine
Sample SSI Template
This content comes from the fully customizable dynamic HTML template file,
specified in section (6.1) of the
hse.ini configuration file as
template_url = /hse/hse_template.shtml?ip;cookie=COOKIE_NAME
This file has been requested by HomepageSearchEngine as
/hse/hse_template.shtml
and then processed by SSI. The following HTTP Header Environment Variables are set by HomepageSearchEngine:
HTTP_USER_AGENT: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5 (can be changed via HSE's lang query variable)
HTTP_HSE_CONF: (none) (= number of HSE's configuration set, queried by the conf variable)
QUERY_STRING:
Look into this file's source code to see how to obtain these values.
Edit this file to meet your design requirements.
Sample for an own input form including "URL Inspector"
that preserves the previous form settings
The form will be read in from the external hse_customform.shtml SSI include file residing in the same directory.
This makes it comfortable to use it for all your (SSI enabled) pages. The URL of the current page required for URL Inspector will be determined automatically via SSI.
Make sure that in that file the following values are set properly:
(1) the path to HomepageSearchEngine.cgi (default: '/cgi-bin/hse/HomepageSearchEngine.cgi')
(2) the 'conf' value (default: '0')
The JavaScript code used to preserve the previous form settings will be read in from the external hse_customform.js file.
Make sure that this template file points to it properly, using an absolute URL beginning with '/' (default: '/hse/hse_customform.js').
----- Here ends the upper part of the HTML template.
----- Here starts the lower part of the HTML template.