[system] / branches / rel-2-1-patches / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /branches/rel-2-1-patches/webwork2/conf/global.conf.dist

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

Revision 1751 Revision 1897
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.46 2004/01/05 01:06:06 sh002i Exp $ 5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.52 2004/02/27 19:01:40 sh002i 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.
71 home => "/webwork2_files/index.html", 71 home => "/webwork2_files/index.html",
72 htdocs => "/webwork2_files", 72 htdocs => "/webwork2_files",
73 htdocs_temp => "/webwork2_files/tmp", 73 htdocs_temp => "/webwork2_files/tmp",
74 equationCache => "/webwork2_files/tmp/equations", 74 equationCache => "/webwork2_files/tmp/equations",
75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
76 oldProf => "/webwork-old/profLogin.pl", 76 oldProf => "/webwork1/profLogin.pl",
77); 77);
78 78
79################################################################################ 79################################################################################
80# Default course-specific settings 80# Default course-specific settings
81################################################################################ 81################################################################################
99 environment => "$courseDirs{root}/course.conf", 99 environment => "$courseDirs{root}/course.conf",
100 motd => "$courseDirs{templates}/motd.txt", 100 motd => "$courseDirs{templates}/motd.txt",
101 logs => { 101 logs => {
102 answer_log => "$courseDirs{logs}/answer_log", 102 answer_log => "$courseDirs{logs}/answer_log",
103 }, 103 },
104 course_info => "$courseDirs{templates}/course_info.txt", 104 course_info => "course_info.txt", # path relative to templates directory
105 login_info => "$courseDirs{templates}/login_info.txt", 105 login_info => "login_info.txt", # path relative to templates directory
106); 106);
107 107
108# quick hack to fix transaction logging. blah. 108# quick hack to fix transaction logging. blah.
109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
111 111
112my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 112my $courseURLRoot = "/webwork2_courses/$courseName";
113%courseURLs = ( 113%courseURLs = (
114 root => "$courseURLRoot", 114 root => "$courseURLRoot",
115 html => "$courseURLRoot", 115 html => "$courseURLRoot",
116 html_temp => "$courseURLRoot/tmp", 116 html_temp => "$courseURLRoot/tmp",
117); 117);
119################################################################################ 119################################################################################
120# Other site-specific options 120# Other site-specific options
121################################################################################ 121################################################################################
122 122
123%mail = ( 123%mail = (
124 smtpServer => "mail.yourdomain.edu", 124 smtpServer => "mail.math.rochester.edu",
125 smtpSender => "webwork\@yourdomain.edu", 125 smtpSender => "webwork\@math.rochester.edu",
126
126 # allowedRecipients defines addresses that the PG system is allowed to 127 # allowedRecipients defines addresses that the PG system is allowed to
127 # send mail to. this prevents subtle PG exploits. This should be set 128 # 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 129 # in course.conf to the addresses of professors of each course. Sending
129 # mail from the PG system (i.e. questionaires, essay questions) will 130 # 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). 131 # fail if this is not set somewhere (either here or in course.conf).
131 #allowedRecipients => [ 132 #allowedRecipients => [
132 # "yourname\@host.yourdomain.edu", 133 # 'prof1@host.yourdomain.edu',
134 # 'prof2@host.yourdomain.edu',
133 #], 135 #],
136
134 # if defined, feedbackRecipients overrides the list of recipients for 137 # if defined, feedbackRecipients overrides the list of recipients for
135 # feedback email. It's appropriate to set this in the course.conf for 138 # 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, 139 # specific courses, but probably not in global.conf. if not defined,
137 # mail is sent to all professors and TAs for a given course 140 # mail is sent to all professors and TAs for a given course
138 #feedbackRecipients => [ 141 #feedbackRecipients => [
139 # "prof1\@host.yourdomain.edu", 142 # 'prof1@host.yourdomain.edu',
140 # "prof2\@host.yourdomain.edu", 143 # 'prof2@host.yourdomain.edu',
141 #], 144 #],
145
142 # feedbackVerbosity: 146 # feedbackVerbosity:
143 # 0: send only the feedback comment and context link 147 # 0: send only the feedback comment and context link
144 # 1: as in 0, plus user, set, problem, and PG data 148 # 1: as in 0, plus user, set, problem, and PG data
145 # 2: as in 1, plus the problem environment (debugging data) 149 # 2: as in 1, plus the problem environment (debugging data)
146 feedbackVerbosity => 1, 150 feedbackVerbosity => 1,
151
152 # defines the size of the Mail Merge editor window
153 # FIXME: should this be here? it's UI, not mail
154 # FIXME: replace this with the auto-size method that TWiki uses
147 editor_window_rows => 15, 155 editor_window_rows => 15,
148 editor_window_columns => 100, 156 editor_window_columns => 100,
149); 157);
150 158
151%externalPrograms = ( 159%externalPrograms = (
152 mkdir => "/bin/mkdir", 160 mkdir => "/bin/mkdir",
153 tth => "/usr/local/bin/tth", 161 tth => "/usr/local/bin/tth",
175# hash %dbLayouts. 183# hash %dbLayouts.
176include "conf/database.conf"; 184include "conf/database.conf";
177 185
178# Select the default database layout. This can be overridden in the course.conf 186# Select the default database layout. This can be overridden in the course.conf
179# file of a particular course. 187# file of a particular course.
188#$dbLayoutName = "sql";
189$dbLayoutName = "gdbm";
190
180*dbLayout = $dbLayouts{sql}; 191*dbLayout = $dbLayouts{$dbLayoutName};
181 192
182################################################################################ 193################################################################################
183# Authorization system 194# Authorization system
184################################################################################ 195################################################################################
185 196
259 # this will be customized in the course.conf file 270 # this will be customized in the course.conf file
260 specialPGEnvironmentVars => { 271 specialPGEnvironmentVars => {
261 PRINT_FILE_NAMES_FOR => [ qw(professor) ], 272 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
262 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 273 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
263 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 274 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
264 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 275 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
265 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 276 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
266 }, 277 },
267 # modules lists module names and the packages each contains 278 # modules lists module names and the packages each contains
268 modules => [ 279 modules => [
269 [qw(DynaLoader)], 280 [qw(DynaLoader)],
270 [qw(Exporter)], 281 [qw(Exporter)],

Legend:
Removed from v.1751  
changed lines
  Added in v.1897

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9