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

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 699 # $Id: global.conf.dist,v 1.7 2003-01-09 19:03:53 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 654 # $courseName name of the course being used
16 :    
17 :     ################################################################################
18 : sh002i 663 # WeBWorK settings
19 :     ################################################################################
20 : sh002i 654
21 :     %webworkDirs = (
22 :     root => "$webworkRoot",
23 :     bin => "$webworkRoot/bin",
24 :     conf => "$webworkRoot/conf",
25 : sh002i 655 courses => "$webworkRoot/courses",
26 : sh002i 654 lib => "$webworkRoot/lib",
27 :     logs => "$webworkRoot/logs",
28 :     macros => "$webworkRoot/macros",
29 :     tmp => "$webworkRoot/tmp",
30 :     );
31 :    
32 :     %webworkFiles = (
33 :     environment => "$webworkDirs{conf}/global.conf",
34 :     hardcopySnippets => {
35 :     preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
36 :     setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
37 :     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
38 :     setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
39 :     setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
40 :     postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
41 :     },
42 :     screenSnippets => {
43 :     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
44 :     },
45 :     logs => {
46 :     timing => "$webworkDirs{logs}/timing.log",
47 :     transaction => "$courseDirs{logs}/transaction.log",
48 :     },
49 :     );
50 :    
51 :     %webworkURLs = (
52 : malsyned 670 root => "$webworkURLRoot",
53 :     htdocs => "/webwork_files",
54 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 :     oldProf => "/webwork-old/profLogin.pl",
56 : sh002i 654 );
57 :    
58 : sh002i 663 ################################################################################
59 :     # Default course-specific settings
60 :     ################################################################################
61 :    
62 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
63 :     %courseDirs = (
64 :     root => "$courseRoot",
65 :     DATA => "$courseRoot/DATA",
66 :     auth_DATA => "$courseRoot/DATA/.auth",
67 :     html => "$courseRoot/html",
68 :     html_images => "$courseRoot/html/images",
69 :     html_temp => "$courseRoot/html/tmp",
70 :     logs => "$courseRoot/logs",
71 :     scoring => "$courseRoot/scoring",
72 :     templates => "$courseRoot/templates",
73 :     macros => "$courseRoot/templates/macros",
74 :     );
75 :    
76 :     %courseFiles = (
77 :     environment => "$courseDirs{root}/course.conf",
78 :     );
79 :    
80 :     my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
81 : sh002i 654 %courseURLs = (
82 : sh002i 699 root => "$courseURLRoot",
83 : sh002i 654 html => "$courseURLRoot",
84 :     html_temp => "$courseURLRoot/tmp",
85 :     );
86 :    
87 :     ################################################################################
88 : sh002i 663 # Other site-specific options
89 :     ################################################################################
90 : sh002i 654
91 : sh002i 663 %mail = (
92 :     smtpServer => "mail.math.rochester.edu",
93 :     smtpSender => "webwork\@math.rochester.edu",
94 : sh002i 654 );
95 :    
96 : sh002i 663 %externalPrograms = (
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