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

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

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

Revision 1794 Revision 2000
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.49 2004/02/12 14:32:48 gage Exp $ 5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.58 2004/05/03 18:01:35 jj Exp $
6# 6#
7# This program is free software; you can redistribute it and/or modify it under 7# This program is free software; you can redistribute it and/or modify it under
8# the terms of either: (a) the GNU General Public License as published by the 8# the terms of either: (a) the GNU General Public License as published by the
9# Free Software Foundation; either version 2, or (at your option) any later 9# Free Software Foundation; either version 2, or (at your option) any later
10# version, or (b) the "Artistic License" which comes with this package. 10# version, or (b) the "Artistic License" which comes with this package.
42 equationCache => "$webworkRoot/htdocs/tmp/equations", 42 equationCache => "$webworkRoot/htdocs/tmp/equations",
43 lib => "$webworkRoot/lib", 43 lib => "$webworkRoot/lib",
44 logs => "$webworkRoot/logs", 44 logs => "$webworkRoot/logs",
45 macros => "$pgRoot/macros", 45 macros => "$pgRoot/macros",
46 tmp => "$webworkRoot/tmp", 46 tmp => "$webworkRoot/tmp",
47 libraryRoot => "", # set to the top of the problem library, if its installed
47); 48);
48 49
49%webworkFiles = ( 50%webworkFiles = (
50 environment => "$webworkDirs{conf}/global.conf", 51 environment => "$webworkDirs{conf}/global.conf",
51 hardcopySnippets => { 52 hardcopySnippets => {
71 home => "/webwork2_files/index.html", 72 home => "/webwork2_files/index.html",
72 htdocs => "/webwork2_files", 73 htdocs => "/webwork2_files",
73 htdocs_temp => "/webwork2_files/tmp", 74 htdocs_temp => "/webwork2_files/tmp",
74 equationCache => "/webwork2_files/tmp/equations", 75 equationCache => "/webwork2_files/tmp/equations",
75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 76 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
76 oldProf => "/webwork-old/profLogin.pl", 77 oldProf => "/webwork1/profLogin.pl",
77); 78);
78 79
79################################################################################ 80################################################################################
80# Default course-specific settings 81# Default course-specific settings
81################################################################################ 82################################################################################
107 108
108# quick hack to fix transaction logging. blah. 109# quick hack to fix transaction logging. blah.
109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 110$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 111$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
111 112
112my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 113my $courseURLRoot = "/webwork2_courses/$courseName";
113%courseURLs = ( 114%courseURLs = (
114 root => "$courseURLRoot", 115 root => "$courseURLRoot",
115 html => "$courseURLRoot", 116 html => "$courseURLRoot",
116 html_temp => "$courseURLRoot/tmp", 117 html_temp => "$courseURLRoot/tmp",
117); 118);
121################################################################################ 122################################################################################
122 123
123%mail = ( 124%mail = (
124 smtpServer => "mail.math.rochester.edu", 125 smtpServer => "mail.math.rochester.edu",
125 smtpSender => "webwork\@math.rochester.edu", 126 smtpSender => "webwork\@math.rochester.edu",
127
126 # allowedRecipients defines addresses that the PG system is allowed to 128 # allowedRecipients defines addresses that the PG system is allowed to
127 # send mail to. this prevents subtle PG exploits. This should be set 129 # send mail to. this prevents subtle PG exploits. This should be set
128 # in course.conf to the addresses of professors of each course. Sending 130 # in course.conf to the addresses of professors of each course. Sending
129 # mail from the PG system (i.e. questionaires, essay questions) will 131 # mail from the PG system (i.e. questionaires, essay questions) will
130 # fail if this is not set somewhere (either here or in course.conf). 132 # fail if this is not set somewhere (either here or in course.conf).
131 #allowedRecipients => [ 133 #allowedRecipients => [
132 # 'yourname@host.yourdomain.edu', 134 # 'prof1@host.yourdomain.edu',
135 # 'prof2@host.yourdomain.edu',
133 #], 136 #],
137
134 # if defined, feedbackRecipients overrides the list of recipients for 138 # if defined, feedbackRecipients overrides the list of recipients for
135 # feedback email. It's appropriate to set this in the course.conf for 139 # feedback email. It's appropriate to set this in the course.conf for
136 # specific courses, but probably not in global.conf. if not defined, 140 # specific courses, but probably not in global.conf. if not defined,
137 # mail is sent to all professors and TAs for a given course 141 # mail is sent to all professors and TAs for a given course
138 #feedbackRecipients => [ 142 #feedbackRecipients => [
139 # 'prof1@host.yourdomain.edu', 143 # 'prof1@host.yourdomain.edu',
140 # 'prof2@host.yourdomain.edu', 144 # 'prof2@host.yourdomain.edu',
141 #], 145 #],
146
142 # feedbackVerbosity: 147 # feedbackVerbosity:
143 # 0: send only the feedback comment and context link 148 # 0: send only the feedback comment and context link
144 # 1: as in 0, plus user, set, problem, and PG data 149 # 1: as in 0, plus user, set, problem, and PG data
145 # 2: as in 1, plus the problem environment (debugging data) 150 # 2: as in 1, plus the problem environment (debugging data)
146 feedbackVerbosity => 1, 151 feedbackVerbosity => 1,
152
153 # defines the size of the Mail Merge editor window
154 # FIXME: should this be here? it's UI, not mail
155 # FIXME: replace this with the auto-size method that TWiki uses
147 editor_window_rows => 15, 156 editor_window_rows => 15,
148 editor_window_columns => 100, 157 editor_window_columns => 100,
149); 158);
150 159
151%externalPrograms = ( 160%externalPrograms = (
152 mkdir => "/bin/mkdir", 161 mkdir => "/bin/mkdir",
153 tth => "/usr/local/bin/tth", 162 tth => "/usr/local/bin/tth",
155 latex => "/usr/local/bin/latex", 164 latex => "/usr/local/bin/latex",
156 dvipng => "/usr/local/bin/dvipng", 165 dvipng => "/usr/local/bin/dvipng",
157 gif2eps => "$webworkDirs{bin}/gif2eps", 166 gif2eps => "$webworkDirs{bin}/gif2eps",
158 png2eps => "$webworkDirs{bin}/png2eps", 167 png2eps => "$webworkDirs{bin}/png2eps",
159 gif2png => "$webworkDirs{bin}/gif2png", 168 gif2png => "$webworkDirs{bin}/gif2png",
169 mysql => "/usr/local/bin/mysql",
160); 170);
161 171
162################################################################################ 172################################################################################
163# Frontend options 173# Frontend options
164################################################################################ 174################################################################################
175# hash %dbLayouts. 185# hash %dbLayouts.
176include "conf/database.conf"; 186include "conf/database.conf";
177 187
178# Select the default database layout. This can be overridden in the course.conf 188# Select the default database layout. This can be overridden in the course.conf
179# file of a particular course. 189# file of a particular course.
180#*dbLayout = $dbLayouts{sql}; 190#$dbLayoutName = "sql";
191$dbLayoutName = "gdbm";
192
181*dbLayout = $dbLayouts{gdbm}; 193*dbLayout = $dbLayouts{$dbLayoutName};
182 194
183################################################################################ 195################################################################################
184# Authorization system 196# Authorization system
185################################################################################ 197################################################################################
186 198
199 modify_student_data => $professor, 211 modify_student_data => $professor,
200 score_sets => $professor, 212 score_sets => $professor,
201 send_mail => $professor, 213 send_mail => $professor,
202 modify_classlist_files => $professor, 214 modify_classlist_files => $professor,
203 modify_set_def_files => $professor, 215 modify_set_def_files => $professor,
216 modify_scoring_files => $professor,
204); 217);
205 218
206################################################################################ 219################################################################################
207# Session options 220# Session options
208################################################################################ 221################################################################################
241 renderer => "WeBWorK::PG::Local", 254 renderer => "WeBWorK::PG::Local",
242 #renderer => "WeBWorK::PG::Remote", 255 #renderer => "WeBWorK::PG::Remote",
243 # directories used by PG 256 # directories used by PG
244 directories => { 257 directories => {
245 # directories used only by PG 258 # directories used only by PG
259 root => "$pgRoot",
246 lib => "$pgRoot/lib", 260 lib => "$pgRoot/lib",
247 macros => "$pgRoot/macros", 261 macros => "$pgRoot/macros",
248 }, 262 },
249 options => { 263 options => {
250 # default translation options 264 # default translation options
260 # this will be customized in the course.conf file 274 # this will be customized in the course.conf file
261 specialPGEnvironmentVars => { 275 specialPGEnvironmentVars => {
262 PRINT_FILE_NAMES_FOR => [ qw(professor) ], 276 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
263 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 277 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
264 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 278 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
265 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 279 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
266 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 280 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
267 }, 281 },
268 # modules lists module names and the packages each contains 282 # modules lists module names and the packages each contains
269 modules => [ 283 modules => [
270 [qw(DynaLoader)], 284 [qw(DynaLoader)],
271 [qw(Exporter)], 285 [qw(Exporter)],
307 numAbsTolDefault => .001, 321 numAbsTolDefault => .001,
308 numFormatDefault => "", 322 numFormatDefault => "",
309 numRelPercentTolDefault => .1, 323 numRelPercentTolDefault => .1,
310 numZeroLevelDefault => 1E-14, 324 numZeroLevelDefault => 1E-14,
311 numZeroLevelTolDefault => 1E-12, 325 numZeroLevelTolDefault => 1E-12,
326 useBaseTenLog => 0,
327 defaultDisplayMatrixStyle => "[s]",
312 }, 328 },
313); 329);

Legend:
Removed from v.1794  
changed lines
  Added in v.2000

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9