Index | Introduction | Requirements | Features | (Installation) | Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Step 2: Create the main configuration file All configuration files for the quiz system are Perl scripts that are executed from within the quiz script. This lets you enter the contents of the configurations in which order you wish. The main configuration file affects only the quiz selection screen, and sets the default values for the rest of the screens. If you wish to override the settings in the main configuration, this can be done using the configuration files for the individual question databases. The main configuration file's name is "config.pl", and should be placed in the same location as the "quiz.cgi" and "cgi-lib.pl" files. The following options are available, as of 27-nov-99 (shown with their default values): Example main configuration: # -- files and directories 1 $accesslog = "quiz_access_log"; 2 $questions = "questions"; 3 $sessions = "sessions"; 4 $markedimage = "images/marked.gif"; 5 $incompleteimage = "images/incomplete.gif"; # -- color options (all screens) -- 6 $pbgcolor = "#000000"; 7 $tbgcolor = "#B0B0E0"; 8 $ttextcolor = "#000000"; 9 $qbgcolor = "#8E008E"; 10 $qtextcolor = "#FFFFFF"; 11 $abgcolor = "#B0B0E0"; 12 $atextcolor = "#000000"; # -- color options (question, and most review screens) -- 13 $timeleftbarcolor = "green"; 14 $timeusedbarcolor = "red"; 15 $timetextcolor = "#000000"; 16 $hilitecolor = "lightgreen"; # -- color options (score report screen) -- 17 $reqbartextcolor = "#000000"; 18 $reqbarfillcolor = "blue"; 19 $reqbaremptycolor = "white"; 20 $yourbartextcolor = "#000000"; 21 $yourbarfillcolor = "green"; 22 $yourbaremptycolor = "white"; 23 $scaletextcolor = "#000000"; 24 $passscoretextcolor = "#000000"; 25 $passscoreboxbgcolor = "#FFFFFF"; 26 $passscoreboxtextcolor = "#000000"; 27 $yourscoretextcolor = "#000000"; 28 $yourscoreboxbgcolor = "#FFFFFF"; 29 $yourscoreboxtextcolor = "#000000"; 30 $gradetextcolor = "#000000"; 31 $gradeboxbgcolor = "#FFFFFF"; 32 $gradepasstextcolor = "green"; 33 $gradefailtextcolor = "red"; 34 $defpassingscore = 0;
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All settings in the main configuration file are optional, with decent default values if they are not set in by the configuration file. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Prev page | Next page | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quizzer and its documentation is Copyright © 1999, 2000 by P-O Yliniemi |