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

1 : sh002i 654 #!perl
2 :     ################################################################################
3 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4 : sh002i 671 # $Id: global.conf.dist,v 1.5 2002-12-09 18:40:02 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 671 # *** $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 : sh002i 671 my $webworkURLRoot = "/webwork"; # *** # this should be detected! (see above)
52 : sh002i 654 %webworkURLs = (
53 : malsyned 670 root => "$webworkURLRoot",
54 :     htdocs => "/webwork_files",
55 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
56 :     oldProf => "/webwork-old/profLogin.pl",
57 : sh002i 671 # *** what would oldProf be if it was a "normal" installation?
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 :     );
81 :    
82 :     my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
83 : sh002i 654 %courseURLs = (
84 : sh002i 663 base => "$courseURLRoot", # *** # this should be "root"?
85 : sh002i 654 html => "$courseURLRoot",
86 :     html_temp => "$courseURLRoot/tmp",
87 :     );
88 :    
89 :     ################################################################################
90 : sh002i 663 # Other site-specific options
91 :     ################################################################################
92 : sh002i 654
93 : sh002i 663 %mail = (
94 :     smtpServer => "mail.math.rochester.edu",
95 :     smtpSender => "webwork\@math.rochester.edu",
96 : sh002i 654 );
97 :    
98 : sh002i 663 %externalPrograms = (
99 :     mv => "/bin/mv", # *** is this used? probably not...
100 :     tth => "/usr/local/bin/tth",
101 :     pdflatex => "/usr/local/bin/pdflatex",
102 :     latex => "/usr/local/bin/latex",
103 :     dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
104 :     gif2eps => "$webworkDirs{bin}/gif2eps",
105 :     png2eps => "$webworkDirs{bin}/png2eps",
106 :     gif2png => "$webworkDirs{bin}/gif2png",
107 :     );
108 :    
109 :     ################################################################################
110 :     # Frontend options
111 :     ################################################################################
112 :    
113 : sh002i 654 %templates = (
114 :     system => "$webworkDirs{conf}/barebones.template",
115 :     );
116 :    
117 : sh002i 663 # $sessionKeyTimeout defines seconds of inactivity before a key expires
118 : sh002i 654 $sessionKeyTimeout = 60*30;
119 :    
120 :     # Practice users are users who's names start with $practiceUser
121 :     # (you can comment this out to remove practice user support)
122 :     $practiceUserPrefix = "practice";
123 :    
124 :     # There is a practice user who can be logged in multiple times. He's
125 :     # commented out by default, though, so you don't hurt yourself. It is
126 :     # kindof a backdoor to the practice user system, since he doesn't have a
127 :     # password. Come to think of it, why do we even have this?!
128 :     #$debugPracticeUser = "practice666";
129 :    
130 : sh002i 663 ################################################################################
131 :     # Database and session
132 :     ################################################################################
133 :    
134 :     %dbInfo = (
135 :     auth_type => "GDBM",
136 :     auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
137 :     auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
138 :     auth_keys_file => "$courseDirs{auth_DATA}/keys",
139 :     wwdb_type => "GDBM",
140 :     wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
141 :     cldb_type => "GDBM",
142 :     cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
143 :     psvn_digits => 5,
144 :     );
145 :    
146 : sh002i 654 # This lets you specify a minimum permission level needed to perform
147 :     # certain actions. In the current system, >=10 will allow a professor
148 :     # to perform the action, >=5 will allow a TA to, and >=0 will allow a
149 :     # student to perform an action (almost never what you want).
150 :     %permissionLevels = (
151 :     "become_student" => 10,
152 :     );
153 :    
154 : sh002i 663 ################################################################################
155 :     # PG translation options
156 :     ################################################################################
157 : sh002i 654
158 :     %pg = (
159 :     options => {
160 : sh002i 663 # default translation options
161 : sh002i 654 displayMode => "images",
162 :     showOldAnswers => 1,
163 :     showCorrectAnswers => 0,
164 :     showHints => 0,
165 :     showSolutions => 0,
166 : sh002i 663 catchWarnings => 1,
167 : sh002i 654 # default grader
168 :     grader => "avg_problem_grader",
169 :     },
170 :     # modules lists module names and the packages each contains
171 :     modules => [
172 :     [qw(DynaLoader)],
173 :     [qw(Exporter)],
174 :     [qw(GD)],
175 :    
176 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
177 :     [qw(AnswerHash AnswerEvaluator)],
178 :     [qw(WWPlot)], # required by Circle (and others)
179 :     [qw(Circle)],
180 :     [qw(Complex)],
181 :     [qw(Complex1)],
182 :     [qw(Distributions)],
183 :     [qw(Fraction)],
184 :     [qw(Fun)],
185 :     [qw(Hermite)],
186 :     [qw(Label)],
187 :     [qw(List)],
188 :     [qw(Match)],
189 :     [qw(MatrixReal1)], # required by Matrix
190 :     [qw(Matrix)],
191 :     [qw(Multiple)],
192 :     [qw(PGrandom)],
193 :     [qw(Regression)],
194 :     [qw(Select)],
195 :     [qw(Units)],
196 :     [qw(VectorField)],
197 :     ],
198 :     # defaults used by answer evaluators
199 :     ansEvalDefaults => {
200 :     functAbsTolDefault => .001,
201 :     functLLimitDefault => .0000001,
202 :     functMaxConstantOfIntegration => 1E8,
203 :     functNumOfPoints => 3,
204 :     functRelPercentTolDefault => .1,
205 :     functULimitDefault => .9999999,
206 :     functVarDefault => "x",
207 :     functZeroLevelDefault => 1E-14,
208 :     functZeroLevelTolDefault => 1E-12,
209 :     numAbsTolDefault => .001,
210 :     numFormatDefault => "",
211 :     numRelPercentTolDefault => .1,
212 :     numZeroLevelDefault => 1E-14,
213 :     numZeroLevelTolDefault => 1E-12,
214 :     },
215 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9