| 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.19 2003-06-04 23:47:33 malsyned Exp $ |
4 | # $Id: global.conf.dist,v 1.20 2003-06-05 11:48:23 gage 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. |
| … | |
… | |
| 28 | macros => "$webworkRoot/macros", |
28 | macros => "$webworkRoot/macros", |
| 29 | tmp => "$webworkRoot/tmp", |
29 | tmp => "$webworkRoot/tmp", |
| 30 | ); |
30 | ); |
| 31 | |
31 | |
| 32 | %webworkFiles = ( |
32 | %webworkFiles = ( |
| 33 | environment => "$webworkDirs{conf}/global.conf", |
33 | environment => "$webworkDirs{conf}/global.conf", |
| 34 | hardcopySnippets => { |
34 | hardcopySnippets => { |
| 35 | preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", |
35 | preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", |
| 36 | setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", |
36 | setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", |
| 37 | problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", |
37 | problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", |
| 38 | setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", |
38 | setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", |
| 39 | setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", |
39 | setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", |
| … | |
… | |
| 41 | }, |
41 | }, |
| 42 | screenSnippets => { |
42 | screenSnippets => { |
| 43 | setHeader => "$webworkDirs{conf}/screenSetHeader.pg", |
43 | setHeader => "$webworkDirs{conf}/screenSetHeader.pg", |
| 44 | }, |
44 | }, |
| 45 | logs => { |
45 | logs => { |
| 46 | timing => "$webworkDirs{logs}/timing.log", |
46 | timing => "$webworkDirs{logs}/timing.log", |
|
|
47 | transaction => "$courseDirs{logs}/transaction.log", |
|
|
48 | pastAnswerList => "$courseDirs{logs}/past_answers.log", |
| 47 | }, |
49 | }, |
| 48 | ); |
50 | ); |
| 49 | |
51 | |
| 50 | %webworkURLs = ( |
52 | %webworkURLs = ( |
| 51 | root => "$webworkURLRoot", |
53 | root => "$webworkURLRoot", |
| 52 | home => "http://host.yourdomaon.edu/webwork-info", |
54 | home => "/webwork2_files/index.html", |
| 53 | htdocs => "/webwork_files", |
55 | htdocs => "/webwork2_files", |
| 54 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
56 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
| 55 | oldProf => "/webwork-old/profLogin.pl", |
57 | oldProf => "/webwork-old/profLogin.pl", |
| 56 | ); |
58 | ); |
| 57 | |
59 | |
| 58 | ################################################################################ |
60 | ################################################################################ |
| … | |
… | |
| 77 | environment => "$courseDirs{root}/course.conf", |
79 | environment => "$courseDirs{root}/course.conf", |
| 78 | motd => "$courseDirs{root}/motd.txt", |
80 | motd => "$courseDirs{root}/motd.txt", |
| 79 | ); |
81 | ); |
| 80 | |
82 | |
| 81 | # quick hack to fix transaction logging. blah. |
83 | # quick hack to fix transaction logging. blah. |
| 82 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
84 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
85 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| 83 | |
86 | |
| 84 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
87 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
| 85 | %courseURLs = ( |
88 | %courseURLs = ( |
| 86 | root => "$courseURLRoot", |
89 | root => "$courseURLRoot", |
| 87 | html => "$courseURLRoot", |
90 | html => "$courseURLRoot", |
| … | |
… | |
| 138 | ); |
141 | ); |
| 139 | |
142 | |
| 140 | ################################################################################ |
143 | ################################################################################ |
| 141 | # Database and session |
144 | # Database and session |
| 142 | ################################################################################ |
145 | ################################################################################ |
|
|
146 | # temporary values needed for using both GDBM databases. |
|
|
147 | # Use auser name for which all problems have been built, and none have |
|
|
148 | # been specifically reassigned. |
|
|
149 | #FIXME !!!! what hack!!!!!! |
| 143 | |
150 | |
|
|
151 | $dbLayout{set}->{params}->{globalUserID} = "practice1"; |
|
|
152 | $dbLayout{problem}->{params}->{globalUserID} = "practice1"; |
|
|
153 | |
| 144 | # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system |
154 | # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system |
| 145 | # {auth,wwdb,cldb}_type = database type: GDBM currently implemented |
155 | # {auth,wwdb,cldb}_type = database type: GDBM currently implemented |
| 146 | # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file |
156 | # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file |
| 147 | %dbInfo = ( |
157 | %dbInfo = ( |
| 148 | auth_type => "GDBM", |
158 | auth_type => "GDBM", |
| … | |
… | |
| 188 | driver => "WeBWorK::DB::Driver::GDBM", |
198 | driver => "WeBWorK::DB::Driver::GDBM", |
| 189 | source => "$courseDirs{DATA}/$courseName\_classlist_DB", |
199 | source => "$courseDirs{DATA}/$courseName\_classlist_DB", |
| 190 | }, |
200 | }, |
| 191 | set => { |
201 | set => { |
| 192 | record => "WeBWorK::DB::Record::Set", |
202 | record => "WeBWorK::DB::Record::Set", |
| 193 | schema => "WeBWorK::DB::Schema::Null", |
203 | schema => "WeBWorK::DB::Schema::GlobalTableEmulator", |
| 194 | driver => "WeBWorK::DB::Driver::Null", |
204 | driver => "WeBWorK::DB::Driver::Null", |
| 195 | source => undef, |
205 | source => undef, |
| 196 | }, |
206 | }, |
| 197 | set_user => { |
207 | set_user => { |
| 198 | record => "WeBWorK::DB::Record::UserSet", |
208 | record => "WeBWorK::DB::Record::UserSet", |
| … | |
… | |
| 201 | source => "$courseDirs{DATA}/$courseName\_webwork_DB", |
211 | source => "$courseDirs{DATA}/$courseName\_webwork_DB", |
| 202 | params => { psvnLength => 5 }, |
212 | params => { psvnLength => 5 }, |
| 203 | }, |
213 | }, |
| 204 | problem => { |
214 | problem => { |
| 205 | record => "WeBWorK::DB::Record::Problem", |
215 | record => "WeBWorK::DB::Record::Problem", |
| 206 | schema => "WeBWorK::DB::Schema::Null", |
216 | schema => "WeBWorK::DB::Schema::GlobalTableEmulator", |
| 207 | driver => "WeBWorK::DB::Driver::Null", |
217 | driver => "WeBWorK::DB::Driver::Null", |
| 208 | source => undef, |
218 | source => undef, |
| 209 | }, |
219 | }, |
| 210 | problem_user => { |
220 | problem_user => { |
| 211 | record => "WeBWorK::DB::Record::UserProblem", |
221 | record => "WeBWorK::DB::Record::UserProblem", |
| … | |
… | |
| 218 | |
228 | |
| 219 | # This lets you specify a minimum permission level needed to perform |
229 | # This lets you specify a minimum permission level needed to perform |
| 220 | # certain actions. In the current system, >=10 will allow a professor |
230 | # certain actions. In the current system, >=10 will allow a professor |
| 221 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
231 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
| 222 | # student to perform an action (almost never what you want). |
232 | # student to perform an action (almost never what you want). |
|
|
233 | my $ta = 5; |
|
|
234 | my $professor = 10; |
| 223 | %permissionLevels = ( |
235 | %permissionLevels = ( |
| 224 | "become_student" => 10, |
236 | "become_student" => 10, |
| 225 | "access_instructor_tools" => $ta, |
237 | "access_instructor_tools" => $ta, |
| 226 | "create_and_delete_problem_sets" => $professor, |
238 | "create_and_delete_problem_sets" => $professor, |
| 227 | "modify_problem_sets" => $professor, |
239 | "modify_problem_sets" => $professor, |