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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9