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

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9