| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 3 | # $Id: global.conf,v 1.4 2002-06-05 19:27:06 sh002i Exp $ |
3 | # $Id: global.conf,v 1.11 2002-06-07 23:35:54 malsyned Exp $ |
| 4 | ################################################################################ |
4 | ################################################################################ |
| 5 | |
5 | |
| 6 | # This file is used to set up the default WeBWorK course environment for all |
6 | # This file is used to set up the default WeBWorK course environment for all |
| 7 | # requests. Values may be overwritten by the course.conf for a specific course. |
7 | # requests. Values may be overwritten by the course.conf for a specific course. |
| 8 | # All package variables set in this file are added to the course environment. |
8 | # All package variables set in this file are added to the course environment. |
| … | |
… | |
| 14 | |
14 | |
| 15 | # this hash defines the locations of directories needed by WeBWorK |
15 | # this hash defines the locations of directories needed by WeBWorK |
| 16 | %webworkDirs = ( |
16 | %webworkDirs = ( |
| 17 | root => "$webworkRoot", |
17 | root => "$webworkRoot", |
| 18 | conf => "$webworkRoot/conf", |
18 | conf => "$webworkRoot/conf", |
| 19 | courses => "/ww/webwork/courses", # "$webworkRoot/courses", |
19 | courses => "$webworkRoot/courses", |
| 20 | lib => "$webworkRoot/lib", |
20 | lib => "$webworkRoot/lib", |
| 21 | ); |
21 | ); |
| 22 | |
22 | |
| 23 | # this hash defines the locations of files needed by WeBWorK |
23 | # this hash defines the locations of files needed by WeBWorK |
| 24 | %webworkFiles = ( |
24 | %webworkFiles = ( |
| … | |
… | |
| 47 | %dbInfo = ( |
47 | %dbInfo = ( |
| 48 | auth_type => "GDBM", |
48 | auth_type => "GDBM", |
| 49 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
49 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
| 50 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
50 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
| 51 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
51 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
| 52 | wwdb_type => "DGBM", |
52 | wwdb_type => "GDBM", |
| 53 | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", |
53 | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", |
| 54 | cldb_type => "GDBM", |
54 | cldb_type => "GDBM", |
| 55 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
55 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
| 56 | ); |
56 | ); |
| 57 | |
57 | |
|
|
58 | %templates = ( |
|
|
59 | system => "$webworkDirs{conf}/system.template", |
|
|
60 | ); |
|
|
61 | |
|
|
62 | my $url_base = "/webwork_files"; |
|
|
63 | |
|
|
64 | %urls = ( |
|
|
65 | base => $url_base, |
|
|
66 | logo => "$url_base/images/webwork_logo.gif", |
|
|
67 | ); |
|
|
68 | |
| 58 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
69 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
| 59 | $sessionKeyTimeout = 60*30; |
70 | $sessionKeyTimeout = 60*30; |
|
|
71 | |
|
|
72 | # Practice users are users who's names start with $practiceUser |
|
|
73 | # (you can comment this out to remove practice user support) |
|
|
74 | $practiceUserPrefix = "practice"; |
|
|
75 | |
|
|
76 | # There is a practice user who can be logged in multiple times. He's |
|
|
77 | # commented out by default, though, so you don't hurt yourself. It is |
|
|
78 | # kindof a backdoor to the practice user system, since he doesn't have a |
|
|
79 | # password. Come to think of it, why do we even have this?! |
|
|
80 | #$debugPracticeUser = "practice666"; |