[system] / branches / rel-2-1-patches / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /branches/rel-2-1-patches/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 663 - (view) (download)
Original Path: trunk/webwork2/conf/global.conf.dist

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 663 # $Id: global.conf.dist,v 1.3 2002-11-26 21:49:51 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 :     # $courseName name of the course being used
15 :    
16 :     ################################################################################
17 : sh002i 663 # WeBWorK settings
18 :     ################################################################################
19 : sh002i 654
20 :     %webworkDirs = (
21 :     root => "$webworkRoot",
22 :     bin => "$webworkRoot/bin",
23 :     conf => "$webworkRoot/conf",
24 : sh002i 655 courses => "$webworkRoot/courses",
25 : sh002i 654 lib => "$webworkRoot/lib",
26 :     logs => "$webworkRoot/logs",
27 :     macros => "$webworkRoot/macros",
28 :     tmp => "$webworkRoot/tmp",
29 :     );
30 :    
31 :     %webworkFiles = (
32 :     environment => "$webworkDirs{conf}/global.conf",
33 :     hardcopySnippets => {
34 :     preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
35 :     setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
36 :     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
37 :     setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
38 :     setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
39 :     postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
40 :     },
41 :     screenSnippets => {
42 :     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
43 :     },
44 :     logs => {
45 :     timing => "$webworkDirs{logs}/timing.log",
46 :     transaction => "$courseDirs{logs}/transaction.log",
47 :     },
48 :     );
49 :    
50 : sh002i 663 my $webworkURLRoot = "/webwork"; # *** # this should be detected!
51 : sh002i 654 %webworkURLs = (
52 :     root => "$webworkURLRoot",
53 :     htdocs => "/webwork_files",
54 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 :     );
56 :    
57 : sh002i 663 ################################################################################
58 :     # Default course-specific settings
59 :     ################################################################################
60 :    
61 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
62 :     %courseDirs = (
63 :     root => "$courseRoot",
64 :     DATA => "$courseRoot/DATA",
65 :     auth_DATA => "$courseRoot/DATA/.auth",
66 :     html => "$courseRoot/html",
67 :     html_images => "$courseRoot/html/images",
68 :     html_temp => "$courseRoot/html/tmp",
69 :     logs => "$courseRoot/logs",
70 :     scoring => "$courseRoot/scoring",
71 :     templates => "$courseRoot/templates",
72 :     macros => "$courseRoot/templates/macros",
73 :     );
74 :    
75 :     %courseFiles = (
76 :     environment => "$courseDirs{root}/course.conf",
77 :     );
78 :    
79 :     my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
80 : sh002i 654 %courseURLs = (
81 : sh002i 663 base => "$courseURLRoot", # *** # this should be "root"?
82 : sh002i 654 html => "$courseURLRoot",
83 :     html_temp => "$courseURLRoot/tmp",
84 :     );
85 :    
86 :     ################################################################################
87 : sh002i 663 # Other site-specific options
88 :     ################################################################################
89 : sh002i 654
90 : sh002i 663 %mail = (
91 :     smtpServer => "mail.math.rochester.edu",
92 :     smtpSender => "webwork\@math.rochester.edu",
93 : sh002i 654 );
94 :    
95 : sh002i 663 %externalPrograms = (
96 :     mv => "/bin/mv", # *** is this used? probably not...
97 :     tth => "/usr/local/bin/tth",
98 :     pdflatex => "/usr/local/bin/pdflatex",
99 :     latex => "/usr/local/bin/latex",
100 :     dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
101 :     gif2eps => "$webworkDirs{bin}/gif2eps",
102 :     png2eps => "$webworkDirs{bin}/png2eps",
103 :     gif2png => "$webworkDirs{bin}/gif2png",
104 :     );
105 :    
106 :     ################################################################################
107 :     # Frontend options
108 :     ################################################################################
109 :    
110 : sh002i 654 %templates = (
111 :     system => "$webworkDirs{conf}/barebones.template",
112 :     );
113 :    
114 : sh002i 663 # $sessionKeyTimeout defines seconds of inactivity before a key expires
115 : sh002i 654 $sessionKeyTimeout = 60*30;
116 :    
117 :     # Practice users are users who's names start with $practiceUser
118 :     # (you can comment this out to remove practice user support)
119 :     $practiceUserPrefix = "practice";
120 :    
121 :     # There is a practice user who can be logged in multiple times. He's
122 :     # commented out by default, though, so you don't hurt yourself. It is
123 :     # kindof a backdoor to the practice user system, since he doesn't have a
124 :     # password. Come to think of it, why do we even have this?!
125 :     #$debugPracticeUser = "practice666";
126 :    
127 : sh002i 663 ################################################################################
128 :     # Database and session
129 :     ################################################################################
130 :    
131 :     %dbInfo = (
132 :     auth_type => "GDBM",
133 :     auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
134 :     auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
135 :     auth_keys_file => "$courseDirs{auth_DATA}/keys",
136 :     wwdb_type => "GDBM",
137 :     wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
138 :     cldb_type => "GDBM",
139 :     cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
140 :     psvn_digits => 5,
141 :     );
142 :    
143 : sh002i 654 # This lets you specify a minimum permission level needed to perform
144 :     # certain actions. In the current system, >=10 will allow a professor
145 :     # to perform the action, >=5 will allow a TA to, and >=0 will allow a
146 :     # student to perform an action (almost never what you want).
147 :     %permissionLevels = (
148 :     "become_student" => 10,
149 :     );
150 :    
151 : sh002i 663 ################################################################################
152 :     # PG translation options
153 :     ################################################################################
154 : sh002i 654
155 :     %pg = (
156 :     options => {
157 : sh002i 663 # default translation options
158 : sh002i 654 displayMode => "images",
159 :     showOldAnswers => 1,
160 :     showCorrectAnswers => 0,
161 :     showHints => 0,
162 :     showSolutions => 0,
163 : sh002i 663 catchWarnings => 1,
164 : sh002i 654 # default grader
165 :     grader => "avg_problem_grader",
166 :     },
167 :     # modules lists module names and the packages each contains
168 :     modules => [
169 :     [qw(DynaLoader)],
170 :     [qw(Exporter)],
171 :     [qw(GD)],
172 :    
173 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
174 :     [qw(AnswerHash AnswerEvaluator)],
175 :     [qw(WWPlot)], # required by Circle (and others)
176 :     [qw(Circle)],
177 :     [qw(Complex)],
178 :     [qw(Complex1)],
179 :     [qw(Distributions)],
180 :     [qw(Fraction)],
181 :     [qw(Fun)],
182 :     [qw(Hermite)],
183 :     [qw(Label)],
184 :     [qw(List)],
185 :     [qw(Match)],
186 :     [qw(MatrixReal1)], # required by Matrix
187 :     [qw(Matrix)],
188 :     [qw(Multiple)],
189 :     [qw(PGrandom)],
190 :     [qw(Regression)],
191 :     [qw(Select)],
192 :     [qw(Units)],
193 :     [qw(VectorField)],
194 :     ],
195 :     # defaults used by answer evaluators
196 :     ansEvalDefaults => {
197 :     functAbsTolDefault => .001,
198 :     functLLimitDefault => .0000001,
199 :     functMaxConstantOfIntegration => 1E8,
200 :     functNumOfPoints => 3,
201 :     functRelPercentTolDefault => .1,
202 :     functULimitDefault => .9999999,
203 :     functVarDefault => "x",
204 :     functZeroLevelDefault => 1E-14,
205 :     functZeroLevelTolDefault => 1E-12,
206 :     numAbsTolDefault => .001,
207 :     numFormatDefault => "",
208 :     numRelPercentTolDefault => .1,
209 :     numZeroLevelDefault => 1E-14,
210 :     numZeroLevelTolDefault => 1E-12,
211 :     },
212 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9