System requirements


Manual installation procedure

If the Item file does not exist, one must be created containing the line:*ITEM DESCRIPTIONS.
Your database should be set to go!


Automatic installation procedure

If the Item file does not exist, one must be created containing the line:*ITEM DESCRIPTIONS.
Your database should be set to go!


Making an image gallery:

The image_gallery.cgi script works as follows:
It scans the IMAGES_FULLPATH directory and builds a directory tree for the subdirectories and a list of thumbnail images for each full image found. Both full images and thumbnail images must be .gif, .tif, .jpg. The thumbnail image must have the same name as the corresponding full image plus the prefix 'tiny_'. For example the content of the directory ascocarps is:

Tuber_borchii_ascocarp.jpg           tiny_Tuber_borchii_ascocarp.jpg
Tuber_dryophilum_ascocarp.jpg        tiny_Tuber_dryophilum_ascocarp.jpg
Tuber_excavatum_ascocarp.jpg         tiny_Tuber_excavatum_ascocarp.jpg
Tuber_foetidum_ascocarp.jpg          tiny_Tuber_foetidum_ascocarp.jpg
Tuber_maculatum_ascocarp.jpg         tiny_Tuber_maculatum_ascocarp.jpg
Tuber_magnatum_ascocarp.jpg          tiny_Tuber_magnatum_ascocarp.jpg
Tuber_panniferum_ascocarp.jpg        tiny_Tuber_panniferum_ascocarp.jpg
Tuber_puberulum_ascocarp.jpg         tiny_Tuber_puberulum_ascocarp.jpg

It will produce what you see here. The file name is used to label each image and the underscore character is translated into a space. The routine works recursively so there is no limits in the dimension of your directory tree. The thumbnail images are displayed with a width of 64 pixels whereas full images are displayed at the original size.
It is useful to make the image file name from taxon name since the routine that visualizes the characters for a particular taxon will look in the IMAGES_FULLPATH directory and subdirectories for images of the taxon to be shown.
 


Example of config.ini:

## WEBDELTA CONFIGURATION FILE
##
## This file contains the definition of public variables used
## by set of perl scripts of the WebDelta database.
##

#This variable control the guest access.
# 0 nobody will access the data except authorized userd
# 1 guests will be able to look at the database but not to modify it.
# Note that a value of 0 vill also diseable the file viewer that shows
# the char, item, spec, and log files.
$ALLOW_GUEST_IN = 1;

#Name of the web database that you are building and homepage link
$NAME = "TuberKey";
$HOME = "http://www.truffle.org/tuberkey/tuberkey-english.html";

#Copyright label for images
$COPYRIGTH = "© 1998 TuberKey";

#Name of the webmaster and e-mail address
@Author=('Claudio Rivetti', 'Riccardo Percudani');
@Author_email=('rivetti@ipruniv.cce.unipr.it', 'riccardo@ipruniv.cce.unipr.it');

#Directories in use
$HTML_DIR        = "http://www.truffle.org/tuberkey/";
$CGIBIN_DIR      = "http://www.truffle.org/cgi-bin/tuberkey/";
$ICONS_DIR       = "http://www.truffle.org/tuberkey/icons/";
$IMAGES_DIR      = "http://www.truffle.org/tuberkey/images/";
$IMAGES_FULLPATH = '/var/www/htdocs/tuberkey/images/';
$BACKUP_DIR      = '/var/www/cgi-bin/tuberkey/backup/';  #With permission to be written
$TEMP_FULLPATH   = '/tmp/';   #With permission to be written
 

#Database files:
#These files must be located in the CGIBIN_DIR
$char_file_name = "Hyp_char";
$spec_file_name = "Hyp_spec";
$item_file_name = "Hyp_item";     #With permission to be written
$LOG_FILENAME   = "WDdb.log";     #With permission to be written
 

#File containing the usernames, passwords and e-mail addresses.
$PASSWORD_FILE  = "/mydir/WDdb.pw";

#The system mailer
$MAILER = '/usr/sbin/Mail';

#The fontname to be used
$Font_name     = "Verdana, Arial, Helvetica";
 


Example of password file WDdb.pw:

#WebDelta password list 
#Fields must be separated by =
#
#USER      = PASSWORD  = E-MAIL
rossi      = fox92     = rossi@vax2.unipr.it
bianchi    = gst352    = bianchi@balena.unipr.it
verdi      = hfgwww    = verdi@mosca.unipr.it


Back