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

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 1242 # $Id: global.conf.dist,v 1.35 2003-06-21 00:53:09 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 :     tmp => "$webworkRoot/tmp",
30 :     );
31 :    
32 :     %webworkFiles = (
33 : gage 1021 environment => "$webworkDirs{conf}/global.conf",
34 :     hardcopySnippets => {
35 : sh002i 1100 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
36 :     setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
37 :     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
38 :     setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
39 :     setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
40 : gage 1114 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
41 : sh002i 1100 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 : sh002i 1154 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
129 :     dvipng => "/usr/local/bin/dvipng",
130 : sh002i 663 gif2eps => "$webworkDirs{bin}/gif2eps",
131 :     png2eps => "$webworkDirs{bin}/png2eps",
132 :     gif2png => "$webworkDirs{bin}/gif2png",
133 :     );
134 :    
135 :     ################################################################################
136 :     # Frontend options
137 :     ################################################################################
138 :    
139 : sh002i 654 %templates = (
140 : sh002i 1100 system => "$webworkDirs{conf}/templates/ur.template",
141 : sh002i 654 );
142 :    
143 : sh002i 663 ################################################################################
144 : sh002i 1108 # Database options
145 : sh002i 663 ################################################################################
146 :    
147 : sh002i 1108 # Several database layouts are defined in separate environment files. Select the
148 :     # one which should be used by all courses by default, and include it. This can
149 :     # be overridden by including a difference environment file in the course.conf of
150 :     # a particular course.
151 : sh002i 768
152 : sh002i 1108 # Include sql.conf to specify a database layout for use with an SQL server.
153 :     #include "conf/sql.conf";
154 : gage 1099
155 : sh002i 1108 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
156 :     # databases. Use this layout if you wish to share courses between WeBWorK 1.x
157 :     # and WeBWorK 2.
158 :     include "conf/gdbm.conf";
159 : malsyned 1054
160 : sh002i 1108 # Please read the documentation in the file that you chose to include, as there
161 :     # are layout-specific options that must be configured.
162 : malsyned 1054
163 : sh002i 1108 ################################################################################
164 :     # Authorization system
165 :     ################################################################################
166 :    
167 :     # This lets you specify a minimum permission level needed to perform certain
168 :     # actions. In the current system, >=10 will allow a professor to perform the
169 :     # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
170 :     # action (almost never what you want).
171 : gage 1021 my $ta = 5;
172 :     my $professor = 10;
173 : sh002i 654 %permissionLevels = (
174 : sh002i 1108 become_student => $professor,
175 :     access_instructor_tools => $ta,
176 :     create_and_delete_problem_sets => $professor,
177 :     modify_problem_sets => $professor,
178 :     assign_problem_sets => $professor,
179 : malsyned 1210 modify_student_data => $professor,
180 : sh002i 654 );
181 :    
182 : sh002i 1108 ################################################################################
183 :     # Session options
184 :     ################################################################################
185 :    
186 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
187 :     $sessionKeyTimeout = 60*30;
188 :    
189 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
190 :     $sessionKeyLength = 40;
191 :    
192 :     # @sessionKeyChars lists the legal session key characters
193 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
194 :    
195 : sh002i 768 # Practice users are users who's names start with $practiceUser
196 :     # (you can comment this out to remove practice user support)
197 :     $practiceUserPrefix = "practice";
198 :    
199 :     # There is a practice user who can be logged in multiple times. He's
200 :     # commented out by default, though, so you don't hurt yourself. It is
201 :     # kindof a backdoor to the practice user system, since he doesn't have a
202 :     # password. Come to think of it, why do we even have this?!
203 :     #$debugPracticeUser = "practice666";
204 :    
205 : sh002i 663 ################################################################################
206 :     # PG translation options
207 :     ################################################################################
208 : sh002i 654
209 :     %pg = (
210 : sh002i 1240 # options for various renderers
211 :     renderers => {
212 :     "WeBWorK::PG::Remote" => {
213 :     uri => "http://localhost:8089/RPC2"
214 :     }
215 :     },
216 :     # currently selected renderer
217 : sh002i 1242 renderer => "WeBWorK::PG::Local",
218 : sh002i 1240 # directories used by PG
219 : sh002i 1108 directories => {
220 :     lib => "$pgRoot/lib",
221 :     macros => "$pgRoot/macros",
222 : sh002i 1240 },
223 : sh002i 654 options => {
224 : sh002i 663 # default translation options
225 : sh002i 654 displayMode => "images",
226 :     showOldAnswers => 1,
227 :     showCorrectAnswers => 0,
228 :     showHints => 0,
229 :     showSolutions => 0,
230 : sh002i 1132 catchWarnings => 0, # there's a global warning catcher now
231 : sh002i 654 # default grader
232 :     grader => "avg_problem_grader",
233 :     },
234 : gage 1099 # this will be customized in the course.conf file
235 :     specialPGEnvironmentVars => {
236 : sh002i 1240 PRINT_FILE_NAMES_FOR => qw(gage apizer voloshin lr003k professor),
237 :     CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
238 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
239 :     CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
240 :     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
241 : malsyned 1103 },
242 : sh002i 654 # modules lists module names and the packages each contains
243 :     modules => [
244 :     [qw(DynaLoader)],
245 :     [qw(Exporter)],
246 :     [qw(GD)],
247 :    
248 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
249 :     [qw(AnswerHash AnswerEvaluator)],
250 :     [qw(WWPlot)], # required by Circle (and others)
251 :     [qw(Circle)],
252 :     [qw(Complex)],
253 :     [qw(Complex1)],
254 :     [qw(Distributions)],
255 :     [qw(Fraction)],
256 :     [qw(Fun)],
257 :     [qw(Hermite)],
258 :     [qw(Label)],
259 :     [qw(List)],
260 :     [qw(Match)],
261 :     [qw(MatrixReal1)], # required by Matrix
262 :     [qw(Matrix)],
263 :     [qw(Multiple)],
264 :     [qw(PGrandom)],
265 :     [qw(Regression)],
266 :     [qw(Select)],
267 :     [qw(Units)],
268 :     [qw(VectorField)],
269 :     ],
270 :     # defaults used by answer evaluators
271 :     ansEvalDefaults => {
272 :     functAbsTolDefault => .001,
273 :     functLLimitDefault => .0000001,
274 :     functMaxConstantOfIntegration => 1E8,
275 :     functNumOfPoints => 3,
276 :     functRelPercentTolDefault => .1,
277 :     functULimitDefault => .9999999,
278 :     functVarDefault => "x",
279 :     functZeroLevelDefault => 1E-14,
280 :     functZeroLevelTolDefault => 1E-12,
281 :     numAbsTolDefault => .001,
282 :     numFormatDefault => "",
283 :     numRelPercentTolDefault => .1,
284 :     numZeroLevelDefault => 1E-14,
285 :     numZeroLevelTolDefault => 1E-12,
286 :     },
287 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9