| 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.81 2004/07/01 20:31:13 dpvc Exp $ |
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.82 2004/07/03 17:21:27 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. |
| … | |
… | |
| 216 | # $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; |
216 | # $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; |
| 217 | # |
217 | # |
| 218 | # would add two buttons, one for the Rochester library and one for the ASU |
218 | # would add two buttons, one for the Rochester library and one for the ASU |
| 219 | # library, provided templates/rochester and templates/asu exists. |
219 | # library, provided templates/rochester and templates/asu exists. |
| 220 | # |
220 | # |
| 221 | $courseFiles{problibs} = {}; |
221 | $courseFiles{problibs} = {}; |
| 222 | |
222 | |
| 223 | ################################################################################ |
223 | ################################################################################ |
| 224 | # Logs |
224 | # Logs |
| 225 | ################################################################################ |
225 | ################################################################################ |
| 226 | |
226 | |
| … | |
… | |
| 247 | # Mail settings |
247 | # Mail settings |
| 248 | ################################################################################ |
248 | ################################################################################ |
| 249 | |
249 | |
| 250 | # Mail sent by the PG system and the mail merge and feedback modules will be |
250 | # Mail sent by the PG system and the mail merge and feedback modules will be |
| 251 | # sent via this SMTP server. |
251 | # sent via this SMTP server. |
| 252 | $mail{smtpServer} = 'mail.yourschool.edu'; |
252 | $mail{smtpServer} = 'mail.yourschool.edu'; |
| 253 | |
253 | |
| 254 | # When connecting to the above server, WeBWorK will send this address in the |
254 | # When connecting to the above server, WeBWorK will send this address in the |
| 255 | # MAIL FROM command. This has nothing to do with the "From" address on the mail |
255 | # MAIL FROM command. This has nothing to do with the "From" address on the mail |
| 256 | # message. It can really be anything, but some mail servers require it contain |
256 | # message. It can really be anything, but some mail servers require it contain |
| 257 | # a valid mail domain, or at least be well-formed. |
257 | # a valid mail domain, or at least be well-formed. |
| 258 | $mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; |
258 | $mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; |
| 259 | |
259 | |
| 260 | # AllowedRecipients defines addresses that the PG system is allowed to send mail |
260 | # AllowedRecipients defines addresses that the PG system is allowed to send mail |
| 261 | # to. this prevents subtle PG exploits. This should be set in course.conf to the |
261 | # to. this prevents subtle PG exploits. This should be set in course.conf to the |
| 262 | # addresses of professors of each course. Sending mail from the PG system (i.e. |
262 | # addresses of professors of each course. Sending mail from the PG system (i.e. |
| 263 | # questionaires, essay questions) will fail if this is not set somewhere (either |
263 | # questionaires, essay questions) will fail if this is not set somewhere (either |
| 264 | # here or in course.conf). |
264 | # here or in course.conf). |
| 265 | $mail{allowedRecipients} = [ |
265 | $mail{allowedRecipients} = [ |
| 266 | #'prof1@yourserver.yourdomain.edu', |
266 | #'prof1@yourserver.yourdomain.edu', |
| 267 | #'prof2@yourserver.yourdomain.edu', |
267 | #'prof2@yourserver.yourdomain.edu', |
| 268 | ]; |
268 | ]; |
| 269 | |
269 | |
| 270 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
270 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
| 271 | # email. It's appropriate to set this in the course.conf for specific courses, |
271 | # email. It's appropriate to set this in the course.conf for specific courses, |
| 272 | # but probably not in global.conf. if not defined, mail is sent to all |
272 | # but probably not in global.conf. if not defined, mail is sent to all |
| 273 | # professors and TAs for a given course |
273 | # professors and TAs for a given course |
| 274 | $mail{feedbackRecipients} = [ |
274 | $mail{feedbackRecipients} = [ |
| 275 | #'prof1@yourserver.yourdomain.edu', |
275 | #'prof1@yourserver.yourdomain.edu', |
| 276 | #'prof2@yourserver.yourdomain.edu', |
276 | #'prof2@yourserver.yourdomain.edu', |
| 277 | ]; |
277 | ]; |
| 278 | |
278 | |
| 279 | # feedbackVerbosity: |
279 | # feedbackVerbosity: |
| 280 | # 0: send only the feedback comment and context link |
280 | # 0: send only the feedback comment and context link |
| 281 | # 1: as in 0, plus user, set, problem, and PG data |
281 | # 1: as in 0, plus user, set, problem, and PG data |
| 282 | # 2: as in 1, plus the problem environment (debugging data) |
282 | # 2: as in 1, plus the problem environment (debugging data) |
| 283 | $mail{feedbackVerbosity} = 1; |
283 | $mail{feedbackVerbosity} = 1; |
| 284 | |
284 | |
| 285 | # Defines the size of the Mail Merge editor window |
285 | # Defines the size of the Mail Merge editor window |
| 286 | # FIXME: should this be here? it's UI, not mail |
286 | # FIXME: should this be here? it's UI, not mail |
| 287 | # FIXME: replace this with the auto-size method that TWiki uses |
287 | # FIXME: replace this with the auto-size method that TWiki uses |
| 288 | $mail{editor_window_rows} = 15; |
288 | $mail{editor_window_rows} = 15; |
| … | |
… | |
| 344 | # However, the recommended database layout for new courses is "sql". This can |
344 | # However, the recommended database layout for new courses is "sql". This can |
| 345 | # be set when creating a course. |
345 | # be set when creating a course. |
| 346 | $dbLayoutName = "sql"; # or: "gdbm" |
346 | $dbLayoutName = "sql"; # or: "gdbm" |
| 347 | |
347 | |
| 348 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
348 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
| 349 | *dbLayout = $dbLayouts{$dbLayoutName}; |
349 | *dbLayout = $dbLayouts{$dbLayoutName}; |
| 350 | |
350 | |
| 351 | ################################################################################ |
351 | ################################################################################ |
| 352 | # Problem library options |
352 | # Problem library options |
| 353 | ################################################################################ |
353 | ################################################################################ |
| 354 | |
354 | |
| … | |
… | |
| 358 | |
358 | |
| 359 | # The name of the SQL database containing problem metadata |
359 | # The name of the SQL database containing problem metadata |
| 360 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
360 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
| 361 | |
361 | |
| 362 | # The user name to use when connecting to the problem library database |
362 | # The user name to use when connecting to the problem library database |
| 363 | $problemLibrary{userSQL} = "webworkRead"; |
363 | $problemLibrary{userSQL} = "webworkRead"; |
| 364 | |
364 | |
| 365 | # The password to use when connecting to the problem library database |
365 | # The password to use when connecting to the problem library database |
| 366 | $problemLibrary{passwordSQL} = ""; |
366 | $problemLibrary{passwordSQL} = ""; |
| 367 | |
367 | |
| 368 | ################################################################################ |
368 | ################################################################################ |
| … | |
… | |
| 372 | # This lets you specify a minimum permission level needed to perform certain |
372 | # This lets you specify a minimum permission level needed to perform certain |
| 373 | # actions. In the current system, >=10 will allow a professor to perform the |
373 | # actions. In the current system, >=10 will allow a professor to perform the |
| 374 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
374 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
| 375 | # action (almost never what you want). |
375 | # action (almost never what you want). |
| 376 | |
376 | |
| 377 | my $student = 0; |
377 | my $student = 0; |
| 378 | my $ta = 5; |
378 | my $ta = 5; |
| 379 | my $professor = 10; |
379 | my $professor = 10; |
| 380 | |
380 | |
| 381 | %permissionLevels = ( |
381 | %permissionLevels = ( |
| 382 | report_bugs => $student, |
382 | report_bugs => $student, |
| 383 | view_multiple_sets => $ta, |
383 | view_multiple_sets => $ta, |