| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 3 | # $Id: global.conf,v 1.21 2002-07-25 19:49:46 sh002i Exp $ |
3 | # $Id: global.conf,v 1.24 2002-08-21 15:27:06 sh002i Exp $ |
| 4 | ################################################################################ |
4 | ################################################################################ |
| 5 | |
5 | |
| 6 | # This file is used to set up the default WeBWorK course environment for all |
6 | # This file is used to set up the default WeBWorK course environment for all |
| 7 | # requests. Values may be overwritten by the course.conf for a specific course. |
7 | # requests. Values may be overwritten by the course.conf for a specific course. |
| 8 | # All package variables set in this file are added to the course environment. |
8 | # All package variables set in this file are added to the course environment. |
| … | |
… | |
| 15 | # this hash defines the locations of directories needed by WeBWorK |
15 | # this hash defines the locations of directories needed by WeBWorK |
| 16 | %webworkDirs = ( |
16 | %webworkDirs = ( |
| 17 | root => "$webworkRoot", |
17 | root => "$webworkRoot", |
| 18 | bin => "$webworkRoot/bin", |
18 | bin => "$webworkRoot/bin", |
| 19 | conf => "$webworkRoot/conf", |
19 | conf => "$webworkRoot/conf", |
| 20 | courses => "$webworkRoot/courses", |
20 | courses => "/ww/webwork/courses", #"$webworkRoot/courses", # *** |
| 21 | lib => "$webworkRoot/lib", |
21 | lib => "$webworkRoot/lib", |
| 22 | tmp => "$webworkRoot/tmp", |
22 | tmp => "$webworkRoot/tmp", |
| 23 | macros => "$webworkRoot/macros", |
23 | macros => "$webworkRoot/macros", |
| 24 | ); |
24 | ); |
| 25 | |
25 | |
| 26 | # this hash defines the locations of files needed by WeBWorK |
26 | # this hash defines the locations of files needed by WeBWorK |
| 27 | %webworkFiles = ( |
27 | %webworkFiles = ( |
| 28 | environment => "$webworkDirs{conf}/global.conf", |
28 | environment => "$webworkDirs{conf}/global.conf", |
|
|
29 | hardcopySnippets => { |
|
|
30 | preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", |
|
|
31 | setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", |
|
|
32 | problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", |
|
|
33 | setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", |
|
|
34 | setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", |
|
|
35 | postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", |
|
|
36 | }, |
|
|
37 | screenSnippets => { |
|
|
38 | setHeader => "$webworkDirs{conf}/screenSetHeader.pg", |
|
|
39 | }, |
| 29 | ); |
40 | ); |
| 30 | |
41 | |
| 31 | # this hash defines URLs needed by WeBWorK |
42 | # this hash defines URLs needed by WeBWorK |
| 32 | my $webworkURLRoot = "/webwork_files"; |
43 | my $webworkURLRoot = "/modperl-sam"; |
| 33 | %webworkURLs = ( |
44 | %webworkURLs = ( |
| 34 | base => "$webworkURLRoot", |
45 | root => "$webworkURLRoot", |
| 35 | logo => "$webworkURLRoot/images/webwork_logo.gif", |
46 | htdocs => "/webwork_files", |
| 36 | courses => "/ww/courses", #"$webworkURLRoot/courses", |
|
|
| 37 | docs => "/webworkDocs", |
47 | docs => "/webworkDocs", |
| 38 | ); |
48 | ); |
| 39 | |
49 | |
| 40 | # this hash defines the default locations for course subdirectories |
50 | # this hash defines the default locations for course subdirectories |
| 41 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
51 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
| 42 | %courseDirs = ( |
52 | %courseDirs = ( |
| … | |
… | |
| 50 | scoring => "$courseRoot/scoring", |
60 | scoring => "$courseRoot/scoring", |
| 51 | templates => "$courseRoot/templates", |
61 | templates => "$courseRoot/templates", |
| 52 | macros => "$courseRoot/templates/macros", |
62 | macros => "$courseRoot/templates/macros", |
| 53 | ); |
63 | ); |
| 54 | |
64 | |
| 55 | # this hash defines the default locations for course files |
65 | # this hash defines the default locations for course-specific files |
| 56 | %courseFiles = ( |
66 | %courseFiles = ( |
| 57 | environment => "$courseDirs{root}/course.conf", |
67 | environment => "$courseDirs{root}/course.conf", |
| 58 | ); |
68 | ); |
| 59 | |
69 | |
| 60 | # this hash defines default URLs |
70 | # this hash defines default URLs |
| 61 | my $courseURLRoot = "$webworkURLs{courses}/$courseName"; |
71 | my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName"; |
| 62 | %courseURLs = ( |
72 | %courseURLs = ( |
| 63 | base => "$courseURLRoot", |
73 | base => "$courseURLRoot", |
| 64 | html => "$courseURLRoot", |
74 | html => "$courseURLRoot", |
| 65 | html_temp => "$courseURLRoot/tmp", |
75 | html_temp => "$courseURLRoot/tmp", |
| 66 | ); |
76 | ); |
| … | |
… | |
| 76 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
86 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
| 77 | psvn_digits => 5, |
87 | psvn_digits => 5, |
| 78 | ); |
88 | ); |
| 79 | |
89 | |
| 80 | %templates = ( |
90 | %templates = ( |
| 81 | system => "$webworkDirs{conf}/system.template", |
91 | system => "$webworkDirs{conf}/barebones.template", |
| 82 | ); |
92 | ); |
| 83 | |
93 | |
| 84 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
94 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
| 85 | $sessionKeyTimeout = 60*30; |
95 | $sessionKeyTimeout = 60*30; |
| 86 | |
96 | |
| … | |
… | |
| 104 | |
114 | |
| 105 | # PG translation stuff |
115 | # PG translation stuff |
| 106 | %pg = ( |
116 | %pg = ( |
| 107 | options => { |
117 | options => { |
| 108 | # default translation options: |
118 | # default translation options: |
| 109 | displayMode => "formattedText", |
119 | displayMode => "images", |
| 110 | showOldAnswers => 1, |
120 | showOldAnswers => 1, |
| 111 | showCorrectAnswers => 0, |
121 | showCorrectAnswers => 0, |
| 112 | showHints => 1, |
122 | showHints => 0, |
| 113 | showSolutions => 0, |
123 | showSolutions => 0, |
| 114 | # default grader |
124 | # default grader |
| 115 | grader => "avg_problem_grader", |
125 | grader => "avg_problem_grader", |
| 116 | }, |
126 | }, |
| 117 | # modules lists module names and the packages each contains |
127 | # modules lists module names and the packages each contains |
| … | |
… | |
| 162 | ); |
172 | ); |
| 163 | |
173 | |
| 164 | %externalPrograms = ( |
174 | %externalPrograms = ( |
| 165 | tth => "/usr/local/bin/tth", |
175 | tth => "/usr/local/bin/tth", |
| 166 | math2img => "$webworkDirs{bin}/math2img", |
176 | math2img => "$webworkDirs{bin}/math2img", |
|
|
177 | pdflatex => "$webworkDirs{bin}/pip_pdflatex", |
| 167 | ); |
178 | ); |