| 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.13 2003-02-21 21:16:47 sh002i Exp $ |
4 | # $Id: global.conf.dist,v 1.14 2003-03-06 19:12:37 sh002i 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. |
| … | |
… | |
| 136 | |
136 | |
| 137 | %templates = ( |
137 | %templates = ( |
| 138 | system => "$webworkDirs{conf}/barebones.template", |
138 | system => "$webworkDirs{conf}/barebones.template", |
| 139 | ); |
139 | ); |
| 140 | |
140 | |
| 141 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
|
|
| 142 | $sessionKeyTimeout = 60*30; |
|
|
| 143 | |
|
|
| 144 | # Practice users are users who's names start with $practiceUser |
|
|
| 145 | # (you can comment this out to remove practice user support) |
|
|
| 146 | $practiceUserPrefix = "practice"; |
|
|
| 147 | |
|
|
| 148 | # There is a practice user who can be logged in multiple times. He's |
|
|
| 149 | # commented out by default, though, so you don't hurt yourself. It is |
|
|
| 150 | # kindof a backdoor to the practice user system, since he doesn't have a |
|
|
| 151 | # password. Come to think of it, why do we even have this?! |
|
|
| 152 | #$debugPracticeUser = "practice666"; |
|
|
| 153 | |
|
|
| 154 | ################################################################################ |
141 | ################################################################################ |
| 155 | # Database and session |
142 | # Database and session |
| 156 | ################################################################################ |
143 | ################################################################################ |
| 157 | |
144 | |
|
|
145 | # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system |
|
|
146 | # {auth,wwdb,cldb}_type = database type: GDBM currently implemented |
|
|
147 | # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file |
| 158 | %dbInfo = ( |
148 | %dbInfo = ( |
| 159 | auth_type => "GDBM", |
149 | auth_type => "GDBM", |
| 160 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
150 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
| 161 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
151 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
| 162 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
152 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
| … | |
… | |
| 165 | cldb_type => "GDBM", |
155 | cldb_type => "GDBM", |
| 166 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
156 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
| 167 | psvn_digits => 5, |
157 | psvn_digits => 5, |
| 168 | ); |
158 | ); |
| 169 | |
159 | |
|
|
160 | # dbLayout records the schema and source for each table in the "new" DB.pm |
|
|
161 | # database system. consult DB.pm for the authoritative list of tables. |
|
|
162 | # schema = perl module to use for access to the table |
|
|
163 | # driver = perl module to use for access to the data source |
|
|
164 | # source = location of data source (i.e. path, url, DBI spec) |
|
|
165 | # note: schema and driver must have the same interface. |
|
|
166 | %dbLayout = ( |
|
|
167 | password => { |
|
|
168 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
169 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
170 | source => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
|
|
171 | }, |
|
|
172 | permission => { |
|
|
173 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
174 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
175 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
|
|
176 | }, |
|
|
177 | user => { |
|
|
178 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
179 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
180 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
181 | }, |
|
|
182 | set => { |
|
|
183 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
184 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
185 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
186 | }, |
|
|
187 | set_user => { |
|
|
188 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
189 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
190 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
191 | }, |
|
|
192 | problem => { |
|
|
193 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
194 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
195 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
196 | }, |
|
|
197 | problem_user => { |
|
|
198 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
199 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
200 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
201 | }, |
|
|
202 | ); |
|
|
203 | |
| 170 | # This lets you specify a minimum permission level needed to perform |
204 | # This lets you specify a minimum permission level needed to perform |
| 171 | # certain actions. In the current system, >=10 will allow a professor |
205 | # certain actions. In the current system, >=10 will allow a professor |
| 172 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
206 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
| 173 | # student to perform an action (almost never what you want). |
207 | # student to perform an action (almost never what you want). |
| 174 | %permissionLevels = ( |
208 | %permissionLevels = ( |
| 175 | "become_student" => 10, |
209 | "become_student" => 10, |
| 176 | ); |
210 | ); |
|
|
211 | |
|
|
212 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
|
|
213 | $sessionKeyTimeout = 60*30; |
|
|
214 | |
|
|
215 | # Practice users are users who's names start with $practiceUser |
|
|
216 | # (you can comment this out to remove practice user support) |
|
|
217 | $practiceUserPrefix = "practice"; |
|
|
218 | |
|
|
219 | # There is a practice user who can be logged in multiple times. He's |
|
|
220 | # commented out by default, though, so you don't hurt yourself. It is |
|
|
221 | # kindof a backdoor to the practice user system, since he doesn't have a |
|
|
222 | # password. Come to think of it, why do we even have this?! |
|
|
223 | #$debugPracticeUser = "practice666"; |
| 177 | |
224 | |
| 178 | ################################################################################ |
225 | ################################################################################ |
| 179 | # PG translation options |
226 | # PG translation options |
| 180 | ################################################################################ |
227 | ################################################################################ |
| 181 | |
228 | |