| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 4 | # $Id: global.conf.dist,v 1.21 2003-06-05 20:48:39 sh002i Exp $ |
4 | # $Id: global.conf.dist,v 1.23 2003-06-06 23:52:13 malsyned Exp $ |
| 5 | ################################################################################ |
5 | ################################################################################ |
| 6 | |
6 | |
| 7 | # This file is used to set up the default WeBWorK course environment for all |
7 | # This file is used to set up the default WeBWorK course environment for all |
| 8 | # requests. Values may be overwritten by the course.conf for a specific course. |
8 | # requests. Values may be overwritten by the course.conf for a specific course. |
| 9 | # All package variables set in this file are added to the course environment. |
9 | # All package variables set in this file are added to the course environment. |
| 10 | # If you wish to set a variable here but omit it from the course environment, |
10 | # If you wish to set a variable here but omit it from the course environment, |
| 11 | # use the "my" keyword. The following variables are available to this file: |
11 | # use the "my" keyword. The following variables are available to this file: |
| 12 | # |
12 | # |
| 13 | # $webworkRoot directory that contains the WeBWorK distribution |
13 | # $webworkRoot directory that contains the WeBWorK distribution |
| 14 | # $webworkURL base URL handled by Apache::WeBWorK |
14 | # $webworkURL base URL handled by Apache::WeBWorK |
|
|
15 | # $pgRoot directory that contains the PG distribution |
| 15 | # $courseName name of the course being used |
16 | # $courseName name of the course being used |
| 16 | |
17 | |
| 17 | ################################################################################ |
18 | ################################################################################ |
| 18 | # WeBWorK settings |
19 | # WeBWorK settings |
| 19 | ################################################################################ |
20 | ################################################################################ |
| … | |
… | |
| 23 | bin => "$webworkRoot/bin", |
24 | bin => "$webworkRoot/bin", |
| 24 | conf => "$webworkRoot/conf", |
25 | conf => "$webworkRoot/conf", |
| 25 | courses => "$webworkRoot/courses", |
26 | courses => "$webworkRoot/courses", |
| 26 | lib => "$webworkRoot/lib", |
27 | lib => "$webworkRoot/lib", |
| 27 | logs => "$webworkRoot/logs", |
28 | logs => "$webworkRoot/logs", |
| 28 | macros => "$webworkRoot/macros", |
29 | macros => "$pgRoot/macros", |
| 29 | tmp => "$webworkRoot/tmp", |
30 | tmp => "$webworkRoot/tmp", |
| 30 | ); |
31 | ); |
| 31 | |
32 | |
| 32 | %webworkFiles = ( |
33 | %webworkFiles = ( |
| 33 | environment => "$webworkDirs{conf}/global.conf", |
34 | environment => "$webworkDirs{conf}/global.conf", |
| … | |
… | |
| 221 | driver => "WeBWorK::DB::Driver::GDBM", |
222 | driver => "WeBWorK::DB::Driver::GDBM", |
| 222 | source => "$courseDirs{DATA}/$courseName\_webwork_DB", |
223 | source => "$courseDirs{DATA}/$courseName\_webwork_DB", |
| 223 | params => { psvnLength => 5 }, |
224 | params => { psvnLength => 5 }, |
| 224 | }, |
225 | }, |
| 225 | ); |
226 | ); |
|
|
227 | |
|
|
228 | # If you are using the GlobalTableEmulator, you need these to be set to |
|
|
229 | # a user that will exist. Professors will probably want to override this |
|
|
230 | # in their course's course.conf |
|
|
231 | $dbLayout{set}->{params}->{globalUserID} = "professor"; |
|
|
232 | $dbLayout{problem}->{params}->{globalUserID} = "professor"; |
|
|
233 | |
| 226 | |
234 | |
| 227 | # This lets you specify a minimum permission level needed to perform |
235 | # This lets you specify a minimum permission level needed to perform |
| 228 | # certain actions. In the current system, >=10 will allow a professor |
236 | # certain actions. In the current system, >=10 will allow a professor |
| 229 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
237 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
| 230 | # student to perform an action (almost never what you want). |
238 | # student to perform an action (almost never what you want). |