[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 1210 - (view) (download)

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9