[system] / branches / rel-2-4-patches / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /branches/rel-2-4-patches/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2172 - (view) (download)
Original Path: trunk/webwork-modperl/conf/global.conf.dist

1 : sh002i 1801 #!perl
2 : sh002i 654 ################################################################################
3 : sh002i 1663 # WeBWorK Online Homework Delivery System
4 :     # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5 : jj 2172 # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.64 2004/05/22 00:10:46 sh002i Exp $
6 : sh002i 1663 #
7 :     # This program is free software; you can redistribute it and/or modify it under
8 :     # the terms of either: (a) the GNU General Public License as published by the
9 :     # Free Software Foundation; either version 2, or (at your option) any later
10 :     # version, or (b) the "Artistic License" which comes with this package.
11 :     #
12 :     # This program is distributed in the hope that it will be useful, but WITHOUT
13 :     # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 :     # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
15 :     # Artistic License for more details.
16 : sh002i 654 ################################################################################
17 :    
18 :     # This file is used to set up the default WeBWorK course environment for all
19 :     # requests. Values may be overwritten by the course.conf for a specific course.
20 :     # All package variables set in this file are added to the course environment.
21 :     # If you wish to set a variable here but omit it from the course environment,
22 :     # use the "my" keyword. The following variables are available to this file:
23 :     #
24 :     # $webworkRoot directory that contains the WeBWorK distribution
25 : sh002i 695 # $webworkURL base URL handled by Apache::WeBWorK
26 : sh002i 1051 # $pgRoot directory that contains the PG distribution
27 : sh002i 654 # $courseName name of the course being used
28 :    
29 :     ################################################################################
30 : sh002i 663 # WeBWorK settings
31 :     ################################################################################
32 : sh002i 654
33 :     %webworkDirs = (
34 : sh002i 1519 root => "$webworkRoot",
35 :     DATA => "$webworkRoot/DATA",
36 : sh002i 1617 uploadCache => "$webworkRoot/DATA/uploads",
37 : sh002i 1519 bin => "$webworkRoot/bin",
38 :     conf => "$webworkRoot/conf",
39 :     courses => "$webworkRoot/courses",
40 :     htdocs => "$webworkRoot/htdocs",
41 :     htdocs_temp => "$webworkRoot/htdocs/tmp",
42 :     equationCache => "$webworkRoot/htdocs/tmp/equations",
43 :     lib => "$webworkRoot/lib",
44 :     logs => "$webworkRoot/logs",
45 :     macros => "$pgRoot/macros",
46 :     tmp => "$webworkRoot/tmp",
47 : sh002i 654 );
48 :    
49 :     %webworkFiles = (
50 : gage 1021 environment => "$webworkDirs{conf}/global.conf",
51 :     hardcopySnippets => {
52 : sh002i 1100 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
53 :     setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
54 :     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
55 :     setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
56 :     setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
57 : gage 1114 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
58 : sh002i 1100 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
59 : sh002i 654 },
60 :     screenSnippets => {
61 : gage 1380 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
62 : sh002i 654 },
63 :     logs => {
64 : gage 1021 timing => "$webworkDirs{logs}/timing.log",
65 : sh002i 654 },
66 : sh002i 1519 equationCacheDB => "$webworkDirs{DATA}/equationcache",
67 : sh002i 654 );
68 :    
69 :     %webworkURLs = (
70 : sh002i 1519 root => "$webworkURLRoot",
71 :     home => "/webwork2_files/index.html",
72 :     htdocs => "/webwork2_files",
73 :     htdocs_temp => "/webwork2_files/tmp",
74 :     equationCache => "/webwork2_files/tmp/equations",
75 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
76 : jj 2172 local_help => "/webwork2_files/helpFiles",
77 : sh002i 1801 oldProf => "/webwork1/profLogin.pl",
78 : sh002i 654 );
79 :    
80 : sh002i 663 ################################################################################
81 :     # Default course-specific settings
82 :     ################################################################################
83 :    
84 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
85 :     %courseDirs = (
86 :     root => "$courseRoot",
87 :     DATA => "$courseRoot/DATA",
88 :     auth_DATA => "$courseRoot/DATA/.auth",
89 :     html => "$courseRoot/html",
90 :     html_images => "$courseRoot/html/images",
91 :     html_temp => "$courseRoot/html/tmp",
92 :     logs => "$courseRoot/logs",
93 :     scoring => "$courseRoot/scoring",
94 :     templates => "$courseRoot/templates",
95 :     macros => "$courseRoot/templates/macros",
96 : gage 1380 email => "$courseRoot/templates/email",
97 : sh002i 663 );
98 :    
99 :     %courseFiles = (
100 :     environment => "$courseDirs{root}/course.conf",
101 : gage 1751 motd => "$courseDirs{templates}/motd.txt",
102 : gage 1387 logs => {
103 :     answer_log => "$courseDirs{logs}/answer_log",
104 :     },
105 : gage 1793 course_info => "course_info.txt", # path relative to templates directory
106 :     login_info => "login_info.txt", # path relative to templates directory
107 : sh002i 663 );
108 :    
109 : sh002i 705 # quick hack to fix transaction logging. blah.
110 : sh002i 1032 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
111 :     $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
112 : sh002i 705
113 : sh002i 2119 my $courseURLRoot = "/webwork2_course_files/$courseName";
114 : sh002i 654 %courseURLs = (
115 : sh002i 699 root => "$courseURLRoot",
116 : sh002i 654 html => "$courseURLRoot",
117 :     html_temp => "$courseURLRoot/tmp",
118 :     );
119 :    
120 :     ################################################################################
121 : sh002i 663 # Other site-specific options
122 :     ################################################################################
123 : sh002i 654
124 : sh002i 663 %mail = (
125 : gage 1793 smtpServer => "mail.math.rochester.edu",
126 :     smtpSender => "webwork\@math.rochester.edu",
127 : sh002i 1801
128 : sh002i 705 # allowedRecipients defines addresses that the PG system is allowed to
129 :     # send mail to. this prevents subtle PG exploits. This should be set
130 :     # in course.conf to the addresses of professors of each course. Sending
131 :     # mail from the PG system (i.e. questionaires, essay questions) will
132 :     # fail if this is not set somewhere (either here or in course.conf).
133 : sh002i 706 #allowedRecipients => [
134 : sh002i 1801 # 'prof1@host.yourdomain.edu',
135 :     # 'prof2@host.yourdomain.edu',
136 : sh002i 706 #],
137 : sh002i 1801
138 : sh002i 705 # if defined, feedbackRecipients overrides the list of recipients for
139 :     # feedback email. It's appropriate to set this in the course.conf for
140 :     # specific courses, but probably not in global.conf. if not defined,
141 :     # mail is sent to all professors and TAs for a given course
142 :     #feedbackRecipients => [
143 : sh002i 1787 # 'prof1@host.yourdomain.edu',
144 :     # 'prof2@host.yourdomain.edu',
145 : sh002i 705 #],
146 : sh002i 1801
147 : sh002i 740 # feedbackVerbosity:
148 :     # 0: send only the feedback comment and context link
149 :     # 1: as in 0, plus user, set, problem, and PG data
150 :     # 2: as in 1, plus the problem environment (debugging data)
151 : sh002i 1801 feedbackVerbosity => 1,
152 :    
153 :     # defines the size of the Mail Merge editor window
154 :     # FIXME: should this be here? it's UI, not mail
155 :     # FIXME: replace this with the auto-size method that TWiki uses
156 :     editor_window_rows => 15,
157 :     editor_window_columns => 100,
158 : sh002i 654 );
159 :    
160 : sh002i 663 %externalPrograms = (
161 : sh002i 737 mkdir => "/bin/mkdir",
162 : sh002i 663 tth => "/usr/local/bin/tth",
163 :     pdflatex => "/usr/local/bin/pdflatex",
164 :     latex => "/usr/local/bin/latex",
165 : sh002i 1154 dvipng => "/usr/local/bin/dvipng",
166 : sh002i 663 gif2eps => "$webworkDirs{bin}/gif2eps",
167 :     png2eps => "$webworkDirs{bin}/png2eps",
168 :     gif2png => "$webworkDirs{bin}/gif2png",
169 : sh002i 1945 mysql => "/usr/local/bin/mysql",
170 : sh002i 663 );
171 :    
172 : toenail 2111 %siteDefaults = (
173 :     status => {
174 :     audit => "Audit",
175 :     A => "Audit",
176 :     drop => "Drop",
177 :     D => "Drop",
178 :     withdraw => "Drop",
179 :     current => "Enrolled",
180 :     C => "Enrolled",
181 :     enrolled => "Enrolled",
182 :     },
183 :     );
184 :    
185 : sh002i 663 ################################################################################
186 :     # Frontend options
187 :     ################################################################################
188 :    
189 : sh002i 654 %templates = (
190 : sh002i 1100 system => "$webworkDirs{conf}/templates/ur.template",
191 : sh002i 654 );
192 :    
193 : sh002i 663 ################################################################################
194 : sh002i 1108 # Database options
195 : sh002i 663 ################################################################################
196 :    
197 : sh002i 1696 # Several database are defined in the file conf/database.conf and stored in the
198 :     # hash %dbLayouts.
199 :     include "conf/database.conf";
200 : sh002i 768
201 : sh002i 1696 # Select the default database layout. This can be overridden in the course.conf
202 :     # file of a particular course.
203 : sh002i 1801 #$dbLayoutName = "sql";
204 :     $dbLayoutName = "gdbm";
205 : gage 1099
206 : sh002i 1801 *dbLayout = $dbLayouts{$dbLayoutName};
207 :    
208 : sh002i 1108 ################################################################################
209 : sh002i 2146 # Problem library options
210 :     ################################################################################
211 :    
212 :     %problemLibrary = (
213 :     root => "", # set to the top of the problem library, if its installed
214 :     sourceSQL => "ProblemLibrary",
215 :     userSQL => "webworkRead",
216 :     passwordSQL => "",
217 :     );
218 :    
219 :     ################################################################################
220 : sh002i 1108 # Authorization system
221 :     ################################################################################
222 :    
223 :     # This lets you specify a minimum permission level needed to perform certain
224 :     # actions. In the current system, >=10 will allow a professor to perform the
225 :     # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
226 :     # action (almost never what you want).
227 : gage 1021 my $ta = 5;
228 :     my $professor = 10;
229 : sh002i 654 %permissionLevels = (
230 : sh002i 1108 become_student => $professor,
231 :     access_instructor_tools => $ta,
232 :     create_and_delete_problem_sets => $professor,
233 :     modify_problem_sets => $professor,
234 :     assign_problem_sets => $professor,
235 : malsyned 1210 modify_student_data => $professor,
236 : malsyned 1446 score_sets => $professor,
237 : gage 1380 send_mail => $professor,
238 : sh002i 1617 modify_classlist_files => $professor,
239 :     modify_set_def_files => $professor,
240 : sh002i 2000 modify_scoring_files => $professor,
241 : gage 2027 create_and_delete_courses => $professor,
242 : sh002i 654 );
243 :    
244 : sh002i 1108 ################################################################################
245 :     # Session options
246 :     ################################################################################
247 :    
248 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
249 :     $sessionKeyTimeout = 60*30;
250 :    
251 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
252 :     $sessionKeyLength = 40;
253 :    
254 :     # @sessionKeyChars lists the legal session key characters
255 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
256 :    
257 : sh002i 768 # Practice users are users who's names start with $practiceUser
258 :     # (you can comment this out to remove practice user support)
259 :     $practiceUserPrefix = "practice";
260 :    
261 :     # There is a practice user who can be logged in multiple times. He's
262 :     # commented out by default, though, so you don't hurt yourself. It is
263 :     # kindof a backdoor to the practice user system, since he doesn't have a
264 :     # password. Come to think of it, why do we even have this?!
265 :     #$debugPracticeUser = "practice666";
266 :    
267 : sh002i 663 ################################################################################
268 :     # PG translation options
269 :     ################################################################################
270 : sh002i 654
271 :     %pg = (
272 : sh002i 1240 # options for various renderers
273 :     renderers => {
274 :     "WeBWorK::PG::Remote" => {
275 : sh002i 1560 proxy => "http://localhost:21000/RenderD"
276 : sh002i 1240 }
277 :     },
278 :     # currently selected renderer
279 : sh002i 1242 renderer => "WeBWorK::PG::Local",
280 : sh002i 1560 #renderer => "WeBWorK::PG::Remote",
281 : sh002i 1240 # directories used by PG
282 : sh002i 1108 directories => {
283 : gage 1380 # directories used only by PG
284 : sh002i 1957 root => "$pgRoot",
285 : sh002i 1108 lib => "$pgRoot/lib",
286 :     macros => "$pgRoot/macros",
287 : sh002i 1240 },
288 : sh002i 654 options => {
289 : sh002i 663 # default translation options
290 : sh002i 654 displayMode => "images",
291 :     showOldAnswers => 1,
292 :     showCorrectAnswers => 0,
293 :     showHints => 0,
294 :     showSolutions => 0,
295 : sh002i 1132 catchWarnings => 0, # there's a global warning catcher now
296 : sh002i 654 # default grader
297 :     grader => "avg_problem_grader",
298 :     },
299 : gage 1099 # this will be customized in the course.conf file
300 :     specialPGEnvironmentVars => {
301 : sh002i 1704 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
302 : sh002i 1240 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
303 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
304 : sh002i 1897 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
305 :     CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
306 : malsyned 1103 },
307 : sh002i 654 # modules lists module names and the packages each contains
308 :     modules => [
309 :     [qw(DynaLoader)],
310 :     [qw(Exporter)],
311 :     [qw(GD)],
312 :    
313 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
314 :     [qw(AnswerHash AnswerEvaluator)],
315 :     [qw(WWPlot)], # required by Circle (and others)
316 :     [qw(Circle)],
317 :     [qw(Complex)],
318 :     [qw(Complex1)],
319 :     [qw(Distributions)],
320 :     [qw(Fraction)],
321 :     [qw(Fun)],
322 :     [qw(Hermite)],
323 :     [qw(Label)],
324 :     [qw(List)],
325 :     [qw(Match)],
326 :     [qw(MatrixReal1)], # required by Matrix
327 :     [qw(Matrix)],
328 :     [qw(Multiple)],
329 :     [qw(PGrandom)],
330 :     [qw(Regression)],
331 :     [qw(Select)],
332 :     [qw(Units)],
333 :     [qw(VectorField)],
334 :     ],
335 :     # defaults used by answer evaluators
336 :     ansEvalDefaults => {
337 :     functAbsTolDefault => .001,
338 :     functLLimitDefault => .0000001,
339 :     functMaxConstantOfIntegration => 1E8,
340 :     functNumOfPoints => 3,
341 :     functRelPercentTolDefault => .1,
342 :     functULimitDefault => .9999999,
343 :     functVarDefault => "x",
344 :     functZeroLevelDefault => 1E-14,
345 :     functZeroLevelTolDefault => 1E-12,
346 :     numAbsTolDefault => .001,
347 :     numFormatDefault => "",
348 :     numRelPercentTolDefault => .1,
349 :     numZeroLevelDefault => 1E-14,
350 :     numZeroLevelTolDefault => 1E-12,
351 : jj 1932 useBaseTenLog => 0,
352 : jj 1965 defaultDisplayMatrixStyle => "[s]",
353 : sh002i 654 },
354 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9