[system] / trunk / webwork2 / conf / global.conf Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 341 Revision 474
1################################################################################ 1################################################################################
2# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 2# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
3# $Id: global.conf,v 1.4 2002-06-05 19:27:06 sh002i Exp $ 3# $Id: global.conf,v 1.23 2002-08-20 01:04:25 sh002i Exp $
4################################################################################ 4################################################################################
5 5
6# This file is used to set up the default WeBWorK course environment for all 6# This file is used to set up the default WeBWorK course environment for all
7# requests. Values may be overwritten by the course.conf for a specific course. 7# requests. Values may be overwritten by the course.conf for a specific course.
8# All package variables set in this file are added to the course environment. 8# All package variables set in this file are added to the course environment.
12# $webworkRoot directory that contains the WeBWorK distribution 12# $webworkRoot directory that contains the WeBWorK distribution
13# $courseName name of the course being used 13# $courseName name of the course being used
14 14
15# this hash defines the locations of directories needed by WeBWorK 15# this hash defines the locations of directories needed by WeBWorK
16%webworkDirs = ( 16%webworkDirs = (
17 root => "$webworkRoot", 17 root => "$webworkRoot",
18 bin => "$webworkRoot/bin",
18 conf => "$webworkRoot/conf", 19 conf => "$webworkRoot/conf",
19 courses => "/ww/webwork/courses", # "$webworkRoot/courses", 20 courses => "/ww/webwork/courses", #"$webworkRoot/courses",
20 lib => "$webworkRoot/lib", 21 lib => "$webworkRoot/lib",
22 tmp => "$webworkRoot/tmp",
23 macros => "$webworkRoot/macros",
21); 24);
22 25
23# this hash defines the locations of files needed by WeBWorK 26# this hash defines the locations of files needed by WeBWorK
24%webworkFiles = ( 27%webworkFiles = (
25 environment => "$webworkDirs{conf}/global.conf", 28 environment => "$webworkDirs{conf}/global.conf",
29 # default TeX/PG snippets
30 screenSetHeader => "$webworkDirs{conf}/screenSetHeader.pg",
31 screenProblemPreamble => "$webworkDirs{conf}/screenProblemPreamble.pg",
32 screenProblemPostamble => "$webworkDirs{conf}/screenProblemPostamble.pg",
33 paperSetPreamble => "$webworkDirs{conf}/paperSetPreamble.tex",
34 paperSetHeader => "$webworkDirs{conf}/paperSetHeader.pg",
35 paperSetPostamble => "$webworkDirs{conf}/paperSetPostamble.tex",
36);
37
38# this hash defines URLs needed by WeBWorK
39my $webworkURLRoot = "/modperl-sam";
40%webworkURLs = (
41 root => "$webworkURLRoot",
42 htdocs => "/webwork_files",
43 docs => "/webworkDocs",
26); 44);
27 45
28# this hash defines the default locations for course subdirectories 46# this hash defines the default locations for course subdirectories
29my $courseRoot = "$webworkDirs{courses}/$courseName"; # easier! 47my $courseRoot = "$webworkDirs{courses}/$courseName";
30%courseDirs = ( 48%courseDirs = (
31 root => "$courseRoot", 49 root => "$courseRoot",
32 DATA => "$courseRoot/DATA", 50 DATA => "$courseRoot/DATA",
33 auth_DATA => "$courseRoot/DATA/.auth", 51 auth_DATA => "$courseRoot/DATA/.auth",
34 html => "$courseRoot/html", 52 html => "$courseRoot/html",
35 html_images => "$courseRoot/html/images", 53 html_images => "$courseRoot/html/images",
36 html_temp => "$courseRoot/html/tmp", 54 html_temp => "$courseRoot/html/tmp",
37 logs => "$courseRoot/logs", 55 logs => "$courseRoot/logs",
38 scoring => "$courseRoot/scoring", 56 scoring => "$courseRoot/scoring",
39 templates => "$courseRoot/templates", 57 templates => "$courseRoot/templates",
58 macros => "$courseRoot/templates/macros",
40); 59);
41 60
42# this hash defines the default locations for course files 61# this hash defines the default locations for course-specific files
43%courseFiles = ( 62%courseFiles = (
44 environment => "$courseDirs{root}/course.conf", 63 environment => "$courseDirs{root}/course.conf",
64);
65
66# this hash defines default URLs
67my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName";
68%courseURLs = (
69 base => "$courseURLRoot",
70 html => "$courseURLRoot",
71 html_temp => "$courseURLRoot/tmp",
45); 72);
46 73
47%dbInfo = ( 74%dbInfo = (
48 auth_type => "GDBM", 75 auth_type => "GDBM",
49 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 76 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
50 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 77 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
51 auth_keys_file => "$courseDirs{auth_DATA}/keys", 78 auth_keys_file => "$courseDirs{auth_DATA}/keys",
52 wwdb_type => "DGBM", 79 wwdb_type => "GDBM",
53 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", 80 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
54 cldb_type => "GDBM", 81 cldb_type => "GDBM",
55 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 82 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
83 psvn_digits => 5,
84);
85
86%templates = (
87 system => "$webworkDirs{conf}/barebones.template",
56); 88);
57 89
58# sessionKeyTimeout defines length of inactivity before a key expires (seconds) 90# sessionKeyTimeout defines length of inactivity before a key expires (seconds)
59$sessionKeyTimeout = 60*30; 91$sessionKeyTimeout = 60*30;
92
93# Practice users are users who's names start with $practiceUser
94# (you can comment this out to remove practice user support)
95$practiceUserPrefix = "practice";
96
97# There is a practice user who can be logged in multiple times. He's
98# commented out by default, though, so you don't hurt yourself. It is
99# kindof a backdoor to the practice user system, since he doesn't have a
100# password. Come to think of it, why do we even have this?!
101#$debugPracticeUser = "practice666";
102
103# This lets you specify a minimum permission level needed to perform
104# certain actions. In the current system, >=10 will allow a professor
105# to perform the action, >=5 will allow a TA to, and >=0 will allow a
106# student to perform an action (almost never what you want).
107%permissionLevels = (
108 "become_student" => 10,
109);
110
111# PG translation stuff
112%pg = (
113 options => {
114 # default translation options:
115 displayMode => "images",
116 showOldAnswers => 1,
117 showCorrectAnswers => 0,
118 showHints => 0,
119 showSolutions => 0,
120 # default grader
121 grader => "avg_problem_grader",
122 },
123 # modules lists module names and the packages each contains
124 modules => [
125 [qw(DynaLoader)],
126 [qw(Exporter)],
127 [qw(GD)],
128
129 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
130 [qw(AnswerHash AnswerEvaluator)],
131 [qw(WWPlot)], # required by Circle (and others)
132 [qw(Circle)],
133 [qw(Complex)],
134 [qw(Complex1)],
135 [qw(Distributions)],
136 [qw(Fraction)],
137 [qw(Fun)],
138 [qw(Hermite)],
139 [qw(Label)],
140 [qw(List)],
141 [qw(Match)],
142 [qw(MatrixReal1)], # required by Matrix
143 [qw(Matrix)],
144 [qw(Multiple)],
145 [qw(PGrandom)],
146 [qw(Regression)],
147 [qw(Select)],
148 [qw(Units)],
149 [qw(VectorField)],
150 ],
151 # defaults used by answer evaluators
152 ansEvalDefaults => {
153 functAbsTolDefault => .001,
154 functLLimitDefault => .0000001,
155 functMaxConstantOfIntegration => 1E8,
156 functNumOfPoints => 3,
157 functRelPercentTolDefault => .1,
158 functULimitDefault => .9999999,
159 functVarDefault => "x",
160 functZeroLevelDefault => 1E-14,
161 functZeroLevelTolDefault => 1E-12,
162 numAbsTolDefault => .001,
163 numFormatDefault => "",
164 numRelPercentTolDefault => .1,
165 numZeroLevelDefault => 1E-14,
166 numZeroLevelTolDefault => 1E-12,
167 },
168);
169
170%externalPrograms = (
171 tth => "/usr/local/bin/tth",
172 math2img => "$webworkDirs{bin}/math2img",
173);

Legend:
Removed from v.341  
changed lines
  Added in v.474

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9