[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1017 - (view) (download)

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : malsyned 1017 # $Id: global.conf.dist,v 1.19 2003-06-04 23:47:33 malsyned Exp $
5 : sh002i 654 ################################################################################
6 :    
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.
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,
11 :     # use the "my" keyword. The following variables are available to this file:
12 :     #
13 :     # $webworkRoot directory that contains the WeBWorK distribution
14 : sh002i 695 # $webworkURL base URL handled by Apache::WeBWorK
15 : sh002i 654 # $courseName name of the course being used
16 :    
17 :     ################################################################################
18 : sh002i 663 # WeBWorK settings
19 :     ################################################################################
20 : sh002i 654
21 :     %webworkDirs = (
22 :     root => "$webworkRoot",
23 :     bin => "$webworkRoot/bin",
24 :     conf => "$webworkRoot/conf",
25 : sh002i 655 courses => "$webworkRoot/courses",
26 : sh002i 654 lib => "$webworkRoot/lib",
27 :     logs => "$webworkRoot/logs",
28 :     macros => "$webworkRoot/macros",
29 :     tmp => "$webworkRoot/tmp",
30 :     );
31 :    
32 :     %webworkFiles = (
33 :     environment => "$webworkDirs{conf}/global.conf",
34 :     hardcopySnippets => {
35 :     preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
36 :     setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
37 :     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
38 :     setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
39 :     setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
40 :     postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
41 :     },
42 :     screenSnippets => {
43 :     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
44 :     },
45 :     logs => {
46 :     timing => "$webworkDirs{logs}/timing.log",
47 :     },
48 :     );
49 :    
50 :     %webworkURLs = (
51 : malsyned 670 root => "$webworkURLRoot",
52 : sh002i 705 home => "http://host.yourdomaon.edu/webwork-info",
53 : malsyned 670 htdocs => "/webwork_files",
54 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 :     oldProf => "/webwork-old/profLogin.pl",
56 : sh002i 654 );
57 :    
58 : sh002i 663 ################################################################################
59 :     # Default course-specific settings
60 :     ################################################################################
61 :    
62 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
63 :     %courseDirs = (
64 :     root => "$courseRoot",
65 :     DATA => "$courseRoot/DATA",
66 :     auth_DATA => "$courseRoot/DATA/.auth",
67 :     html => "$courseRoot/html",
68 :     html_images => "$courseRoot/html/images",
69 :     html_temp => "$courseRoot/html/tmp",
70 :     logs => "$courseRoot/logs",
71 :     scoring => "$courseRoot/scoring",
72 :     templates => "$courseRoot/templates",
73 :     macros => "$courseRoot/templates/macros",
74 :     );
75 :    
76 :     %courseFiles = (
77 :     environment => "$courseDirs{root}/course.conf",
78 : sh002i 701 motd => "$courseDirs{root}/motd.txt",
79 : sh002i 663 );
80 :    
81 : sh002i 705 # quick hack to fix transaction logging. blah.
82 :     $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
83 :    
84 : sh002i 663 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
85 : sh002i 654 %courseURLs = (
86 : sh002i 699 root => "$courseURLRoot",
87 : sh002i 654 html => "$courseURLRoot",
88 :     html_temp => "$courseURLRoot/tmp",
89 :     );
90 :    
91 :     ################################################################################
92 : sh002i 663 # Other site-specific options
93 :     ################################################################################
94 : sh002i 654
95 : sh002i 663 %mail = (
96 :     smtpServer => "mail.math.rochester.edu",
97 :     smtpSender => "webwork\@math.rochester.edu",
98 : sh002i 705 # allowedRecipients defines addresses that the PG system is allowed to
99 :     # send mail to. this prevents subtle PG exploits. This should be set
100 :     # in course.conf to the addresses of professors of each course. Sending
101 :     # mail from the PG system (i.e. questionaires, essay questions) will
102 :     # fail if this is not set somewhere (either here or in course.conf).
103 : sh002i 706 #allowedRecipients => [
104 :     # "yourname\@host.yourdomain.edu",
105 :     #],
106 : sh002i 705 # if defined, feedbackRecipients overrides the list of recipients for
107 :     # feedback email. It's appropriate to set this in the course.conf for
108 :     # specific courses, but probably not in global.conf. if not defined,
109 :     # mail is sent to all professors and TAs for a given course
110 :     #feedbackRecipients => [
111 :     # "prof1\@host.yourdomain.edu",
112 :     # "prof2\@host.yourdomain.edu",
113 :     #],
114 : sh002i 740 # feedbackVerbosity:
115 :     # 0: send only the feedback comment and context link
116 :     # 1: as in 0, plus user, set, problem, and PG data
117 :     # 2: as in 1, plus the problem environment (debugging data)
118 :     feedbackVerbosity => 1,
119 : sh002i 654 );
120 :    
121 : sh002i 663 %externalPrograms = (
122 : sh002i 737 mkdir => "/bin/mkdir",
123 : sh002i 663 tth => "/usr/local/bin/tth",
124 :     pdflatex => "/usr/local/bin/pdflatex",
125 :     latex => "/usr/local/bin/latex",
126 :     dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
127 :     gif2eps => "$webworkDirs{bin}/gif2eps",
128 :     png2eps => "$webworkDirs{bin}/png2eps",
129 :     gif2png => "$webworkDirs{bin}/gif2png",
130 :     );
131 :    
132 :     ################################################################################
133 :     # Frontend options
134 :     ################################################################################
135 :    
136 : sh002i 654 %templates = (
137 :     system => "$webworkDirs{conf}/barebones.template",
138 :     );
139 :    
140 : sh002i 663 ################################################################################
141 :     # Database and session
142 :     ################################################################################
143 :    
144 : sh002i 768 # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system
145 :     # {auth,wwdb,cldb}_type = database type: GDBM currently implemented
146 :     # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file
147 : sh002i 663 %dbInfo = (
148 :     auth_type => "GDBM",
149 :     auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
150 :     auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
151 :     auth_keys_file => "$courseDirs{auth_DATA}/keys",
152 :     wwdb_type => "GDBM",
153 :     wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
154 :     cldb_type => "GDBM",
155 :     cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
156 :     psvn_digits => 5,
157 :     );
158 :    
159 : sh002i 768 # dbLayout records the schema and source for each table in the "new" DB.pm
160 :     # database system. consult DB.pm for the authoritative list of tables.
161 :     # schema = perl module to use for access to the table
162 :     # driver = perl module to use for access to the data source
163 :     # source = location of data source (i.e. path, url, DBI spec)
164 : sh002i 808 # params = extra information needed by the schema (optional)
165 : sh002i 768 # note: schema and driver must have the same interface.
166 :     %dbLayout = (
167 :     password => {
168 : sh002i 798 record => "WeBWorK::DB::Record::Password",
169 :     schema => "WeBWorK::DB::Schema::Auth1Hash",
170 : sh002i 768 driver => "WeBWorK::DB::Driver::GDBM",
171 :     source => "$courseDirs{auth_DATA}/$courseName\_password_DB",
172 :     },
173 :     permission => {
174 : sh002i 798 record => "WeBWorK::DB::Record::PermissionLevel",
175 :     schema => "WeBWorK::DB::Schema::Auth1Hash",
176 : sh002i 768 driver => "WeBWorK::DB::Driver::GDBM",
177 : sh002i 798 source => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
178 : sh002i 768 },
179 : sh002i 774 key => {
180 : sh002i 798 record => "WeBWorK::DB::Record::Key",
181 :     schema => "WeBWorK::DB::Schema::Auth1Hash",
182 : sh002i 768 driver => "WeBWorK::DB::Driver::GDBM",
183 : sh002i 798 source => "$courseDirs{auth_DATA}/keys",
184 : sh002i 768 },
185 : sh002i 774 user => {
186 : sh002i 798 record => "WeBWorK::DB::Record::User",
187 :     schema => "WeBWorK::DB::Schema::Classlist1Hash",
188 : sh002i 774 driver => "WeBWorK::DB::Driver::GDBM",
189 : sh002i 798 source => "$courseDirs{DATA}/$courseName\_classlist_DB",
190 : sh002i 774 },
191 : sh002i 768 set => {
192 : sh002i 798 record => "WeBWorK::DB::Record::Set",
193 : sh002i 808 schema => "WeBWorK::DB::Schema::Null",
194 :     driver => "WeBWorK::DB::Driver::Null",
195 :     source => undef,
196 : sh002i 768 },
197 :     set_user => {
198 : sh002i 798 record => "WeBWorK::DB::Record::UserSet",
199 : sh002i 768 schema => "WeBWorK::DB::Schema::WW1Hash",
200 :     driver => "WeBWorK::DB::Driver::GDBM",
201 : sh002i 798 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
202 : sh002i 808 params => { psvnLength => 5 },
203 : sh002i 768 },
204 :     problem => {
205 : sh002i 798 record => "WeBWorK::DB::Record::Problem",
206 : sh002i 808 schema => "WeBWorK::DB::Schema::Null",
207 :     driver => "WeBWorK::DB::Driver::Null",
208 :     source => undef,
209 : sh002i 768 },
210 :     problem_user => {
211 : sh002i 798 record => "WeBWorK::DB::Record::UserProblem",
212 : sh002i 768 schema => "WeBWorK::DB::Schema::WW1Hash",
213 :     driver => "WeBWorK::DB::Driver::GDBM",
214 : sh002i 798 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
215 : sh002i 808 params => { psvnLength => 5 },
216 : sh002i 768 },
217 :     );
218 :    
219 : sh002i 654 # This lets you specify a minimum permission level needed to perform
220 :     # 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
222 :     # student to perform an action (almost never what you want).
223 :     %permissionLevels = (
224 :     "become_student" => 10,
225 : malsyned 1017 "access_instructor_tools" => $ta,
226 :     "create_and_delete_problem_sets" => $professor,
227 :     "modify_problem_sets" => $professor,
228 :     "assign_problem_sets" => $professor,
229 : sh002i 654 );
230 :    
231 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
232 :     $sessionKeyTimeout = 60*30;
233 :    
234 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
235 :     $sessionKeyLength = 40;
236 :    
237 :     # @sessionKeyChars lists the legal session key characters
238 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
239 :    
240 : sh002i 768 # Practice users are users who's names start with $practiceUser
241 :     # (you can comment this out to remove practice user support)
242 :     $practiceUserPrefix = "practice";
243 :    
244 :     # There is a practice user who can be logged in multiple times. He's
245 :     # commented out by default, though, so you don't hurt yourself. It is
246 :     # kindof a backdoor to the practice user system, since he doesn't have a
247 :     # password. Come to think of it, why do we even have this?!
248 :     #$debugPracticeUser = "practice666";
249 :    
250 : sh002i 663 ################################################################################
251 :     # PG translation options
252 :     ################################################################################
253 : sh002i 654
254 :     %pg = (
255 :     options => {
256 : sh002i 663 # default translation options
257 : sh002i 654 displayMode => "images",
258 :     showOldAnswers => 1,
259 :     showCorrectAnswers => 0,
260 :     showHints => 0,
261 :     showSolutions => 0,
262 : sh002i 663 catchWarnings => 1,
263 : sh002i 654 # default grader
264 :     grader => "avg_problem_grader",
265 :     },
266 :     # modules lists module names and the packages each contains
267 :     modules => [
268 :     [qw(DynaLoader)],
269 :     [qw(Exporter)],
270 :     [qw(GD)],
271 :    
272 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
273 :     [qw(AnswerHash AnswerEvaluator)],
274 :     [qw(WWPlot)], # required by Circle (and others)
275 :     [qw(Circle)],
276 :     [qw(Complex)],
277 :     [qw(Complex1)],
278 :     [qw(Distributions)],
279 :     [qw(Fraction)],
280 :     [qw(Fun)],
281 :     [qw(Hermite)],
282 :     [qw(Label)],
283 :     [qw(List)],
284 :     [qw(Match)],
285 :     [qw(MatrixReal1)], # required by Matrix
286 :     [qw(Matrix)],
287 :     [qw(Multiple)],
288 :     [qw(PGrandom)],
289 :     [qw(Regression)],
290 :     [qw(Select)],
291 :     [qw(Units)],
292 :     [qw(VectorField)],
293 :     ],
294 :     # defaults used by answer evaluators
295 :     ansEvalDefaults => {
296 :     functAbsTolDefault => .001,
297 :     functLLimitDefault => .0000001,
298 :     functMaxConstantOfIntegration => 1E8,
299 :     functNumOfPoints => 3,
300 :     functRelPercentTolDefault => .1,
301 :     functULimitDefault => .9999999,
302 :     functVarDefault => "x",
303 :     functZeroLevelDefault => 1E-14,
304 :     functZeroLevelTolDefault => 1E-12,
305 :     numAbsTolDefault => .001,
306 :     numFormatDefault => "",
307 :     numRelPercentTolDefault => .1,
308 :     numZeroLevelDefault => 1E-14,
309 :     numZeroLevelTolDefault => 1E-12,
310 :     },
311 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9