# !!! THE LOCATION OF THE EXPLANATION FILE !!!
# the fully qualified URL or URL with respect
# to the location of exammail.cgi
# Do not use quotes around the URL
def_explain_url=http://something..
# the marking scheme ( score for correct, guess, wrong answer)
def_scheme=1,0,0
# the allowable password or ID number range (inclusive). If none, put "".
def_secrange=""
# the report terseness (0 - less ,1, 2 - most)
#0 gives no answers, 1 gives answers if candidate incorrect,
#2 gives all answers
def_report=1
# the horizontal rule to use
def_rule=<HR>
# the contents of the BODY tag for the generated Web page
def_body=BGCOLOR="#DDFFFF" TEXT="#000099" BACKGROUND="back.jpg"
# !!! THE PROGRAM TO DO THE E-MAILING !!! e.g.:
def_emailprog=/usr/ucb/mail
# !!! THE MARKER FOR THIS QUIZ !!!
#put your e-mail address here
def_marker=fred@compuserve.com
# the header to print at the top of the quiz evaluation
def_header=A New Test
# decreasing order grade values
grd=90,Excellent!
grd=80,Very Good!
grd=70,Good!
grd=60,Fair
grd=50,Poor
grd=0,Fail
# ALL the answers for each and every question
ans=q1,c
ans=q2,d
ans=q3,True
ans=q4,2
ans=q5,Friday
The essential parts of the exammail.cgi script which have to be changed are:
Optional changes (most of the variables below can be overriden by an entry in the test's .cfg file), include:
def_pathtests can be adjusted to point to a secure location.
(This is optional, not recommended for first go at loading program)
Adjust the location of the answer files:
In exammail.cgi adjust the variable $pathtests to
where the test
results will be stored. ie. /usr/oyston/testresults/
making sure to include the trailing slash.
(Leaving this variable alone will cause exammail.cgi to
look in the current directory, which is OK, but means that knowledgeable users
may find the answers as well!)
examples:
$def_scheme = "5,0,0"; $def_scheme = "2,0,-1";
example:
$def_secrange = "0-1200";
$def_rule = "<BR><IMG SRC=\"rbline.gif\"><BR>";
$def_marker = "m1\@bus.com m2\@bus2.com";
$def_report = 2;
x,Phrase
/bin/mail -s "Subject" email_addr ...
The filename for the config file is constructed as follows:
configfile = def_pathtests + testname + ".cfg"
| NAME | PHONE | WEB | |
|---|---|---|---|
| Carsten Schafer (Programmer) |
(705) 726-7942 | cschafer@barint.on.ca | http://www.barint.on.ca/~cschafer |
| Dr John Oyston (Concept) |
(705) 325-2201 x 906 | oyston@oyston.com | http://www.oyston.com/anaes |