#!/usr/bin/perl use YBG; require '/var/www/web9/cgi-bin/cgi/code-lib.pl'; $|=1; (*in, *filenames, *order) = &CGI_getvars(); %fields = ( theol => {key => 'name', extra => 'text'}, plays => {key => 'title', extra => 'scenario, prince, sceptichank, freefloater, luvalot'}, gloss => {key => 'term', extra => 'description'}, key => {key => 'concept', extra => 'intro, stories, extracts, bible, theologians, parallels'}, moral => {key => 'title', extra => 'fulltext'} ); print "Content-type: text/html\n\n"; $header = &readFile("$templateDir/header.html"); $footer = &readFile("$templateDir/footer.html"); $header=~s/(?<=
Enter your search terms in the box below and select which areas of the site to you wish to search
" unless ($in{'submit'}); foreach $table qw(theol plays gloss key moral){ push @tables, $table if ($in{$table}); } @tables = qw(theol plays gloss key moral) unless ($tables[0]); if ($in{'string'} eq '"Siān rules"'){ print "