[system] / trunk / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /trunk/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1990 - (view) (download)

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 1990 # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.57 2004/04/22 17:37:05 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 : jj 1990 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 : 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 1822 my $courseURLRoot = "/webwork2_courses/$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 :     ################################################################################
173 :     # Frontend options
174 :     ################################################################################
175 :    
176 : sh002i 654 %templates = (
177 : sh002i 1100 system => "$webworkDirs{conf}/templates/ur.template",
178 : sh002i 654 );
179 :    
180 : sh002i 663 ################################################################################
181 : sh002i 1108 # Database options
182 : sh002i 663 ################################################################################
183 :    
184 : sh002i 1696 # Several database are defined in the file conf/database.conf and stored in the
185 :     # hash %dbLayouts.
186 :     include "conf/database.conf";
187 : sh002i 768
188 : sh002i 1696 # Select the default database layout. This can be overridden in the course.conf
189 :     # file of a particular course.
190 : sh002i 1801 #$dbLayoutName = "sql";
191 :     $dbLayoutName = "gdbm";
192 : gage 1099
193 : sh002i 1801 *dbLayout = $dbLayouts{$dbLayoutName};
194 :    
195 : sh002i 1108 ################################################################################
196 :     # Authorization system
197 :     ################################################################################
198 :    
199 :     # This lets you specify a minimum permission level needed to perform certain
200 :     # actions. In the current system, >=10 will allow a professor to perform the
201 :     # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
202 :     # action (almost never what you want).
203 : gage 1021 my $ta = 5;
204 :     my $professor = 10;
205 : sh002i 654 %permissionLevels = (
206 : sh002i 1108 become_student => $professor,
207 :     access_instructor_tools => $ta,
208 :     create_and_delete_problem_sets => $professor,
209 :     modify_problem_sets => $professor,
210 :     assign_problem_sets => $professor,
211 : malsyned 1210 modify_student_data => $professor,
212 : malsyned 1446 score_sets => $professor,
213 : gage 1380 send_mail => $professor,
214 : sh002i 1617 modify_classlist_files => $professor,
215 :     modify_set_def_files => $professor,
216 : sh002i 654 );
217 :    
218 : sh002i 1108 ################################################################################
219 :     # Session options
220 :     ################################################################################
221 :    
222 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
223 :     $sessionKeyTimeout = 60*30;
224 :    
225 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
226 :     $sessionKeyLength = 40;
227 :    
228 :     # @sessionKeyChars lists the legal session key characters
229 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
230 :    
231 : sh002i 768 # Practice users are users who's names start with $practiceUser
232 :     # (you can comment this out to remove practice user support)
233 :     $practiceUserPrefix = "practice";
234 :    
235 :     # There is a practice user who can be logged in multiple times. He's
236 :     # commented out by default, though, so you don't hurt yourself. It is
237 :     # kindof a backdoor to the practice user system, since he doesn't have a
238 :     # password. Come to think of it, why do we even have this?!
239 :     #$debugPracticeUser = "practice666";
240 :    
241 : sh002i 663 ################################################################################
242 :     # PG translation options
243 :     ################################################################################
244 : sh002i 654
245 :     %pg = (
246 : sh002i 1240 # options for various renderers
247 :     renderers => {
248 :     "WeBWorK::PG::Remote" => {
249 : sh002i 1560 proxy => "http://localhost:21000/RenderD"
250 : sh002i 1240 }
251 :     },
252 :     # currently selected renderer
253 : sh002i 1242 renderer => "WeBWorK::PG::Local",
254 : sh002i 1560 #renderer => "WeBWorK::PG::Remote",
255 : sh002i 1240 # directories used by PG
256 : sh002i 1108 directories => {
257 : gage 1380 # directories used only by PG
258 : sh002i 1957 root => "$pgRoot",
259 : sh002i 1108 lib => "$pgRoot/lib",
260 :     macros => "$pgRoot/macros",
261 : sh002i 1240 },
262 : sh002i 654 options => {
263 : sh002i 663 # default translation options
264 : sh002i 654 displayMode => "images",
265 :     showOldAnswers => 1,
266 :     showCorrectAnswers => 0,
267 :     showHints => 0,
268 :     showSolutions => 0,
269 : sh002i 1132 catchWarnings => 0, # there's a global warning catcher now
270 : sh002i 654 # default grader
271 :     grader => "avg_problem_grader",
272 :     },
273 : gage 1099 # this will be customized in the course.conf file
274 :     specialPGEnvironmentVars => {
275 : sh002i 1704 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
276 : sh002i 1240 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
277 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
278 : sh002i 1897 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
279 :     CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
280 : malsyned 1103 },
281 : sh002i 654 # modules lists module names and the packages each contains
282 :     modules => [
283 :     [qw(DynaLoader)],
284 :     [qw(Exporter)],
285 :     [qw(GD)],
286 :    
287 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
288 :     [qw(AnswerHash AnswerEvaluator)],
289 :     [qw(WWPlot)], # required by Circle (and others)
290 :     [qw(Circle)],
291 :     [qw(Complex)],
292 :     [qw(Complex1)],
293 :     [qw(Distributions)],
294 :     [qw(Fraction)],
295 :     [qw(Fun)],
296 :     [qw(Hermite)],
297 :     [qw(Label)],
298 :     [qw(List)],
299 :     [qw(Match)],
300 :     [qw(MatrixReal1)], # required by Matrix
301 :     [qw(Matrix)],
302 :     [qw(Multiple)],
303 :     [qw(PGrandom)],
304 :     [qw(Regression)],
305 :     [qw(Select)],
306 :     [qw(Units)],
307 :     [qw(VectorField)],
308 :     ],
309 :     # defaults used by answer evaluators
310 :     ansEvalDefaults => {
311 :     functAbsTolDefault => .001,
312 :     functLLimitDefault => .0000001,
313 :     functMaxConstantOfIntegration => 1E8,
314 :     functNumOfPoints => 3,
315 :     functRelPercentTolDefault => .1,
316 :     functULimitDefault => .9999999,
317 :     functVarDefault => "x",
318 :     functZeroLevelDefault => 1E-14,
319 :     functZeroLevelTolDefault => 1E-12,
320 :     numAbsTolDefault => .001,
321 :     numFormatDefault => "",
322 :     numRelPercentTolDefault => .1,
323 :     numZeroLevelDefault => 1E-14,
324 :     numZeroLevelTolDefault => 1E-12,
325 : jj 1932 useBaseTenLog => 0,
326 : jj 1965 defaultDisplayMatrixStyle => "[s]",
327 : sh002i 654 },
328 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9