The web pages are designed to run within an existing web site or a stand alone site.
websearch.tar.gz Andrew Atkinson version
websearch.zip downloadable here Dave Clucas version
The units are the default of the database. AFAIK by default therion uses metres and degrees, unless this has been changed in survey/layout/ini.
The web search will output results in the units of the database, and makes no reference to the units directly in the output. The config.php file has a full turn set as 360 for degrees, this needs to be changed to the correct quantity if not degrees, and is used in internal calculations, the outputs will remain in the same units as the database.
A web server with php and sql.
The pages have been tested on mysql 5.1 with php 5.3 and apache2 running on Linux (Debian and Ubuntu.) It probably works on other systems.
A database user with the privilege of SELECT on the Database (see Setting up the database)
The root directory contains the following files that may need editing
Create a database and add the database name to the config.php. Use the .sql file created by therion to import the data. The database user given in config.php should only have the privilege of SELECT
The Directory Searches contains a list of Searches and a directory called scripts, along with a Searches.php.
Further Searches can be added by adding another directory which contains at least a the files form.php and result.php. Other files may be present, however if they are likely to be useful to other searches they should be placed in the scripts directory. (Some installations may choose to delete some of the Searches Directories.) Searches.php contains an array split into sections by comments. The 'directory' give the location and the title give the text that is given in the drop down menu on the home page.
Some of these queries are modifications of the ones in the Therion book, authors of which I owe a debt of gratitude to for helping me understand the Therion Database, by providing examples.
Note. The version by Dave Clucas has a different user interface class and the structure of the input forms and output algorithms are all contained in a single file which is well commented.