# # Configuration file for the forms to flat database scripts # # Rob Hartill March 1994. # #Add the following to get inline GIFs as part of the information returned as #a result of a query: #change OUTPUT_FORMAT to include #where FIELD[x] is the field containing some pointer to #the thumbnail gif. #Remember you can put whatever text you want into the #OUTPUT_FORMAT. #### # Set to 1 if you want to see what the equivalent GET URL should look like $VERBOSE = 1; #### #The names of the fields of the database: #these just let you give names to the fields, so that when #checking the query, it names the fields. #Change them to whatever you want. # CONFIG THIS!!!! # I removed "date", "x7", "x8", "x9", "short_name", "x11", from what follows #on 01 May 1995 @field_names = ("country", "site","type of work", "name of work", "detail", "imagepath" ); #### # The name of the person to email any comments to $who_to_mail = "gremarth@fac.anu.edu.au"; #### # The datasbase path and name # CONFIG THIS!!!! $DATABASE_FILENAME = "/data/users/new-users/gremarth/laserdisk/lddb"; #### #FIELD[n] refers to the nth field of the datafile. OUTPUT_FORMAT #can however contain any text you want. # CONFIG THIS!!!! # Note the next 3 or so lines are e all one string for $OUTPUT_FORMAT. DJB # AUTODIR[x] will get FIELD[x] and convert to a directory name with 4 digits. # eg. 14236 becomes 0142/14236 # The format of matching records # some databases have the names missing the .JPG or .GIF on the end. # (This is best actually.) # For these add the extension in the urls. Of course, don't add the extension if # it's already there in the database! $OUTPUT_FORMAT = "
FIELD[1] FIELD[2] FIELD[3]\n" . " FIELD[4] FIELD[5]\n" . " [FIELD[5]] FIELD[6]
\n"; $THUMB_FORMAT = " \n"; # Number of records to hold before printing: ie. how many thumbnails accross. $THUMBS_ACCROSS = 4; # Number of rows of records to print before giving up and just counting them. $MAX_ROWS = 3; #### # The character used to separate database fields $FIELD_SEPARATOR = ','; #### # Some messages to print at the top and foot of the output $START_CHECK_MESSAGE = "Please select the items you would like to search for"; $END_CHECK_MESSAGE ="
Whatever text or HTML appears here, will appear at the bottom of the check query page"; $START_SEARCH_MESSAGE = "Here are the results from the search..

\n"; $END_SEARCH_MESSAGE = "

Click here for the home page..."; ################ nothing below this point needs changing ################### #### # Define some constants $ANDING =1; $ORING =2; $YEARS =3; $CENTURIES =4; $REG_EXP =5;