## ## defs.wh ## ## This is included in all source files and defines ## various constants which guide pathnames, contacts, ## and the like. This is a very important site-specific ## file, as this tells the software where to find files ## and send email. ## ## This doesn't emit *any* html code. ## # ### The security model is very important to get right. ### One fashion (ScriptAlias) uses ScriptAlias directives in the web server ### configuration file to enumerate directories containing programs. ### Under this model, the web programs are assumed to run as the web ### server, and there is a distict _HOME-OWNER_ as well. It is best ### if these can be in the same group. Typical file modes will be ### 0660 to allow the owner and the group have equal access to all files. ### Another model (SUExec) has all programs running as the owner of the ### programs. This typically requires all programs to have a .cgi ### extension (which isn't [yet] the case with cvoracle). The ### password files must be readable by the web server, so typical ### modes for most files is 0600, and the modes for the password ### files is 0604. ### ### See the notes at the start of the permissions program which explains ### these definitions in some detail. #define _SECURITY-MODEL_ UserCGI #define _ALLOW-WORLD-READ_ 1 #define _ALLOW-GROUP-READ_ 1 # ### ### Site configuration ### ### The following entries can be configured for each of the different ### installation of the application. ### # # _HOME-* definitions give the basic layout of the application. # _HOME-FS_ need not be part of the web filesystem (_HOME-HTTP_), # however if you put it there everything will be in one place. #define _HOME-HOST_ www.ao.com #define _HOME-URL_ http://_HOME-HOST_/~regan/faq #define _HOME-BIN_ http://_HOME-HOST_/~regan/faq/bin #define _HOME-HTTP_ /export/home/regan/public_html/faq # #define _HOME-FS_ /export/home/regan/public_html/faq/Data #define _HOME-FS_ /dev/null #define _HOME-OWNER_ regan #define _HOME-GROUP_ users #define _HOME-WWW_ nobody # # _EMAIL-* is the contact information of the administrator of this application. # The _EMAIL-ADDR_ is an email address, and _EMAIL-NAME_ is a name to display. # These can represent mailing lists or titles rather than specific people's # accounts if desired. #define _EMAIL-ADDR_ regan@ao.com #define _EMAIL-NAME_ FAQ Author # ### ### Application specific information ### ### Definitions here are used for specific applications. ### # _ROBOT-* is the contact information for the robot. # _ROBOT-ADDR_ is used for applications which receive email as # well as have a web interface, and is the address people can # send mail to in order to talk to the program. #define _ROBOT-ADDR_ regan@ao.com #define _APPL-ERRORS_ regan@ao.com # ### ### Presentation information ### ### This information should be made correct. However, if it ### is incorrect then the pages may simply not look as you'd ### wish. ### # The images are used for standard pages. This may undergo some flux. #define _IMAGE-SMALLR_ _HOME-URL_/Images/smalllogo.gif #define _IMAGE-SMALL_ _HOME-URL_/Images/smalllogo.gif #define _IMAGE-LARGE_ _HOME-URL_/Images/cornvalley.green.jpg #define _IMAGE-BANNER_ _HOME-URL_/Images/cornvalley.green.jpg # Use quotes on strings so that additional attributes can be included. #define _LOGO-IMAGE_ "_HOME-URL_/Images/cornvalley.green.jpg" alt=CornValley #define _LOGO-URL_ "http://www.peak.org/cornvalley/" # # Define a default color. #define _BGCOLOR_ #FFFFFF #define _VLINK-COLOR_ #339933 #define _LINK-COLOR_ #339933 #define _BG-PAGE-COLOR_ bgcolor="_BGCOLOR_" #define _BG-VLINK-COLOR_ vlink="_VLINK-COLOR_" #define _BG-LINK-COLOR_ link="_LINK-COLOR_" ##define _BG-TABLE-COLOR_ #339933 #define _BG-TABLE-COLOR_ #00CCFF # ##define _TABLE-HEADER-SPACE_
#define _TABLE-HEADER-SPACE_ #define _TABLE-HEADER-FONT_ +2 #define _TABLE-LEFTSIDE-WIDTH_ 90 #define _TABLE-SIDEBAR-IMAGE-LINK_ http://www.peak.org/admin #define _TABLE-SIDEBAR-IMAGE_ http://www.peak.org/images/blackbal.gif #define _TABLE-SIDEBAR-IMAGE-WIDTH_ width=10 #define _TABLE-SIDEBAR-IMAGE-HEIGHT_ height=10 #define _TABLE-SIDEBAR-IMAGE-ALIGN_ ALIGN=middle #define _TABLE-SIDEBAR-IMAGE-ALT_ alt="PEAK TASKS" #define _TABLE-SIDEBAR-IMAGE-BORDER_ border="0" # #define _TABLE-BOTTOM-IMAGE-LINK_ http://www.peak.org #define _TABLE-BOTTOM-IMAGE_ http://www.peak.org/images/peak.pam2.gif #define _TABLE-BOTTOM-IMAGE-WIDTH_ width=80 #define _TABLE-BOTTOM-IMAGE-HEIGHT_ height=80 #define _TABLE-BOTTOM-IMAGE-ALIGN_ ALIGN=middle #define _TABLE-BOTTOM-IMAGE-ALT_ alt="PEAK " #define _TABLE-BOTTOM-IMAGE-BORDER_ border="0" # #define _TABLE-TOP-IMAGE-LINK_ http://www.peak.org #define _TABLE-TOP-IMAGE_ http://www.peak.org/images/peak.pam2.gif #define _TABLE-TOP-IMAGE-WIDTH_ width=80 #define _TABLE-TOP-IMAGE-HEIGHT_ height=80 #define _TABLE-TOP-IMAGE-ALIGN_ ALIGN=middle #define _TABLE-TOP-IMAGE-ALT_ alt="PEAK " #define _TABLE-TOP-IMAGE-BORDER_ border="0" # #define _TABLE-ROW1-CELL1-COLOR_ BGCOLOR="_BG-TABLE-COLOR_" # ##define _TABLE-ROW1-CELL1-IMAGE
#define _TABLE-ROW1-CELL1-IMAGE # #define _NAVBAR-ALIGN_ align=center #define _NAVBAR-BORDER_ border=1 #define _NAVBAR-SPACING_ cellspacing=3 #define _NAVBAR-PADDING_ cellpadding=3 #define _NAVBAR-CELL-COLOR_ bgcolor="#CCCCCC" # ### ### The rest of this file will probably not change for most ### installations. Of course, where these variables are used ### in the various *.wc files (and elsewhere) may change. ### # _APPL_ is the name of the application #define _APPL-NAME_ FAQ Program #define _APPL_ _APPL-NAME_ # # The _PASSWD-REALM_ should be different for different applications # which may have common users on a particular computer. This is used # to prompt for different passwords by browsers. #define _PASSWD-REALM_ _APPL-NAME_ # ### ### The following section will vary depending upon ### application, but the user has no reason to change ### anything here. ### # _AUTHOR-* is the contact information for the author of the application #define _AUTHOR-ADDR_ regan@peak.org #define _AUTHOR-NAME_ Dave Regan #define _AUTHOR-HOME_ http://www.ao.com/~regan/faq #define _REAL-ADDR_ regan@ao.com #define _REAL-NAME_ Dave Regan #define _REAL-HOME_ http://www.peak.org/cornvalley/ # ### ### This section is for things that people have little ### reason to change. This sets up defaults, as well ### as utility macros for use in *.wc files. This information ### will probably remain constant across applications. ### # Set symbols for the different user types. User is default. # _IS-AUTH_ is used to indicate that the user is authenticated. # _IS-ADMIN_ is used to indicate that the user is an administrator. #define _IS-USER_ 1 #define _IS-AUTH_ 0 #define _IS-ADMIN_ 0 # # _SEP_ is used to separate sections of an HTML document #define _SEP_


# # The user needs to define _STITLE_ before calling _SEC_ # The _SEC_ macro puts in a section title in HTML documents #pragma nodefine #define _SEC_


_STITLE_

#pragma define # # _ROOT-REG_ describes the registration program. #define _ROOT-REG_ _HOME-BIN_/register.cgi/ #define _ROOT-REG2_ _HOME-BIN_/register.pw.cgi/ #