| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.45 2004/01/03 20:07:02 sh002i Exp $ |
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.73 2004/06/14 22:55:05 sh002i Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 20 | # All package variables set in this file are added to the course environment. |
20 | # All package variables set in this file are added to the course environment. |
| 21 | # If you wish to set a variable here but omit it from the course environment, |
21 | # If you wish to set a variable here but omit it from the course environment, |
| 22 | # use the "my" keyword. The following variables are available to this file: |
22 | # use the "my" keyword. The following variables are available to this file: |
| 23 | # |
23 | # |
| 24 | # $webworkRoot directory that contains the WeBWorK distribution |
24 | # $webworkRoot directory that contains the WeBWorK distribution |
| 25 | # $webworkURL base URL handled by Apache::WeBWorK |
25 | # $webworkURLRoot base URL handled by Apache::WeBWorK |
| 26 | # $pgRoot directory that contains the PG distribution |
26 | # $pgRoot directory that contains the PG distribution |
| 27 | # $courseName name of the course being used |
27 | # $courseName name of the course being used |
| 28 | |
28 | |
| 29 | ################################################################################ |
29 | ################################################################################ |
| 30 | # WeBWorK settings |
30 | # WeBWorK settings |
| … | |
… | |
| 38 | conf => "$webworkRoot/conf", |
38 | conf => "$webworkRoot/conf", |
| 39 | courses => "$webworkRoot/courses", |
39 | courses => "$webworkRoot/courses", |
| 40 | htdocs => "$webworkRoot/htdocs", |
40 | htdocs => "$webworkRoot/htdocs", |
| 41 | htdocs_temp => "$webworkRoot/htdocs/tmp", |
41 | htdocs_temp => "$webworkRoot/htdocs/tmp", |
| 42 | equationCache => "$webworkRoot/htdocs/tmp/equations", |
42 | equationCache => "$webworkRoot/htdocs/tmp/equations", |
|
|
43 | local_help => "$webworkRoot/htdocs/helpFiles", |
| 43 | lib => "$webworkRoot/lib", |
44 | lib => "$webworkRoot/lib", |
| 44 | logs => "$webworkRoot/logs", |
45 | logs => "$webworkRoot/logs", |
| 45 | macros => "$pgRoot/macros", |
46 | macros => "$pgRoot/macros", |
| 46 | tmp => "$webworkRoot/tmp", |
47 | tmp => "$webworkRoot/tmp", |
| 47 | ); |
48 | ); |
| 48 | |
49 | |
| 49 | %webworkFiles = ( |
50 | %webworkFiles = ( |
| 50 | environment => "$webworkDirs{conf}/global.conf", |
51 | environment => "$webworkDirs{conf}/global.conf", |
| 51 | hardcopySnippets => { |
52 | hardcopySnippets => { |
| 52 | preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", |
53 | preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", |
| 53 | setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", |
54 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg", |
| 54 | problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", |
55 | problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", |
| 55 | setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", |
56 | setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", |
| 56 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
57 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
| 57 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
58 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
| 58 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
59 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
| 59 | }, |
60 | }, |
| 60 | screenSnippets => { |
61 | screenSnippets => { |
| 61 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", |
62 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg", |
| 62 | }, |
63 | }, |
| 63 | logs => { |
64 | logs => { |
| 64 | timing => "$webworkDirs{logs}/timing.log", |
65 | timing => "$webworkDirs{logs}/timing.log", |
| 65 | }, |
66 | }, |
| 66 | equationCacheDB => "$webworkDirs{DATA}/equationcache", |
67 | equationCacheDB => "$webworkDirs{DATA}/equationcache", |
| … | |
… | |
| 71 | home => "/webwork2_files/index.html", |
72 | home => "/webwork2_files/index.html", |
| 72 | htdocs => "/webwork2_files", |
73 | htdocs => "/webwork2_files", |
| 73 | htdocs_temp => "/webwork2_files/tmp", |
74 | htdocs_temp => "/webwork2_files/tmp", |
| 74 | equationCache => "/webwork2_files/tmp/equations", |
75 | equationCache => "/webwork2_files/tmp/equations", |
| 75 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
76 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
|
|
77 | local_help => "/webwork2_files/helpFiles", |
| 76 | oldProf => "/webwork-old/profLogin.pl", |
78 | oldProf => "/webwork1/profLogin.pl", |
|
|
79 | jsMath => "/webwork2_files/jsMath/jsMath.js", |
|
|
80 | asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js", |
| 77 | ); |
81 | ); |
| 78 | |
82 | |
| 79 | ################################################################################ |
83 | ################################################################################ |
| 80 | # Default course-specific settings |
84 | # Default course-specific settings |
| 81 | ################################################################################ |
85 | ################################################################################ |
| … | |
… | |
| 95 | email => "$courseRoot/templates/email", |
99 | email => "$courseRoot/templates/email", |
| 96 | ); |
100 | ); |
| 97 | |
101 | |
| 98 | %courseFiles = ( |
102 | %courseFiles = ( |
| 99 | environment => "$courseDirs{root}/course.conf", |
103 | environment => "$courseDirs{root}/course.conf", |
| 100 | motd => "$courseDirs{root}/motd.txt", |
104 | motd => "$courseDirs{templates}/motd.txt", |
| 101 | logs => { |
105 | logs => { |
| 102 | answer_log => "$courseDirs{logs}/answer_log", |
106 | answer_log => "$courseDirs{logs}/answer_log", |
| 103 | }, |
107 | }, |
| 104 | course_info => "$courseDirs{root}/course_info.txt", |
108 | course_info => "course_info.txt", # path relative to templates directory |
| 105 | login_info => "$courseDirs{root}/login_info.txt", |
109 | login_info => "login_info.txt", # path relative to templates directory |
| 106 | ); |
110 | ); |
| 107 | |
111 | |
| 108 | # quick hack to fix transaction logging. blah. |
112 | # quick hack to fix transaction logging. blah. |
| 109 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
113 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 110 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
114 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| 111 | |
115 | |
| 112 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
116 | my $courseURLRoot = "/webwork2_course_files/$courseName"; |
| 113 | %courseURLs = ( |
117 | %courseURLs = ( |
| 114 | root => "$courseURLRoot", |
118 | root => "$courseURLRoot", |
| 115 | html => "$courseURLRoot", |
119 | html => "$courseURLRoot", |
| 116 | html_temp => "$courseURLRoot/tmp", |
120 | html_temp => "$courseURLRoot/tmp", |
| 117 | ); |
121 | ); |
| … | |
… | |
| 119 | ################################################################################ |
123 | ################################################################################ |
| 120 | # Other site-specific options |
124 | # Other site-specific options |
| 121 | ################################################################################ |
125 | ################################################################################ |
| 122 | |
126 | |
| 123 | %mail = ( |
127 | %mail = ( |
| 124 | smtpServer => "mail.yourdomain.edu", |
128 | smtpServer => "mail.math.rochester.edu", |
| 125 | smtpSender => "webwork\@yourdomain.edu", |
129 | smtpSender => "webwork\@math.rochester.edu", |
|
|
130 | |
| 126 | # allowedRecipients defines addresses that the PG system is allowed to |
131 | # allowedRecipients defines addresses that the PG system is allowed to |
| 127 | # send mail to. this prevents subtle PG exploits. This should be set |
132 | # send mail to. this prevents subtle PG exploits. This should be set |
| 128 | # in course.conf to the addresses of professors of each course. Sending |
133 | # in course.conf to the addresses of professors of each course. Sending |
| 129 | # mail from the PG system (i.e. questionaires, essay questions) will |
134 | # mail from the PG system (i.e. questionaires, essay questions) will |
| 130 | # fail if this is not set somewhere (either here or in course.conf). |
135 | # fail if this is not set somewhere (either here or in course.conf). |
| 131 | #allowedRecipients => [ |
136 | #allowedRecipients => [ |
| 132 | # "yourname\@host.yourdomain.edu", |
137 | # 'prof1@host.yourdomain.edu', |
|
|
138 | # 'prof2@host.yourdomain.edu', |
| 133 | #], |
139 | #], |
|
|
140 | |
| 134 | # if defined, feedbackRecipients overrides the list of recipients for |
141 | # if defined, feedbackRecipients overrides the list of recipients for |
| 135 | # feedback email. It's appropriate to set this in the course.conf for |
142 | # feedback email. It's appropriate to set this in the course.conf for |
| 136 | # specific courses, but probably not in global.conf. if not defined, |
143 | # specific courses, but probably not in global.conf. if not defined, |
| 137 | # mail is sent to all professors and TAs for a given course |
144 | # mail is sent to all professors and TAs for a given course |
| 138 | #feedbackRecipients => [ |
145 | #feedbackRecipients => [ |
| 139 | # "prof1\@host.yourdomain.edu", |
146 | # 'prof1@host.yourdomain.edu', |
| 140 | # "prof2\@host.yourdomain.edu", |
147 | # 'prof2@host.yourdomain.edu', |
| 141 | #], |
148 | #], |
|
|
149 | |
| 142 | # feedbackVerbosity: |
150 | # feedbackVerbosity: |
| 143 | # 0: send only the feedback comment and context link |
151 | # 0: send only the feedback comment and context link |
| 144 | # 1: as in 0, plus user, set, problem, and PG data |
152 | # 1: as in 0, plus user, set, problem, and PG data |
| 145 | # 2: as in 1, plus the problem environment (debugging data) |
153 | # 2: as in 1, plus the problem environment (debugging data) |
| 146 | feedbackVerbosity => 1, |
154 | feedbackVerbosity => 1, |
|
|
155 | |
|
|
156 | # defines the size of the Mail Merge editor window |
|
|
157 | # FIXME: should this be here? it's UI, not mail |
|
|
158 | # FIXME: replace this with the auto-size method that TWiki uses |
| 147 | editor_window_rows => 15, |
159 | editor_window_rows => 15, |
| 148 | editor_window_columns => 100, |
160 | editor_window_columns => 100, |
| 149 | ); |
161 | ); |
| 150 | |
162 | |
| 151 | %externalPrograms = ( |
163 | %externalPrograms = ( |
| 152 | mkdir => "/bin/mkdir", |
164 | mkdir => "/bin/mkdir", |
| 153 | tth => "/usr/local/bin/tth", |
165 | tth => "/usr/local/bin/tth", |
| … | |
… | |
| 155 | latex => "/usr/local/bin/latex", |
167 | latex => "/usr/local/bin/latex", |
| 156 | dvipng => "/usr/local/bin/dvipng", |
168 | dvipng => "/usr/local/bin/dvipng", |
| 157 | gif2eps => "$webworkDirs{bin}/gif2eps", |
169 | gif2eps => "$webworkDirs{bin}/gif2eps", |
| 158 | png2eps => "$webworkDirs{bin}/png2eps", |
170 | png2eps => "$webworkDirs{bin}/png2eps", |
| 159 | gif2png => "$webworkDirs{bin}/gif2png", |
171 | gif2png => "$webworkDirs{bin}/gif2png", |
|
|
172 | mysql => "/usr/local/bin/mysql", |
|
|
173 | ); |
|
|
174 | |
|
|
175 | %siteDefaults = ( |
|
|
176 | status => { |
|
|
177 | audit => "Audit", |
|
|
178 | A => "Audit", |
|
|
179 | drop => "Drop", |
|
|
180 | D => "Drop", |
|
|
181 | withdraw => "Drop", |
|
|
182 | current => "Enrolled", |
|
|
183 | C => "Enrolled", |
|
|
184 | enrolled => "Enrolled", |
|
|
185 | }, |
| 160 | ); |
186 | ); |
| 161 | |
187 | |
| 162 | ################################################################################ |
188 | ################################################################################ |
| 163 | # Frontend options |
189 | # Frontend options |
| 164 | ################################################################################ |
190 | ################################################################################ |
| … | |
… | |
| 175 | # hash %dbLayouts. |
201 | # hash %dbLayouts. |
| 176 | include "conf/database.conf"; |
202 | include "conf/database.conf"; |
| 177 | |
203 | |
| 178 | # Select the default database layout. This can be overridden in the course.conf |
204 | # Select the default database layout. This can be overridden in the course.conf |
| 179 | # file of a particular course. |
205 | # file of a particular course. |
|
|
206 | #$dbLayoutName = "sql"; |
|
|
207 | $dbLayoutName = "gdbm"; |
|
|
208 | |
| 180 | *dbLayout = $dbLayouts{sql}; |
209 | *dbLayout = $dbLayouts{$dbLayoutName}; |
|
|
210 | |
|
|
211 | ################################################################################ |
|
|
212 | # Problem library options |
|
|
213 | ################################################################################ |
|
|
214 | |
|
|
215 | %problemLibrary = ( |
|
|
216 | root => "", # set to the top of the problem library, if its installed |
|
|
217 | sourceSQL => "ProblemLibrary", |
|
|
218 | userSQL => "webworkRead", |
|
|
219 | passwordSQL => "", |
|
|
220 | ); |
| 181 | |
221 | |
| 182 | ################################################################################ |
222 | ################################################################################ |
| 183 | # Authorization system |
223 | # Authorization system |
| 184 | ################################################################################ |
224 | ################################################################################ |
| 185 | |
225 | |
| … | |
… | |
| 198 | modify_student_data => $professor, |
238 | modify_student_data => $professor, |
| 199 | score_sets => $professor, |
239 | score_sets => $professor, |
| 200 | send_mail => $professor, |
240 | send_mail => $professor, |
| 201 | modify_classlist_files => $professor, |
241 | modify_classlist_files => $professor, |
| 202 | modify_set_def_files => $professor, |
242 | modify_set_def_files => $professor, |
|
|
243 | modify_scoring_files => $professor, |
|
|
244 | create_and_delete_courses => $professor, |
|
|
245 | fix_course_databases => $professor, |
| 203 | ); |
246 | ); |
| 204 | |
247 | |
| 205 | ################################################################################ |
248 | ################################################################################ |
| 206 | # Session options |
249 | # Session options |
| 207 | ################################################################################ |
250 | ################################################################################ |
| … | |
… | |
| 228 | ################################################################################ |
271 | ################################################################################ |
| 229 | # PG translation options |
272 | # PG translation options |
| 230 | ################################################################################ |
273 | ################################################################################ |
| 231 | |
274 | |
| 232 | %pg = ( |
275 | %pg = ( |
| 233 | # options for various renderers |
276 | # available display modes |
| 234 | renderers => { |
277 | displayModes => [ qw(plainText formattedText images jsMath asciimath) ], |
| 235 | "WeBWorK::PG::Remote" => { |
278 | # pg options |
| 236 | proxy => "http://localhost:21000/RenderD" |
|
|
| 237 | } |
|
|
| 238 | }, |
|
|
| 239 | # currently selected renderer |
|
|
| 240 | renderer => "WeBWorK::PG::Local", |
|
|
| 241 | #renderer => "WeBWorK::PG::Remote", |
|
|
| 242 | # directories used by PG |
|
|
| 243 | directories => { |
|
|
| 244 | # directories used only by PG |
|
|
| 245 | lib => "$pgRoot/lib", |
|
|
| 246 | macros => "$pgRoot/macros", |
|
|
| 247 | }, |
|
|
| 248 | options => { |
279 | options => { |
| 249 | # default translation options |
280 | # default translation options |
| 250 | displayMode => "images", |
281 | displayMode => "images", |
| 251 | showOldAnswers => 1, |
282 | showOldAnswers => 1, |
| 252 | showCorrectAnswers => 0, |
283 | showCorrectAnswers => 0, |
| … | |
… | |
| 254 | showSolutions => 0, |
285 | showSolutions => 0, |
| 255 | catchWarnings => 0, # there's a global warning catcher now |
286 | catchWarnings => 0, # there's a global warning catcher now |
| 256 | # default grader |
287 | # default grader |
| 257 | grader => "avg_problem_grader", |
288 | grader => "avg_problem_grader", |
| 258 | }, |
289 | }, |
|
|
290 | # options for various renderers |
|
|
291 | renderers => { |
|
|
292 | "WeBWorK::PG::Remote" => { |
|
|
293 | proxy => "http://localhost:21000/RenderD" |
|
|
294 | } |
|
|
295 | }, |
|
|
296 | # currently selected renderer |
|
|
297 | renderer => "WeBWorK::PG::Local", |
|
|
298 | #renderer => "WeBWorK::PG::Remote", |
|
|
299 | # directories used by PG |
|
|
300 | directories => { |
|
|
301 | # directories used only by PG |
|
|
302 | root => "$pgRoot", |
|
|
303 | lib => "$pgRoot/lib", |
|
|
304 | macros => "$pgRoot/macros", |
|
|
305 | }, |
| 259 | # this will be customized in the course.conf file |
306 | # this can be customized in the course.conf file |
| 260 | specialPGEnvironmentVars => { |
307 | specialPGEnvironmentVars => { |
| 261 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
308 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
| 262 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
309 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
| 263 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
310 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
| 264 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
311 | CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", |
| 265 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
312 | CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", |
|
|
313 | onTheFlyImageSize => 400, |
| 266 | }, |
314 | }, |
| 267 | # modules lists module names and the packages each contains |
315 | # modules lists module names and the packages each contains |
| 268 | modules => [ |
316 | modules => [ |
| 269 | [qw(DynaLoader)], |
317 | [qw(DynaLoader)], |
| 270 | [qw(Exporter)], |
318 | [qw(Exporter)], |
| … | |
… | |
| 306 | numAbsTolDefault => .001, |
354 | numAbsTolDefault => .001, |
| 307 | numFormatDefault => "", |
355 | numFormatDefault => "", |
| 308 | numRelPercentTolDefault => .1, |
356 | numRelPercentTolDefault => .1, |
| 309 | numZeroLevelDefault => 1E-14, |
357 | numZeroLevelDefault => 1E-14, |
| 310 | numZeroLevelTolDefault => 1E-12, |
358 | numZeroLevelTolDefault => 1E-12, |
|
|
359 | useBaseTenLog => 0, |
|
|
360 | defaultDisplayMatrixStyle => "[s]", |
| 311 | }, |
361 | }, |
| 312 | ); |
362 | ); |