This package may be customized for your environment by modifying a text
configuration file. Code changes should not be required in most cases.
By default, the configuration file is named advent.conf.
A sample resides in the html/conf directory distributed with
this package.
The values you most likely will want to change are:
celimgc XX imagefilenameImages directory
defined by imageloc below. Alternatively, you may use
images from elsewhere within your own Web site by providing a full
path to the image(s) from your server's DocumentRoot,
including a leading slash (/). (e.g. /Images/myimage.gif)
All images must be scaled the same, as defined by imgwide
and imghigh.
celimgacelimgc above.
celbibp XX Bible-passagemyheadermyfooterbdybgicelimgc above, it may be in the default image directory
or defined by an absolute path.
Some other values you may find a need to change are:
imagelocadventcal will reside. It should have no leading
or trailing pathname delimiters (slashes).
This variable must be relative to the DocumentRoot
environment variable used by your Web server so the script can
locate the appropriate files. (Note: If the images are moved, the
local copies of these help files may not function correctly
without corresponding changes.)
imgwideadventcal must be the same
dimensions. By default, this is 132 pixels wide by 92 pixels
high, however this may be changed (if needed) by modifying
the configuration file.
Variable imgwide defines the image width (in
pixels).
imghighimghigh defines the image height (in
pixels).
See above for additional image dimension information.
There are several forms in which the lines of the configuration file may exist. Use care when modifying the lines or the application may fail to function properly.
# Optional comment
Lines which start with "#" in column 1 are considered comments and are ignored.
variable = value # Optional comment
The variable and the value fields must not contain embeded spaces. Underscores ("_") in the value field are replaced by spaces before being used. To preserve underscores, use Format 3. The optional comment character "#" and everything which follows it will be ignored.
variable = 'value' # Optional comment
The variable must not contain embeded spaces, but the value field may contain them. Underscores ("_") in the value field are left as is. The optional comment character "#" and everything which follows it will be ignored.
variable identifier value # Optional comment
The identifier is used as an "index" into the array named "variable" The variable, identifier, and value fields must not contain embeded spaces. Underscores ("_") in the value field are replaced by spaces before being used. To preserve underscores, surround the value with single quotes as described by Format 3. The optional "#" character and everything following it will be ignored.
This format is used for myheader and myfooter.
They may be multi-line, with each line appended to the one prior to it.
These fields may contain the special variables:
$submitdate - Today's date as "DD MMM YY"
$versn - Script version information
In addition, the value for myheader may contain:
$pubtitle - String defined for TITLE tag
$alignh1 - Title alignment (LEFT, CENTER, RIGHT)
$pagetitledisp - Title defined for public display
These are expanded to their proper values prior to display.
See the definitions of other configurable values in the sample configration file itself.