[m-rev.] [www]: diff: delete the old htdig search interface from the web site source

Julien Fischer jfischer at opturion.com
Fri Jan 3 23:03:00 AEDT 2020


Delete the old htdig search interface from the web site source.

htdig/:
    As above. This has not been used in many years.

Julien.

diff --git a/htdig/.cvsignore b/htdig/.cvsignore
deleted file mode 100644
index 42b8ddd..0000000
--- a/htdig/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.html
-*.inc
diff --git a/htdig/Makefile b/htdig/Makefile
deleted file mode 100644
index 9ecb029..0000000
--- a/htdig/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-target: html
-
-HTML= 	header_and_footer.html		\
-	nomatch.html			\
-	syntax.html			\
-	wrapper.html
-
-DIRS= 
-ROOT=..
-
-include ../Makefile.common
-
-html: header.inc footer.inc
-
-install: local_install
-
-clean: local_clean
-
-header.inc footer.inc: header_and_footer.html
-	$(ROOT)/bin/divide "---- cut here ----" header.inc footer.inc < \
-		header_and_footer.html
-
-local_install:
-	$(CP) htdig-mercury.conf header.inc footer.inc $(INSTALL_WEBDIR)/
-
-local_clean:
-	rm -f header.inc footer.inc
-
diff --git a/htdig/header_and_footer.php b/htdig/header_and_footer.php
deleted file mode 100644
index f8b2b12..0000000
--- a/htdig/header_and_footer.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<HTML>
-<?
-    $title="Search results for '$(WORDS)'";
-    $dir="htdig";
-    $root="..";
-    $include="header_and_footer.inc";
-    include "$root/include/template.inc"
-?>
-</HTML>
diff --git a/htdig/htdig-mercury.conf b/htdig/htdig-mercury.conf
deleted file mode 100644
index b1a37a6..0000000
--- a/htdig/htdig-mercury.conf
+++ /dev/null
@@ -1,138 +0,0 @@
-#
-# IMPORTANT: this file needs to be linked to from the location that
-# htdig expects to find its configuration files.
-#
-# Example config file for ht://Dig.
-#
-# This configuration file is used by all the programs that make up ht://Dig.
-# Please refer to the attribute reference manual for more details on what
-# can be put into this file.  (/usr/doc/htdig/html/confindex.html)
-# Note that most attributes have very reasonable default values so you
-# really only have to add attributes here if you want to change the defaults.
-#
-# What follows are some of the common attributes you might want to change.
-#
-
-#
-# Specify where the database files need to go.  Make sure that there is
-# plenty of free disk space available for the databases.  They can get
-# pretty big.
-#
-#database_dir:		/home/mercury/mercury5/htdig/
-#
-# NFS slows down the process significantly. 
-database_dir:		/var/lib/htdig/
-
-#
-# This specifies the URL where the robot (htdig) will start.  You can specify
-# multiple URLs here.  Just separate them by some whitespace.
-# The example here will cause the ht://Dig homepage and related pages to be
-# indexed.
-#
-start_url:		http://www.mercury.csse.unimelb.edu.au/
-
-#
-# This attribute limits the scope of the indexing process.  The default is to
-# set it to the same as the start_url above.  This way only pages that are on
-# the sites specified in the start_url attribute will be indexed and it will
-# reject any URLs that go outside of those sites.
-#
-# Keep in mind that the value for this attribute is just a list of string
-# patterns. As long as URLs contain at least one of the patterns it will be
-# seen as part of the scope of the index.
-#
-limit_urls_to:		${start_url}
-
-#
-# If there are particular pages that you definately do NOT want to index, you
-# can use the exclude_urls attribute.  The value is a list of string patterns.
-# If a URL matches any of the patterns, it will NOT be indexed.  This is
-# useful to exclude things like virtual web trees or database accesses.  By
-# default, all CGI URLs will be excluded.  (Note that the /cgi-bin/ convention
-# may not work on your web server.  Check the  path prefix used on your web
-# server.)
-#
-# [I also made it exclude .gz, .deb, and .rpm files,
-# since there doesn't seem to be any point trying to index
-# binary files. -fjh.]
-#
-exclude_urls:		/cgi-bin/ download/files/ .cgi .gz .deb .rpm .ps
-
-#
-# The excerpts that are displayed in long results rely on stored information
-# in the index databases.  The compiled default only stores 512 characters of
-# text from each document (this excludes any HTML markup...)  If you plan on
-# using the excerpts you probably want to make this larger.  The only concern
-# here is that more disk space is going to be needed to store the additional
-# information.  Since disk space is cheap (! :-)) you might want to set this
-# to a value so that a large percentage of the documents that you are going
-# to be indexing are stored completely in the database.  At SDSU we found
-# that by setting this value to about 50k the index would get 97% of all
-# documents completely and only 3% was cut off at 50k.  You probably want to
-# experiment with this value.
-# Note that if you want to set this value low, you probably want to set the
-# excerpt_show_top attribute to false so that the top excerpt_length characters
-# of the document are always shown.
-#
-max_head_length:	10000
-
-#
-# Depending on your needs, you might want to enable some of the fuzzy search
-# algorithms.  There are several to choose from and you can use them in any
-# combination you feel comfortable with.  Each algorithm will get a weight
-# assigned to it so that in combinations of algorithms, certain algorithms get
-# preference over others.  Note that the weights only affect the ranking of
-# the results, not the actual searching.
-# The available algorithms are:
-#	exact
-#	endings
-#	synonyms
-#	soundex
-#	metaphone
-# By default only the "exact" algorithm is used with weight 1.
-# Note that if you are going to use any of the algorithms other than "exact",
-# you need to use the htfuzzy program to generate the databases that each
-# algorithm requires.
-#
-search_algorithm:	exact:1 # synonyms:0.5 endings:0.1
-
-#
-# The following are used to change the text for the page index.
-# The defaults are just boring text numbers.  These images spice
-# up the result pages quite a bit.  (Feel free to do whatever, though)
-#
-next_page_text:		<img src=/doc/htdig/images/buttonr.gif border=0 align=middle width=30 height=30 alt=next>
-no_next_page_text:
-prev_page_text:		<img src=/doc/htdig/images/buttonl.gif border=0 align=middle width=30 height=30 alt=prev>
-no_prev_page_text:
-page_number_text:	"<img src=/doc/htdig/images/button1.gif border=0 align=middle width=30 height=30 alt=1>" \
-			"<img src=/doc/htdig/images/button2.gif border=0 align=middle width=30 height=30 alt=2>" \
-			"<img src=/doc/htdig/images/button3.gif border=0 align=middle width=30 height=30 alt=3>" \
-			"<img src=/doc/htdig/images/button4.gif border=0 align=middle width=30 height=30 alt=4>" \
-			"<img src=/doc/htdig/images/button5.gif border=0 align=middle width=30 height=30 alt=5>" \
-			"<img src=/doc/htdig/images/button6.gif border=0 align=middle width=30 height=30 alt=6>" \
-			"<img src=/doc/htdig/images/button7.gif border=0 align=middle width=30 height=30 alt=7>" \
-			"<img src=/doc/htdig/images/button8.gif border=0 align=middle width=30 height=30 alt=8>" \
-			"<img src=/doc/htdig/images/button9.gif border=0 align=middle width=30 height=30 alt=9>" \
-			"<img src=/doc/htdig/images/button10.gif border=0 align=middle width=30 height=30 alt=10>"
-#
-# To make the current page stand out, we will put a border arround the
-# image for that page.
-#
-no_page_number_text:	"<img src=/doc/htdig/images/button1.gif border=2 align=middle width=30 height=30 alt=1>" \
-			"<img src=/doc/htdig/images/button2.gif border=2 align=middle width=30 height=30 alt=2>" \
-			"<img src=/doc/htdig/images/button3.gif border=2 align=middle width=30 height=30 alt=3>" \
-			"<img src=/doc/htdig/images/button4.gif border=2 align=middle width=30 height=30 alt=4>" \
-			"<img src=/doc/htdig/images/button5.gif border=2 align=middle width=30 height=30 alt=5>" \
-			"<img src=/doc/htdig/images/button6.gif border=2 align=middle width=30 height=30 alt=6>" \
-			"<img src=/doc/htdig/images/button7.gif border=2 align=middle width=30 height=30 alt=7>" \
-			"<img src=/doc/htdig/images/button8.gif border=2 align=middle width=30 height=30 alt=8>" \
-			"<img src=/doc/htdig/images/button9.gif border=2 align=middle width=30 height=30 alt=9>" \
-			"<img src=/doc/htdig/images/button10.gif border=2 align=middle width=30 height=30 alt=10>"
-
-	# location of the current directory when it is installed.
-search_results_header: /home/mercury/mercury5/installed_w3/htdig/header.inc
-search_results_footer: /home/mercury/mercury5/installed_w3/htdig/footer.inc
-search_results_wrapper: /home/mercury/mercury5/installed_w3/htdig/wrapper.html
-nothing_found_file: /home/mercury/mercury5/installed_w3/htdig/nomatch.html
-syntax_error_file: /home//mercury/mercury5/installed_w3/htdig/syntax.html
diff --git a/htdig/include/header_and_footer.inc b/htdig/include/header_and_footer.inc
deleted file mode 100644
index 340095e..0000000
--- a/htdig/include/header_and_footer.inc
+++ /dev/null
@@ -1,26 +0,0 @@
-<b>Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches.
-More <img src="/doc/htdig/images/star.gif" alt="*">'s indicate a better match.
-</b>
-<hr noshade size=1>
----- cut here ----
-$(PAGEHEADER)
-$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
-<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=4>
-<a href="http://www.htdig.org">
-<img src="/doc/htdig/images/htdig.gif" border=0>ht://Dig $(VERSION)</a>
diff --git a/htdig/include/nomatch.inc b/htdig/include/nomatch.inc
deleted file mode 100644
index 29a69f0..0000000
--- a/htdig/include/nomatch.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-<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>
-<hr noshade size=4>
-<a href="http://www.htdig.org/">
-<img src="/doc/htdig/images/htdig.gif" border=0>ht://Dig $(VERSION)</a>
diff --git a/htdig/include/syntax.inc b/htdig/include/syntax.inc
deleted file mode 100644
index c8144fd..0000000
--- a/htdig/include/syntax.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-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>
-<hr noshade size=4>
-<a href="http://www.htdig.org/">
-<img src="/doc/htdig/images/htdig.gif" border=0>ht://Dig $(VERSION)</a>
diff --git a/htdig/include/wrapper.inc b/htdig/include/wrapper.inc
deleted file mode 100644
index 12c5ec2..0000000
--- a/htdig/include/wrapper.inc
+++ /dev/null
@@ -1,26 +0,0 @@
-<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="/doc/htdig/images/star.gif" alt="*">'s indicate a better match.
-</b>
-<hr noshade size=1>
-$(HTSEARCH_RESULTS)
-$(PAGEHEADER)
-$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
-<hr noshade size=4>
-<a href="http://www.htdig.org">
-<img src="/doc/htdig/images/htdig.gif" border=0>ht://Dig $(VERSION)</a>
diff --git a/htdig/nomatch.php b/htdig/nomatch.php
deleted file mode 100644
index 490d2be..0000000
--- a/htdig/nomatch.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<HTML>
-<?
-    $title="No match for '$(LOGICAL_WORDS)'";
-    $dir="htdig";
-    $root="..";
-    $include="nomatch.inc";
-    include "$root/include/template.inc"
-?>
-</HTML>
diff --git a/htdig/syntax.php b/htdig/syntax.php
deleted file mode 100644
index f3e6f31..0000000
--- a/htdig/syntax.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<HTML>
-<?
-    $title="Error in Boolean search for '$(WORDS)'";
-    $dir="htdig";
-    $root="..";
-    $include="syntax.inc";
-    include "$root/include/template.inc"
-?>
-</HTML>
diff --git a/htdig/wrapper.php b/htdig/wrapper.php
deleted file mode 100644
index ba95e35..0000000
--- a/htdig/wrapper.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<HTML>
-<?
-    $title="Search results for '$(WORDS)'";
-    $dir="htdig";
-    $root="..";
-    $include="wrapper.inc";
-    include "$root/include/template.inc"
-?>
-</HTML>


More information about the reviews mailing list