[system] / branches / rel-2-4-dev / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /branches/rel-2-4-dev/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1108 - (view) (download)
Original Path: trunk/webwork2/conf/global.conf.dist

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 1108 # $Id: global.conf.dist,v 1.29 2003-06-10 19:58:27 sh002i 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 1051 # $pgRoot directory that contains the PG distribution
16 : sh002i 654 # $courseName name of the course being used
17 :    
18 :     ################################################################################
19 : sh002i 663 # WeBWorK settings
20 :     ################################################################################
21 : sh002i 654
22 :     %webworkDirs = (
23 :     root => "$webworkRoot",
24 :     bin => "$webworkRoot/bin",
25 :     conf => "$webworkRoot/conf",
26 : sh002i 655 courses => "$webworkRoot/courses",
27 : gage 1101 lib => "$webworkRoot/lib",
28 : sh002i 654 logs => "$webworkRoot/logs",
29 : sh002i 1051 macros => "$pgRoot/macros",
30 : sh002i 654 tmp => "$webworkRoot/tmp",
31 :     );
32 :    
33 :     %webworkFiles = (
34 : gage 1021 environment => "$webworkDirs{conf}/global.conf",
35 :     hardcopySnippets => {
36 : sh002i 1100 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
37 :     setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
38 :     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
39 :     setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
40 :     setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
41 :     postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
42 : sh002i 654 },
43 :     screenSnippets => {
44 : sh002i 1100 setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg",
45 : sh002i 654 },
46 :     logs => {
47 : gage 1021 timing => "$webworkDirs{logs}/timing.log",
48 : sh002i 654 },
49 :     );
50 :    
51 :     %webworkURLs = (
52 : malsyned 670 root => "$webworkURLRoot",
53 : gage 1021 home => "/webwork2_files/index.html",
54 :     htdocs => "/webwork2_files",
55 : malsyned 670 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
56 :     oldProf => "/webwork-old/profLogin.pl",
57 : sh002i 654 );
58 :    
59 : sh002i 663 ################################################################################
60 :     # Default course-specific settings
61 :     ################################################################################
62 :    
63 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
64 :     %courseDirs = (
65 :     root => "$courseRoot",
66 :     DATA => "$courseRoot/DATA",
67 :     auth_DATA => "$courseRoot/DATA/.auth",
68 :     html => "$courseRoot/html",
69 :     html_images => "$courseRoot/html/images",
70 :     html_temp => "$courseRoot/html/tmp",
71 :     logs => "$courseRoot/logs",
72 :     scoring => "$courseRoot/scoring",
73 :     templates => "$courseRoot/templates",
74 :     macros => "$courseRoot/templates/macros",
75 :     );
76 :    
77 :     %courseFiles = (
78 :     environment => "$courseDirs{root}/course.conf",
79 : sh002i 701 motd => "$courseDirs{root}/motd.txt",
80 : sh002i 663 );
81 :    
82 : sh002i 705 # quick hack to fix transaction logging. blah.
83 : sh002i 1032 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
84 :     $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
85 : sh002i 705
86 : sh002i 663 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
87 : sh002i 654 %courseURLs = (
88 : sh002i 699 root => "$courseURLRoot",
89 : sh002i 654 html => "$courseURLRoot",
90 :     html_temp => "$courseURLRoot/tmp",
91 :     );
92 :    
93 :     ################################################################################
94 : sh002i 663 # Other site-specific options
95 :     ################################################################################
96 : sh002i 654
97 : sh002i 663 %mail = (
98 :     smtpServer => "mail.math.rochester.edu",
99 :     smtpSender => "webwork\@math.rochester.edu",
100 : sh002i 705 # allowedRecipients defines addresses that the PG system is allowed to
101 :     # send mail to. this prevents subtle PG exploits. This should be set
102 :     # in course.conf to the addresses of professors of each course. Sending
103 :     # mail from the PG system (i.e. questionaires, essay questions) will
104 :     # fail if this is not set somewhere (either here or in course.conf).
105 : sh002i 706 #allowedRecipients => [
106 :     # "yourname\@host.yourdomain.edu",
107 :     #],
108 : sh002i 705 # if defined, feedbackRecipients overrides the list of recipients for
109 :     # feedback email. It's appropriate to set this in the course.conf for
110 :     # specific courses, but probably not in global.conf. if not defined,
111 :     # mail is sent to all professors and TAs for a given course
112 :     #feedbackRecipients => [
113 :     # "prof1\@host.yourdomain.edu",
114 :     # "prof2\@host.yourdomain.edu",
115 :     #],
116 : sh002i 740 # feedbackVerbosity:
117 :     # 0: send only the feedback comment and context link
118 :     # 1: as in 0, plus user, set, problem, and PG data
119 :     # 2: as in 1, plus the problem environment (debugging data)
120 :     feedbackVerbosity => 1,
121 : sh002i 654 );
122 :    
123 : sh002i 663 %externalPrograms = (
124 : sh002i 737 mkdir => "/bin/mkdir",
125 : sh002i 663 tth => "/usr/local/bin/tth",
126 :     pdflatex => "/usr/local/bin/pdflatex",
127 :     latex => "/usr/local/bin/latex",
128 :     dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
129 :     gif2eps => "$webworkDirs{bin}/gif2eps",
130 :     png2eps => "$webworkDirs{bin}/png2eps",
131 :     gif2png => "$webworkDirs{bin}/gif2png",
132 :     );
133 :    
134 :     ################################################################################
135 :     # Frontend options
136 :     ################################################################################
137 :    
138 : sh002i 654 %templates = (
139 : sh002i 1100 system => "$webworkDirs{conf}/templates/ur.template",
140 : sh002i 654 );
141 :    
142 : sh002i 663 ################################################################################
143 : sh002i 1108 # Database options
144 : sh002i 663 ################################################################################
145 :    
146 : sh002i 1108 # Several database layouts are defined in separate environment files. Select the
147 :     # one which should be used by all courses by default, and include it. This can
148 :     # be overridden by including a difference environment file in the course.conf of
149 :     # a particular course.
150 : sh002i 768
151 : sh002i 1108 # Include sql.conf to specify a database layout for use with an SQL server.
152 :     #include "conf/sql.conf";
153 : gage 1099
154 : sh002i 1108 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
155 :     # databases. Use this layout if you wish to share courses between WeBWorK 1.x
156 :     # and WeBWorK 2.
157 :     include "conf/gdbm.conf";
158 : malsyned 1054
159 : sh002i 1108 # Please read the documentation in the file that you chose to include, as there
160 :     # are layout-specific options that must be configured.
161 : malsyned 1054
162 : sh002i 1108 ################################################################################
163 :     # Authorization system
164 :     ################################################################################
165 :    
166 :     # This lets you specify a minimum permission level needed to perform certain
167 :     # actions. In the current system, >=10 will allow a professor to perform the
168 :     # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
169 :     # action (almost never what you want).
170 : gage 1021 my $ta = 5;
171 :     my $professor = 10;
172 : sh002i 654 %permissionLevels = (
173 : sh002i 1108 become_student => $professor,
174 :     access_instructor_tools => $ta,
175 :     create_and_delete_problem_sets => $professor,
176 :     modify_problem_sets => $professor,
177 :     assign_problem_sets => $professor,
178 : sh002i 654 );
179 :    
180 : sh002i 1108 ################################################################################
181 :     # Session options
182 :     ################################################################################
183 :    
184 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
185 :     $sessionKeyTimeout = 60*30;
186 :    
187 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
188 :     $sessionKeyLength = 40;
189 :    
190 :     # @sessionKeyChars lists the legal session key characters
191 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
192 :    
193 : sh002i 768 # Practice users are users who's names start with $practiceUser
194 :     # (you can comment this out to remove practice user support)
195 :     $practiceUserPrefix = "practice";
196 :    
197 :     # There is a practice user who can be logged in multiple times. He's
198 :     # commented out by default, though, so you don't hurt yourself. It is
199 :     # kindof a backdoor to the practice user system, since he doesn't have a
200 :     # password. Come to think of it, why do we even have this?!
201 :     #$debugPracticeUser = "practice666";
202 :    
203 : sh002i 663 ################################################################################
204 :     # PG translation options
205 :     ################################################################################
206 : sh002i 654
207 :     %pg = (
208 : sh002i 1108 directories => {
209 :     # directories used only by PG
210 :     lib => "$pgRoot/lib",
211 :     macros => "$pgRoot/macros",
212 :     }, # (not used yet)
213 : sh002i 654 options => {
214 : sh002i 663 # default translation options
215 : sh002i 654 displayMode => "images",
216 :     showOldAnswers => 1,
217 :     showCorrectAnswers => 0,
218 :     showHints => 0,
219 :     showSolutions => 0,
220 : sh002i 663 catchWarnings => 1,
221 : sh002i 654 # default grader
222 :     grader => "avg_problem_grader",
223 :     },
224 : gage 1099 # this will be customized in the course.conf file
225 :     specialPGEnvironmentVars => {
226 :     PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'],
227 :     CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
228 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
229 :     CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
230 :     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
231 : malsyned 1103 },
232 : sh002i 654 # modules lists module names and the packages each contains
233 :     modules => [
234 :     [qw(DynaLoader)],
235 :     [qw(Exporter)],
236 :     [qw(GD)],
237 :    
238 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
239 :     [qw(AnswerHash AnswerEvaluator)],
240 :     [qw(WWPlot)], # required by Circle (and others)
241 :     [qw(Circle)],
242 :     [qw(Complex)],
243 :     [qw(Complex1)],
244 :     [qw(Distributions)],
245 :     [qw(Fraction)],
246 :     [qw(Fun)],
247 :     [qw(Hermite)],
248 :     [qw(Label)],
249 :     [qw(List)],
250 :     [qw(Match)],
251 :     [qw(MatrixReal1)], # required by Matrix
252 :     [qw(Matrix)],
253 :     [qw(Multiple)],
254 :     [qw(PGrandom)],
255 :     [qw(Regression)],
256 :     [qw(Select)],
257 :     [qw(Units)],
258 :     [qw(VectorField)],
259 :     ],
260 :     # defaults used by answer evaluators
261 :     ansEvalDefaults => {
262 :     functAbsTolDefault => .001,
263 :     functLLimitDefault => .0000001,
264 :     functMaxConstantOfIntegration => 1E8,
265 :     functNumOfPoints => 3,
266 :     functRelPercentTolDefault => .1,
267 :     functULimitDefault => .9999999,
268 :     functVarDefault => "x",
269 :     functZeroLevelDefault => 1E-14,
270 :     functZeroLevelTolDefault => 1E-12,
271 :     numAbsTolDefault => .001,
272 :     numFormatDefault => "",
273 :     numRelPercentTolDefault => .1,
274 :     numZeroLevelDefault => 1E-14,
275 :     numZeroLevelTolDefault => 1E-12,
276 :     },
277 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9