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