diff options
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/contrib/scriptname')
10 files changed, 176 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/README b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/README new file mode 100644 index 00000000..9b94ec5d --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/README @@ -0,0 +1,16 @@ +This is a small example to demonstrate the script_name attribute. + + +Assuming that these files are located within your server's "search" +directory, just add the following line to your htdig configuration +file: + +script_name: /search/results.shtml + +You may also have to override the standard template files, using the +search_results_header, search_results_footer, syntax_error_file and +nothing_found_file attributes. + + +(c) 1999, Hanno Mueller, http://www.hanno.de + diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/results.shtml b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/results.shtml new file mode 100644 index 00000000..86e09563 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/results.shtml @@ -0,0 +1,17 @@ +<!-- + -- script_name example using SSI + -- This is the results page. + -- Note the server side include directive calling /cgi-bin/htsearch. + -- The page's parameters will be handed over to htsearch. + --> + +<html><head><title>Search results (SHTML)</title></head> +<body bgcolor="#eef7ff"> +<h2><img src="/htdig/htdig.gif"> + +<!--#exec cgi="/cgi-bin/htsearch" --> + +<hr noshade size=4> +<a href="http://www.htdig.org"> +<img src="/htdig/htdig.gif" border=0>ht://Dig</a> +</body></html> diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/search.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/search.html new file mode 100644 index 00000000..b6f80e97 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/search.html @@ -0,0 +1,53 @@ +<!-- + -- script_name example using SSI + -- This is the standard search page (no dynamic stuff), + -- with two minor differences: The form uses the "get" + -- method and the "action" sends the form input to the + -- the dynamic results page. + --> + +<html> +<head> +<title>ht://Dig WWW Search</title> +</head> +<body bgcolor="#eef7ff"> +<h1> +<a href="http://www.htdig.org"><IMG SRC="/htdig/htdig.gif" align=bottom alt="ht://Dig" border=0></a> +WWW Site Search</H1> +<hr noshade size=4> +This search will allow you to search the contents of +all the publicly available WWW documents at this site. +<br> +<p> +<form method="get" action="/search/results.shtml"> +<font size=-1> +Match: <select name=method> +<option value=and>All +<option value=or>Any +<option value=boolean>Boolean +</select> +Format: <select name=format> +<option value=builtin-long>Long +<option value=builtin-short>Short +</select> +Sort by: <select name=sort> +<option value=score>Score +<option value=time>Time +<option value=title>Title +<option value=revscore>Reverse Score +<option value=revtime>Reverse Time +<option value=revtitle>Reverse Title +</select> +</font> +<input type=hidden name=config value="htdig-ssi"> +<input type=hidden name=restrict value=""> +<input type=hidden name=exclude value=""> +<br> +Search: +<input type="text" size="30" name="words" value=""> +<input type="submit" value="Search"> +</form> +<hr noshade size=4> +</body> +</html> + diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/NOTE b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/NOTE new file mode 100644 index 00000000..b6a82833 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/NOTE @@ -0,0 +1,2 @@ +These are the standard template files, minus the standard start and +ending of the HTML that is already in the dynamic results page. diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/footer.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/footer.html new file mode 100644 index 00000000..67938f89 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/footer.html @@ -0,0 +1,2 @@ +$(PAGEHEADER) +$(PREVPAGE) $(PAGELIST) $(NEXTPAGE) diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/header.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/header.html new file mode 100644 index 00000000..41503364 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/header.html @@ -0,0 +1,22 @@ +Search results for '$(LOGICAL_WORDS)'</h2> +<hr noshade size=4> +<form method="get" action="$(CGI)"> +<font size=-1> +<input type=hidden name=config value=$(CONFIG)> +<input type=hidden name=restrict value="$(RESTRICT)"> +<input type=hidden name=exclude value="$(EXCLUDE)"> +Match: $(METHOD) +Format: $(FORMAT) +Sort by: $(SORT) +<br> +Refine search: +<input type="text" size="30" name="words" value="$(WORDS)"> +<input type="submit" value="Search"> +</select> +</font> +</form> +<hr noshade size=1> +<b>Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches. +More <img src="/htdig/star.gif" alt="*">'s indicate a better match. +</b> +<hr noshade size=1> diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/long.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/long.html new file mode 100644 index 00000000..57ea8dcc --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/long.html @@ -0,0 +1,6 @@ +<dl><dt><strong><a href="$(URL)">$(TITLE)</a></strong>$(STARSLEFT) +</dt><dd>$(EXCERPT)<br> +<i><a href="$(URL)">$(URL)</a></i> +<font size=-1>$(MODIFIED), $(SIZE) bytes</font> +</dd></dl> + diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/nomatch.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/nomatch.html new file mode 100644 index 00000000..840e4098 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/nomatch.html @@ -0,0 +1,30 @@ +Search results</h1> +<hr noshade size=4> +<h2>No matches were found for '$(LOGICAL_WORDS)'</h2> +<p> +Check the spelling of the search word(s) you used. +If the spelling is correct and you only used one word, +try using one or more similar search words with "<b>Any</b>." +</p><p> +If the spelling is correct and you used more than one +word with "<b>Any</b>," try using one or more similar search +words with "<b>Any</b>."</p><p> +If the spelling is correct and you used more than one +word with "<b>All</b>," try using one or more of the same words +with "<b>Any</b>."</p> +<hr noshade size=4> +<form method="get" action="$(CGI)"> +<font size=-1> +<input type=hidden name=config value=$(CONFIG)> +<input type=hidden name=restrict value="$(RESTRICT)"> +<input type=hidden name=exclude value="$(EXCLUDE)"> +Match: $(METHOD) +Format: $(FORMAT) +Sort by: $(SORT) +<br> +Refine search: +<input type="text" size="30" name="words" value="$(WORDS)"> +<input type="submit" value="Search"> +</select> +</font> +</form> diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/short.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/short.html new file mode 100644 index 00000000..b5044b31 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/short.html @@ -0,0 +1 @@ +$(STARSRIGHT) <strong><a href="$(URL)">$(TITLE)</a></strong><br> diff --git a/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/syntax.html b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/syntax.html new file mode 100644 index 00000000..feddac71 --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/contrib/scriptname/templates/syntax.html @@ -0,0 +1,27 @@ +Error in Boolean search for '$(LOGICAL_WORDS)'</h1> +<hr noshade size=4> +Boolean expressions need to be 'correct' in order for the search +system to use them. +The expression you entered has errors in it.<p> +Examples of correct expressions are: <b>cat and dog</b>, <b>cat +not dog</b>, <b>cat or (dog not nose)</b>.<br>Note that +the operator <b>not</b> has the meaning of 'without'. +<blockquote><b> +$(SYNTAXERROR) +</b></blockquote> +<hr noshade size=4> +<form method="get" action="$(CGI)"> +<font size=-1> +<input type=hidden name=config value=$(CONFIG)> +<input type=hidden name=restrict value="$(RESTRICT)"> +<input type=hidden name=exclude value="$(EXCLUDE)"> +Match: $(METHOD) +Format: $(FORMAT) +Sort: $(SORT) +<br> +Refine search: +<input type="text" size="30" name="words" value="$(WORDS)"> +<input type="submit" value="Search"> +</select> +</font> +</form> |