[system] / branches / rel-2-0-patches / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /branches/rel-2-0-patches/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (view) (download)
Original Path: trunk/webwork-modperl/conf/global.conf.dist

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9