| 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$ |
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.49 2004/02/12 14:32:48 gage 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. |
| … | |
… | |
| 95 | email => "$courseRoot/templates/email", |
95 | email => "$courseRoot/templates/email", |
| 96 | ); |
96 | ); |
| 97 | |
97 | |
| 98 | %courseFiles = ( |
98 | %courseFiles = ( |
| 99 | environment => "$courseDirs{root}/course.conf", |
99 | environment => "$courseDirs{root}/course.conf", |
| 100 | motd => "$courseDirs{root}/motd.txt", |
100 | motd => "$courseDirs{templates}/motd.txt", |
| 101 | logs => { |
101 | logs => { |
| 102 | answer_log => "$courseDirs{logs}/answer_log", |
102 | answer_log => "$courseDirs{logs}/answer_log", |
| 103 | }, |
103 | }, |
| 104 | course_info => "$courseDirs{root}/course_info.txt", |
104 | course_info => "course_info.txt", # path relative to templates directory |
| 105 | login_info => "$courseDirs{root}/login_info.txt", |
105 | login_info => "login_info.txt", # path relative to templates directory |
| 106 | ); |
106 | ); |
| 107 | |
107 | |
| 108 | # quick hack to fix transaction logging. blah. |
108 | # quick hack to fix transaction logging. blah. |
| 109 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
109 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 110 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
110 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| … | |
… | |
| 127 | # send mail to. this prevents subtle PG exploits. This should be set |
127 | # 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 |
128 | # in course.conf to the addresses of professors of each course. Sending |
| 129 | # mail from the PG system (i.e. questionaires, essay questions) will |
129 | # 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). |
130 | # fail if this is not set somewhere (either here or in course.conf). |
| 131 | #allowedRecipients => [ |
131 | #allowedRecipients => [ |
| 132 | # "yourname\@host.yourdomain.edu", |
132 | # 'yourname@host.yourdomain.edu', |
| 133 | #], |
133 | #], |
| 134 | # if defined, feedbackRecipients overrides the list of recipients for |
134 | # if defined, feedbackRecipients overrides the list of recipients for |
| 135 | # feedback email. It's appropriate to set this in the course.conf for |
135 | # 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, |
136 | # specific courses, but probably not in global.conf. if not defined, |
| 137 | # mail is sent to all professors and TAs for a given course |
137 | # mail is sent to all professors and TAs for a given course |
| 138 | #feedbackRecipients => [ |
138 | #feedbackRecipients => [ |
| 139 | # "prof1\@host.yourdomain.edu", |
139 | # 'prof1@host.yourdomain.edu', |
| 140 | # "prof2\@host.yourdomain.edu", |
140 | # 'prof2@host.yourdomain.edu', |
| 141 | #], |
141 | #], |
| 142 | # feedbackVerbosity: |
142 | # feedbackVerbosity: |
| 143 | # 0: send only the feedback comment and context link |
143 | # 0: send only the feedback comment and context link |
| 144 | # 1: as in 0, plus user, set, problem, and PG data |
144 | # 1: as in 0, plus user, set, problem, and PG data |
| 145 | # 2: as in 1, plus the problem environment (debugging data) |
145 | # 2: as in 1, plus the problem environment (debugging data) |
| … | |
… | |
| 151 | %externalPrograms = ( |
151 | %externalPrograms = ( |
| 152 | mkdir => "/bin/mkdir", |
152 | mkdir => "/bin/mkdir", |
| 153 | tth => "/usr/local/bin/tth", |
153 | tth => "/usr/local/bin/tth", |
| 154 | pdflatex => "/usr/local/bin/pdflatex", |
154 | pdflatex => "/usr/local/bin/pdflatex", |
| 155 | latex => "/usr/local/bin/latex", |
155 | latex => "/usr/local/bin/latex", |
| 156 | #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
|
|
| 157 | dvipng => "/usr/local/bin/dvipng", |
156 | dvipng => "/usr/local/bin/dvipng", |
| 158 | gif2eps => "$webworkDirs{bin}/gif2eps", |
157 | gif2eps => "$webworkDirs{bin}/gif2eps", |
| 159 | png2eps => "$webworkDirs{bin}/png2eps", |
158 | png2eps => "$webworkDirs{bin}/png2eps", |
| 160 | gif2png => "$webworkDirs{bin}/gif2png", |
159 | gif2png => "$webworkDirs{bin}/gif2png", |
| 161 | ); |
160 | ); |
| … | |
… | |
| 170 | |
169 | |
| 171 | ################################################################################ |
170 | ################################################################################ |
| 172 | # Database options |
171 | # Database options |
| 173 | ################################################################################ |
172 | ################################################################################ |
| 174 | |
173 | |
| 175 | # Several database layouts are defined in separate environment files. Select the |
174 | # Several database are defined in the file conf/database.conf and stored in the |
| 176 | # one which should be used by all courses by default, and include it. This can |
175 | # hash %dbLayouts. |
| 177 | # be overridden by including a difference environment file in the course.conf of |
|
|
| 178 | # a particular course. |
|
|
| 179 | |
|
|
| 180 | # Include sql.conf to specify a database layout for use with an SQL server. |
|
|
| 181 | #include "conf/sql.conf"; |
|
|
| 182 | |
|
|
| 183 | # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM |
|
|
| 184 | # databases. Use this layout if you wish to share courses between WeBWorK 1.x |
|
|
| 185 | # and WeBWorK 2. |
|
|
| 186 | include "conf/gdbm.conf"; |
176 | include "conf/database.conf"; |
| 187 | |
177 | |
| 188 | # Please read the documentation in the file that you chose to include, as there |
178 | # Select the default database layout. This can be overridden in the course.conf |
| 189 | # are layout-specific options that must be configured. |
179 | # file of a particular course. |
|
|
180 | #*dbLayout = $dbLayouts{sql}; |
|
|
181 | *dbLayout = $dbLayouts{gdbm}; |
| 190 | |
182 | |
| 191 | ################################################################################ |
183 | ################################################################################ |
| 192 | # Authorization system |
184 | # Authorization system |
| 193 | ################################################################################ |
185 | ################################################################################ |
| 194 | |
186 | |
| … | |
… | |
| 265 | # default grader |
257 | # default grader |
| 266 | grader => "avg_problem_grader", |
258 | grader => "avg_problem_grader", |
| 267 | }, |
259 | }, |
| 268 | # this will be customized in the course.conf file |
260 | # this will be customized in the course.conf file |
| 269 | specialPGEnvironmentVars => { |
261 | specialPGEnvironmentVars => { |
| 270 | PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ], |
262 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
| 271 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
263 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
| 272 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
264 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
| 273 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
265 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
| 274 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
266 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
| 275 | }, |
267 | }, |