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

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9