[system] / trunk / webwork-modperl / conf / global.conf Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/conf/global.conf

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

Revision 390 Revision 412
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.13 2002-06-19 22:45:46 malsyned Exp $ 3# $Id: global.conf,v 1.14 2002-06-25 20:29:19 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 conf => "$webworkRoot/conf", 18 conf => "$webworkRoot/conf",
19 courses => "$webworkRoot/courses", 19 courses => "$webworkRoot/courses",
20 lib => "$webworkRoot/lib", 20 lib => "$webworkRoot/lib",
21 tmp => "$webworkRoot/tmp", 21 tmp => "$webworkRoot/tmp",
22 macros => "$webworkRoot/courseScripts",
22); 23);
23 24
24# this hash defines the locations of files needed by WeBWorK 25# this hash defines the locations of files needed by WeBWorK
25%webworkFiles = ( 26%webworkFiles = (
26 environment => "$webworkDirs{conf}/global.conf", 27 environment => "$webworkDirs{conf}/global.conf",
27); 28);
28 29
30# this hash defines URLs needed by WeBWorK
31my $webworkURLRoot = "/webwork_files";
32%webworkURLs = (
33 base => "$webworkURLRoot",
34 logo => "$webworkURLRoot/images/webwork_logo.gif",
35 courses => "$webworkURLRoot/courses",
36 docs => "/webworkDocs",
37);
38
29# this hash defines the default locations for course subdirectories 39# this hash defines the default locations for course subdirectories
30my $courseRoot = "$webworkDirs{courses}/$courseName"; # easier! 40my $courseRoot = "$webworkDirs{courses}/$courseName";
31%courseDirs = ( 41%courseDirs = (
32 root => "$courseRoot", 42 root => "$courseRoot",
33 DATA => "$courseRoot/DATA", 43 DATA => "$courseRoot/DATA",
34 auth_DATA => "$courseRoot/DATA/.auth", 44 auth_DATA => "$courseRoot/DATA/.auth",
35 html => "$courseRoot/html", 45 html => "$courseRoot/html",
36 html_images => "$courseRoot/html/images", 46 html_images => "$courseRoot/html/images",
37 html_temp => "$courseRoot/html/tmp", 47 html_temp => "$courseRoot/html/tmp",
38 logs => "$courseRoot/logs", 48 logs => "$courseRoot/logs",
39 scoring => "$courseRoot/scoring", 49 scoring => "$courseRoot/scoring",
40 templates => "$courseRoot/templates", 50 templates => "$courseRoot/templates",
51 macros => "$courseRoot/templates/macros",
41); 52);
42 53
43# this hash defines the default locations for course files 54# this hash defines the default locations for course files
44%courseFiles = ( 55%courseFiles = (
45 environment => "$courseDirs{root}/course.conf", 56 environment => "$courseDirs{root}/course.conf",
57);
58
59# this hash defines default URLs
60my $courseURLRoot = "$webworkURLs{courses}/$courseName";
61%courseURLs = (
62 base => "$courseURLRoot",
63 html => "$courseURLRoot/html",
64 html_temp => "$courseURLRoot/html/tmp",
46); 65);
47 66
48%dbInfo = ( 67%dbInfo = (
49 auth_type => "GDBM", 68 auth_type => "GDBM",
50 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 69 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
57 psvn_digits => 5, 76 psvn_digits => 5,
58); 77);
59 78
60%templates = ( 79%templates = (
61 system => "$webworkDirs{conf}/system.template", 80 system => "$webworkDirs{conf}/system.template",
62);
63
64my $url_base = "/webwork_files";
65
66%urls = (
67 base => $url_base,
68 logo => "$url_base/images/webwork_logo.gif",
69); 81);
70 82
71# sessionKeyTimeout defines length of inactivity before a key expires (seconds) 83# sessionKeyTimeout defines length of inactivity before a key expires (seconds)
72$sessionKeyTimeout = 60*30; 84$sessionKeyTimeout = 60*30;
73 85
86# to perform the action, >=5 will allow a TA to, and >=0 will allow a 98# to perform the action, >=5 will allow a TA to, and >=0 will allow a
87# student to perform an action (almost never what you want). 99# student to perform an action (almost never what you want).
88%permissionLevels = ( 100%permissionLevels = (
89 "become_student" => 10, 101 "become_student" => 10,
90); 102);
103
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);

Legend:
Removed from v.390  
changed lines
  Added in v.412

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9