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

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 1132 # $Id: global.conf.dist,v 1.31 2003-06-11 20:40:56 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 : 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 :     dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
130 :     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 : sh002i 654 );
180 :    
181 : sh002i 1108 ################################################################################
182 :     # Session options
183 :     ################################################################################
184 :    
185 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
186 :     $sessionKeyTimeout = 60*30;
187 :    
188 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
189 :     $sessionKeyLength = 40;
190 :    
191 :     # @sessionKeyChars lists the legal session key characters
192 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
193 :    
194 : sh002i 768 # Practice users are users who's names start with $practiceUser
195 :     # (you can comment this out to remove practice user support)
196 :     $practiceUserPrefix = "practice";
197 :    
198 :     # There is a practice user who can be logged in multiple times. He's
199 :     # commented out by default, though, so you don't hurt yourself. It is
200 :     # kindof a backdoor to the practice user system, since he doesn't have a
201 :     # password. Come to think of it, why do we even have this?!
202 :     #$debugPracticeUser = "practice666";
203 :    
204 : sh002i 663 ################################################################################
205 :     # PG translation options
206 :     ################################################################################
207 : sh002i 654
208 :     %pg = (
209 : sh002i 1108 directories => {
210 :     # directories used only by PG
211 :     lib => "$pgRoot/lib",
212 :     macros => "$pgRoot/macros",
213 :     }, # (not used yet)
214 : sh002i 654 options => {
215 : sh002i 663 # default translation options
216 : sh002i 654 displayMode => "images",
217 :     showOldAnswers => 1,
218 :     showCorrectAnswers => 0,
219 :     showHints => 0,
220 :     showSolutions => 0,
221 : sh002i 1132 catchWarnings => 0, # there's a global warning catcher now
222 : sh002i 654 # default grader
223 :     grader => "avg_problem_grader",
224 :     },
225 : gage 1099 # this will be customized in the course.conf file
226 :     specialPGEnvironmentVars => {
227 :     PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'],
228 :     CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
229 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
230 :     CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
231 :     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
232 : malsyned 1103 },
233 : sh002i 654 # modules lists module names and the packages each contains
234 :     modules => [
235 :     [qw(DynaLoader)],
236 :     [qw(Exporter)],
237 :     [qw(GD)],
238 :    
239 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
240 :     [qw(AnswerHash AnswerEvaluator)],
241 :     [qw(WWPlot)], # required by Circle (and others)
242 :     [qw(Circle)],
243 :     [qw(Complex)],
244 :     [qw(Complex1)],
245 :     [qw(Distributions)],
246 :     [qw(Fraction)],
247 :     [qw(Fun)],
248 :     [qw(Hermite)],
249 :     [qw(Label)],
250 :     [qw(List)],
251 :     [qw(Match)],
252 :     [qw(MatrixReal1)], # required by Matrix
253 :     [qw(Matrix)],
254 :     [qw(Multiple)],
255 :     [qw(PGrandom)],
256 :     [qw(Regression)],
257 :     [qw(Select)],
258 :     [qw(Units)],
259 :     [qw(VectorField)],
260 :     ],
261 :     # defaults used by answer evaluators
262 :     ansEvalDefaults => {
263 :     functAbsTolDefault => .001,
264 :     functLLimitDefault => .0000001,
265 :     functMaxConstantOfIntegration => 1E8,
266 :     functNumOfPoints => 3,
267 :     functRelPercentTolDefault => .1,
268 :     functULimitDefault => .9999999,
269 :     functVarDefault => "x",
270 :     functZeroLevelDefault => 1E-14,
271 :     functZeroLevelTolDefault => 1E-12,
272 :     numAbsTolDefault => .001,
273 :     numFormatDefault => "",
274 :     numRelPercentTolDefault => .1,
275 :     numZeroLevelDefault => 1E-14,
276 :     numZeroLevelTolDefault => 1E-12,
277 :     },
278 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9