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

Annotation of /trunk/webwork2/conf/global.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 412 - (view) (download)

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9