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

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9