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

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

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

Revision 2505 Revision 5617
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-2007 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.89 2004/07/12 16:20:41 sh002i Exp $ 5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.204 2008/03/13 17:53:12 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.
17 17
18# This file is used to set up the default WeBWorK course environment for all 18# This file is used to set up the default WeBWorK course environment for all
19# requests. Values may be overwritten by the course.conf for a specific course. 19# requests. Values may be overwritten by the course.conf for a specific course.
20# All package variables set in this file are added to the course environment. 20# All package variables set in this file are added to the course environment.
21# If you wish to set a variable here but omit it from the course environment, 21# If you wish to set a variable here but omit it from the course environment,
22# use the "my" keyword. The following variables are set in the WeBWorK Apache 22# use the "my" keyword. The $webwork_dir variable is set in the WeBWorK Apache
23# configuration file (webwork.apache-config) and available for use here: 23# configuration file (webwork.apache-config) and is available for use here. In
24#
25# $webwork_url The base URL handled by Apache::WeBWorK.
26# $webwork_dir The path to the base webwork2 directory.
27# $pg_dir The path to the base pg directory.
28#
29# $webwork_htdocs_url The base URL of the WeBWorK htdocs directory.
30# $webwork_htdocs_dir The path to the WeBWorK htdocs directory.
31#
32# $webwork_courses_url The base URL of the WeBWorK courses directory.
33# $webwork_courses_dir The path to the WeBWorK courses directory.
34#
35# In addition, the $courseName variable holds the name of the current course. 24# addition, the $courseName variable holds the name of the current course.
36 25
37################################################################################ 26################################################################################
38# System-wide locations (directories and URLs) 27# Seed variables
39################################################################################ 28################################################################################
40 29
41# The root directory, set by webwork_root variable in Apache configuration. 30# Set these variables to correspond to your configuration and preferences. You
42$webworkDirs{root} = "$webwork_dir"; 31# will need to restart the webserver to reset the variables in this section.
43 32
44# Location of system-wide data files. 33# URL of WeBWorK handler. If WeBWorK is to be on the web server root, use "".
45$webworkDirs{DATA} = "$webworkDirs{root}/DATA"; 34$webwork_url = "/webwork2";
46 35
47# Used for temporary storage of uploaded files. 36# Root directory of PG.
48$webworkDirs{uploadCache} = "$webworkDirs{DATA}/uploads"; 37$pg_dir = "/opt/webwork/pg";
49 38
50# Location of utility programs. 39# URL and path to htdocs directory.
51$webworkDirs{bin} = "$webworkDirs{root}/bin"; 40$webwork_htdocs_url = "/webwork2_files";
41$webwork_htdocs_dir = "$webwork_dir/htdocs";
52 42
53# Location of configuration files, templates, snippets, etc. 43# URL and path to courses directory.
54$webworkDirs{conf} = "$webworkDirs{root}/conf"; 44$webwork_courses_url = "/webwork2_course_files";
45#$webwork_courses_dir = "/opt/webwork/courses";
55 46
56# Location of course directories.
57$webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses";
58
59# Contains log files.
60$webworkDirs{logs} = "$webworkDirs{root}/logs";
61
62# Contains non-web-accessible temporary files, such as TeX working directories.
63$webworkDirs{tmp} = "$webworkDirs{root}/tmp";
64
65##### The following locations are web-accessible.
66
67# The root URL (usually /webwork2), set by <Location> in Apache configuration.
68$webworkURLs{root} = "$webwork_url";
69
70# Location of system-wide web-accessible files, such as equation images, and
71# help files.
72$webworkDirs{htdocs} = "$webwork_htdocs_dir" || "$webworkDirs{root}/htdocs";
73$webworkURLs{htdocs} = "$webwork_htdocs_url";
74
75# Location of web-accessible temporary files, such as equation images.
76$webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp";
77$webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp";
78
79# Location of cached equation images.
80$webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations";
81$webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations";
82
83# Contains context-sensitive help files.
84$webworkDirs{local_help} = "$webworkDirs{htdocs}/helpFiles";
85$webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles";
86
87# URL of general WeBWorK documentation.
88$webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs";
89
90# URL of WeBWorK 1.x profLogin.pl script, for access to old professor pages.
91# Note that both systems must share a single "courses" directory for this to be
92# useful. Leave this blank to disable
93$webworkURLs{oldProf} = "/webwork1/profLogin.pl";
94
95# URL of WeBWorK Bugzilla database.
96$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl";
97
98# Location of jsMath script, used for the jsMath display mode.
99$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js";
100
101# Location of ASCIIMathML script, used for the asciimath display mode.
102$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js";
103
104################################################################################ 47################################################################################
105# Defaults for course-specific locations (directories and URLs) 48# Paths to external programs
106################################################################################ 49################################################################################
107 50
108# The root directory of the current course. (The ID of the current course is 51# system utilties
109# available in $courseName.) 52$externalPrograms{mv} = "/bin/mv";
110$courseDirs{root} = "$webworkDirs{courses}/$courseName"; 53$externalPrograms{cp} = "/bin/cp";
54$externalPrograms{rm} = "/bin/rm";
55$externalPrograms{mkdir} = "/bin/mkdir";
56$externalPrograms{tar} = "/bin/tar";
57$externalPrograms{gzip} = "/bin/gzip";
111 58
112# Location of course-specific data files, such as WW1 (GDBM) database files. 59# equation rendering/hardcopy utiltiies
113$courseDirs{DATA} = "$courseDirs{root}/DATA"; 60$externalPrograms{latex} = "/usr/bin/latex";
61$externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape";
62$externalPrograms{dvipng} = "/usr/bin/dvipng";
63$externalPrograms{tth} = "/usr/bin/tth";
114 64
115# Location of authentication data files when using a WW1 (GDBM) database. 65# NetPBM - basic image manipulation utilities
116$courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth"; 66# Most sites only need to configure $netpbm_prefix.
67my $netpbm_prefix = "/usr/bin";
68$externalPrograms{giftopnm} = "$netpbm_prefix/giftopnm";
69$externalPrograms{ppmtopgm} = "$netpbm_prefix/ppmtopgm";
70$externalPrograms{pnmtops} = "$netpbm_prefix/pnmtops";
71$externalPrograms{pnmtopng} = "$netpbm_prefix/pnmtopng";
72$externalPrograms{pngtopnm} = "$netpbm_prefix/pngtopnm";
117 73
118# Location of course HTML files, passed to PG. 74# url checker
119$courseDirs{html} = "$courseDirs{root}/html"; 75$externalPrograms{checkurl} = "/usr/local/bin/lwp-request -mHEAD "; # or "/usr/local/bin/w3c -head "
120$courseURLs{html} = "$webwork_courses_url/$courseName";
121 76
122# Location of course image files, passed to PG. 77# image conversions utiltiies
123$courseDirs{html_images} = "$courseDirs{html}/images"; 78# the source file is given on stdin, and the output expected on stdout.
79$externalPrograms{gif2eps} = "$externalPrograms{giftopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null";
80$externalPrograms{png2eps} = "$externalPrograms{pngtopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null";
81$externalPrograms{gif2png} = "$externalPrograms{giftopnm} | $externalPrograms{pnmtopng}";
124 82
125# Location of web-accessible, course-specific temporary files, like static and 83# mysql clients
126# dynamically-generated PG graphics. 84$externalPrograms{mysql} = "/usr/bin/mysql";
127$courseDirs{html_temp} = "$courseDirs{html}/tmp"; 85$externalPrograms{mysqldump} = "/usr/bin/mysqldump";
128$courseURLs{html_temp} = "$courseURLs{html}/tmp";
129
130# Location of course-specific logs, like the transaction log.
131$courseDirs{logs} = "$courseDirs{root}/logs";
132
133# Location of scoring files.
134$courseDirs{scoring} = "$courseDirs{root}/scoring";
135
136# Location of PG templates and set definition files.
137$courseDirs{templates} = "$courseDirs{root}/templates";
138
139# Location of course-specific macro files.
140$courseDirs{macros} = "$courseDirs{templates}/macros";
141
142# Location of mail-merge templates.
143$courseDirs{email} = "$courseDirs{templates}/email";
144
145################################################################################
146# System-wide files
147################################################################################
148
149# Location of this file.
150$webworkFiles{environment} = "$webworkDirs{conf}/global.conf";
151
152# Flat-file database used to protect against MD5 hash collisions. TeX equations
153# are hashed to determine the name of the image file. There is a tiny chance of
154# a collision between two TeX strings. This file allows for that. However, this
155# is slow, so most people chose not to worry about it. Set this to "" if you
156# don't want to use the equation cache file.
157$webworkFiles{equationCacheDB} = ""; # "$webworkDirs{DATA}/equationcache";
158
159##### Hardcopy snippets are used in constructing a TeX file for hardcopy output.
160##### They should contain TeX code unless otherwise noted.
161
162# The preamble is the first thing in the TeX file.
163$webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex";
164
165# The setHeader preceeds each set. It is a PG file.
166$webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg",
167
168# The problem divider goes between problems.
169$webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex";
170
171# The set footer goes after each set. Is is a PG file.
172$webworkFiles{hardcopySnippets}{setFooter} = "$webworkDirs{conf}/snippets/hardcopySetFooter.pg";
173
174# The set divider goes between sets (in multiset output).
175$webworkFiles{hardcopySnippets}{setDivider} = "$webworkDirs{conf}/snippets/hardcopySetDivider.tex";
176
177# The user divider does between users (in multiuser output).
178$webworkFiles{hardcopySnippets}{userDivider} = "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex";
179
180# The postabmle is the last thing in the TeX file.
181$webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex";
182
183##### Screen snippets are used when displaying problem sets on the screen.
184
185# The set header is displayed on the problem set page. It is a PG file.
186$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
187
188################################################################################
189# Course-specific files
190################################################################################
191
192# The course configuration file.
193$courseFiles{environment} = "$courseDirs{root}/course.conf";
194
195# File contents are displayed after login, on the problem sets page. Path given
196# here is relative to the templates directory.
197$courseFiles{course_info} = "course_info.txt";
198
199# File contents are displayed on the login page. Path given here is relative to
200# the templates directory.
201$courseFiles{login_info} = "login_info.txt";
202
203# Additional library buttons can be added to the Library Browser (SetMaker.pm)
204# by adding the libraries you want to the following line. For each key=>value
205# in the list, if a directory (or link to a directory) with name 'key' appears
206# in the templates directory, then a button with name 'value' will be placed at
207# the top of the problem browser. (No button will appear if there is no
208# directory or link with the given name in the templates directory.) For
209# example,
210#
211# $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"};
212#
213# would add two buttons, one for the Rochester library and one for the ASU
214# library, provided templates/rochester and templates/asu exists.
215#
216$courseFiles{problibs} = {};
217
218################################################################################
219# Logs
220################################################################################
221
222# FIXME: take logs out of %webworkFiles/%courseFiles and give them their own
223# top-level hash.
224
225# Logs data about how long it takes to process problems. (Do not confuse this
226# with the /other/ timing log which can be set by WeBWorK::Timing and is used
227# for benchmarking system performance in general. At some point, this timing
228# mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.)
229$webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log";
230
231# The transaction log contains data from each recorded answer submission. This
232# is useful if the database becomes corrupted.
233$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log";
234
235# The answer log stores a history of all users' submitted answers.
236$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
237 86
238################################################################################ 87################################################################################
239# Mail settings 88# Mail settings
240################################################################################ 89################################################################################
241 90
246# When connecting to the above server, WeBWorK will send this address in the 95# When connecting to the above server, WeBWorK will send this address in the
247# MAIL FROM command. This has nothing to do with the "From" address on the mail 96# MAIL FROM command. This has nothing to do with the "From" address on the mail
248# message. It can really be anything, but some mail servers require it contain 97# message. It can really be anything, but some mail servers require it contain
249# a valid mail domain, or at least be well-formed. 98# a valid mail domain, or at least be well-formed.
250$mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; 99$mail{smtpSender} = 'webwork@yourserver.yourschool.edu';
251 100
101# Seconds to wait before timing out when connecting to the SMTP server.
102$mail{smtpTimeout} = 30;
103
252# AllowedRecipients defines addresses that the PG system is allowed to send mail 104# AllowedRecipients defines addresses that the PG system is allowed to send mail
253# to. this prevents subtle PG exploits. This should be set in course.conf to the 105# to. this prevents subtle PG exploits. This should be set in course.conf to the
254# addresses of professors of each course. Sending mail from the PG system (i.e. 106# addresses of professors of each course. Sending mail from the PG system (i.e.
255# questionaires, essay questions) will fail if this is not set somewhere (either 107# questionaires, essay questions) will fail if this is not set somewhere (either
256# here or in course.conf). 108# here or in course.conf).
257$mail{allowedRecipients} = [ 109$mail{allowedRecipients} = [
258 #'prof1@yourserver.yourdomain.edu', 110 #'prof1@yourserver.yourdomain.edu',
259 #'prof2@yourserver.yourdomain.edu', 111 #'prof2@yourserver.yourdomain.edu',
260]; 112];
261 113
262# If defined, feedbackRecipients overrides the list of recipients for feedback 114# By default, feeback is sent to all users who have permission to
263# email. It's appropriate to set this in the course.conf for specific courses, 115# receive_feedback. If this list is non-empty, feedback is also sent to the
264# but probably not in global.conf. if not defined, mail is sent to all 116# addresses specified here.
265# professors and TAs for a given course 117#
118# * If you want to disable feedback altogether, leave this empty and set
119# submit_feeback => $nobody in %permissionLevels below. This will cause the
120# feedback button to go away as well.
121#
122# * If you want to send email ONLY to addresses in this list, set
123# receive_feedback => $nobody in %permissionLevels below.
124#
125# It's often useful to set this in the course.conf to change the behavior of
126# feedback for a specific course.
127#
128# Items in this list may be bare addresses, or RFC822 mailboxes, like:
129# 'Joe User <joe.user@example.com>'
130# The advantage of this form is that the resulting email will include the name
131# of the recipient in the "To" field of the email.
132#
266$mail{feedbackRecipients} = [ 133$mail{feedbackRecipients} = [
267 #'prof1@yourserver.yourdomain.edu', 134 #'prof1@yourserver.yourdomain.edu',
268 #'prof2@yourserver.yourdomain.edu', 135 #'prof2@yourserver.yourdomain.edu',
269]; 136];
270 137
138# Feedback subject line -- the following escape sequences are recognized:
139#
140# %c = course ID
141# %u = user ID
142# %s = set ID
143# %p = problem ID
144# %x = section
145# %r = recitation
146# %% = literal percent sign
147#
148
149$mail{feedbackSubjectFormat} = "[WWfeedback] course:%c user:%u set:%s prob:%p sec:%x rec:%r";
150
271# feedbackVerbosity: 151# feedbackVerbosity:
272# 0: send only the feedback comment and context link 152# 0: send only the feedback comment and context link
273# 1: as in 0, plus user, set, problem, and PG data 153# 1: as in 0, plus user, set, problem, and PG data
274# 2: as in 1, plus the problem environment (debugging data) 154# 2: as in 1, plus the problem environment (debugging data)
275$mail{feedbackVerbosity} = 1; 155$mail{feedbackVerbosity} = 1;
276 156
277# Defines the size of the Mail Merge editor window 157# Defines the size of the Mail Merge editor window
278# FIXME: should this be here? it's UI, not mail 158# FIXME: should this be here? it's UI, not mail
279# FIXME: replace this with the auto-size method that TWiki uses 159# FIXME: replace this with the auto-size method that TWiki uses
280$mail{editor_window_rows} = 15; 160$mail{editor_window_rows} = 15;
281$mail{editor_window_columns} = 100; 161$mail{editor_window_columns} = 100;
282 162
283################################################################################ 163# Use this to customize the text of the feedback button.
284# Paths to external programs 164$feedback_button_name = "Email instructor";
285################################################################################
286 165
287$externalPrograms{mkdir} = "/bin/mkdir"; 166# If this value is true, feedback will only be sent to users with the same
288$externalPrograms{mysql} = "/usr/local/bin/mysql"; 167# section as the user initiating the feedback.
168$feedback_by_section = 0;
289 169
290$externalPrograms{latex} = "/usr/local/bin/latex";
291$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex";
292$externalPrograms{dvipng} = "/usr/local/bin/dvipng";
293$externalPrograms{tth} = "/usr/local/bin/tth";
294
295# These image conversion utilities are included in the WeBWorK distribution.
296$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps";
297$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps";
298$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png";
299
300################################################################################ 170################################################################################
301# Site defaults (FIXME: what other things could be "site defaults"?) 171# Theme
302################################################################################ 172################################################################################
303 173
304# Status strings -- lists valid status values and their names. If your site uses 174$defaultTheme = "math";
305# additional values, add them here. 175$defaultThemeTemplate = "system";
306$siteDefaults{status} = { 176
307 A => "Audit", 177################################################################################
308 audit => "Audit", 178# System-wide locations (directories and URLs)
309 D => "Drop", 179################################################################################
310 drop => "Drop", 180
311 withdraw => "Drop", 181# The root directory, set by webwork_root variable in Apache configuration.
312 C => "Enrolled", 182$webworkDirs{root} = "$webwork_dir";
313 current => "Enrolled", 183
314 enrolled => "Enrolled", 184# Location of system-wide data files.
185$webworkDirs{DATA} = "$webworkDirs{root}/DATA";
186
187# Used for temporary storage of uploaded files.
188$webworkDirs{uploadCache} = "$webworkDirs{DATA}/uploads";
189
190# Location of utility programs.
191$webworkDirs{bin} = "$webworkDirs{root}/bin";
192
193# Location of configuration files, templates, snippets, etc.
194$webworkDirs{conf} = "$webworkDirs{root}/conf";
195
196# Location of theme templates.
197$webworkDirs{templates} = "$webworkDirs{conf}/templates";
198
199# Location of course directories.
200$webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses";
201
202# Contains log files.
203$webworkDirs{logs} = "$webworkDirs{root}/logs";
204
205# Contains non-web-accessible temporary files, such as TeX working directories.
206$webworkDirs{tmp} = "$webworkDirs{root}/tmp";
207
208# The (absolute) destinations of symbolic links that are OK for the FileManager to follow.
209# (any subdirectory of these is a valid target for a symbolic link.)
210# For example:
211# $webworkDirs{valid_symlinks} = ["$webworkDirs{courses}/modelCourse/templates","/ww2/common/sets"];
212$webworkDirs{valid_symlinks} = [];
213
214################################################################################
215##### The following locations are web-accessible.
216################################################################################
217
218# The root URL (usually /webwork2), set by <Location> in Apache configuration.
219$webworkURLs{root} = "$webwork_url";
220
221# Location of system-wide web-accessible files, such as equation images, and
222# help files.
223$webworkDirs{htdocs} = "$webwork_htdocs_dir" || "$webworkDirs{root}/htdocs";
224$webworkURLs{htdocs} = "$webwork_htdocs_url";
225
226# Location of web-accessible temporary files, such as equation images.
227$webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp";
228$webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp";
229
230# Location of cached equation images.
231$webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations";
232$webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations";
233
234# Contains context-sensitive help files.
235$webworkDirs{local_help} = "$webworkDirs{htdocs}/helpFiles";
236$webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles";
237
238# URL of general WeBWorK documentation.
239$webworkURLs{docs} = "http://webwork.maa.org";
240
241# URL of WeBWorK Bugzilla database.
242$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/";
243
244# Location of CSS
245$webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/${defaultTheme}.css";
246
247# Location of jsMath script, used for the jsMath display mode.
248$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath-ww.js";
249
250# Location of ASCIIMathML script, used for the asciimath display mode.
251$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js";
252
253# Location of LaTeXMathML script, used for the LaTeXMathML display mode.
254$webworkURLs{LaTeXMathML} = "$webworkURLs{htdocs}/LaTeXMathML/LaTeXMathML.js";
255
256################################################################################
257# Defaults for course-specific locations (directories and URLs)
258################################################################################
259
260# The root directory of the current course. (The ID of the current course is
261# available in $courseName.)
262$courseDirs{root} = "$webworkDirs{courses}/$courseName";
263
264# Location of course-specific data files.
265$courseDirs{DATA} = "$courseDirs{root}/DATA";
266
267# Location of course HTML files, passed to PG.
268$courseDirs{html} = "$courseDirs{root}/html";
269$courseURLs{html} = "$webwork_courses_url/$courseName";
270
271# Location of course image files, passed to PG.
272$courseDirs{html_images} = "$courseDirs{html}/images";
273
274# Location of web-accessible, course-specific temporary files, like static and
275# dynamically-generated PG graphics.
276$courseDirs{html_temp} = "$courseDirs{html}/tmp";
277$courseURLs{html_temp} = "$courseURLs{html}/tmp";
278
279# Location of course-specific logs, like the transaction log.
280$courseDirs{logs} = "$courseDirs{root}/logs";
281
282# Location of scoring files.
283$courseDirs{scoring} = "$courseDirs{root}/scoring";
284
285# Location of PG templates and set definition files.
286$courseDirs{templates} = "$courseDirs{root}/templates";
287
288# Location of course-specific macro files.
289$courseDirs{macros} = "$courseDirs{templates}/macros";
290
291# Location of mail-merge templates.
292$courseDirs{email} = "$courseDirs{templates}/email";
293
294# Location of temporary editing files.
295$courseDirs{tmpEditFileDir} = "$courseDirs{templates}/tmpEdit";
296
297# If this is set to a non-empty value (i.e. in course.conf), WeBWorK's usual
298# email feedback mechanism will be replaced with a link to the given URL.
299# See also $feedback_button_name, above.
300$courseURLs{feedbackURL} = "";
301
302# mail merge status directory
303$courseDirs{mailmerge} = "$courseDirs{DATA}/mailmerge";
304
305################################################################################
306# System-wide files
307################################################################################
308
309# Location of this file.
310$webworkFiles{environment} = "$webworkDirs{conf}/global.conf";
311
312# Flat-file database used to protect against MD5 hash collisions. TeX equations
313# are hashed to determine the name of the image file. There is a tiny chance of
314# a collision between two TeX strings. This file allows for that. However, this
315# is slow, so most people chose not to worry about it. Set this to "" if you
316# don't want to use the equation cache file.
317$webworkFiles{equationCacheDB} = ""; # "$webworkDirs{DATA}/equationcache";
318
319################################################################################
320# Hardcopy snippets are used in constructing a TeX file for hardcopy output.
321# They should contain TeX code unless otherwise noted.
322################################################################################
323# The preamble is the first thing in the TeX file.
324$webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex";
325
326# The setHeader preceeds each set. It is a PG file.
327$webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg",
328
329# The problem divider goes between problems.
330$webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex";
331
332# The set footer goes after each set. Is is a PG file.
333$webworkFiles{hardcopySnippets}{setFooter} = "$webworkDirs{conf}/snippets/hardcopySetFooter.pg";
334
335# The set divider goes between sets (in multiset output).
336$webworkFiles{hardcopySnippets}{setDivider} = "$webworkDirs{conf}/snippets/hardcopySetDivider.tex";
337
338# The user divider does between users (in multiuser output).
339$webworkFiles{hardcopySnippets}{userDivider} = "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex";
340
341# The postabmle is the last thing in the TeX file.
342$webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex";
343
344##### Screen snippets are used when displaying problem sets on the screen.
345
346# The set header is displayed on the problem set page. It is a PG file.
347$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
348
349# A PG template for creation of new problems.
350$webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem2.pg"; # screenSetHeader.pg"
351
352# A site info "message of the day" file
353$webworkFiles{site_info} = "$webworkDirs{htdocs}/site_info.txt";
354
355################################################################################
356# Course-specific files
357################################################################################
358
359# The course configuration file.
360$courseFiles{environment} = "$courseDirs{root}/course.conf";
361
362# The course simple configuration file (holds web-based configuratoin).
363$courseFiles{simpleConfig} = "$courseDirs{root}/simple.conf";
364
365# File contents are displayed after login, on the problem sets page. Path given
366# here is relative to the templates directory.
367$courseFiles{course_info} = "course_info.txt";
368
369# File contents are displayed on the login page. Path given here is relative to
370# the templates directory.
371$courseFiles{login_info} = "login_info.txt";
372
373# Additional library buttons can be added to the Library Browser (SetMaker.pm)
374# by adding the libraries you want to the following line. For each key=>value
375# in the list, if a directory (or link to a directory) with name 'key' appears
376# in the templates directory, then a button with name 'value' will be placed at
377# the top of the problem browser. (No button will appear if there is no
378# directory or link with the given name in the templates directory.) For
379# example,
380#
381# $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"};
382#
383# would add two buttons, one for the Rochester library and one for the ASU
384# library, provided templates/rochester and templates/asu exists either as
385# subdirectories or links to other directories.
386#
387$courseFiles{problibs} = {
388# rochesterLibrary => "Rochester",
389# asuLibrary => "Arizona State",
390# dcdsLibrary => "Detroit CDS",
391# dartmouthLibrary => "Dartmouth",
392# indianaLibrary => "Indiana",
393# osuLibrary => "Ohio State",
394# capaLibrary => "CAPA",
315}; 395};
316 396
317################################################################################ 397################################################################################
318# Frontend options 398# Status system
319################################################################################ 399################################################################################
320 400
321%templates = ( 401# This is the default status given to new students and students with invalid
322 system => "$webworkDirs{conf}/templates/ur.template", 402# or missing statuses.
403$default_status = "Enrolled";
404
405# The first abbreviation in the abbreviations list is the canonical
406# abbreviation, and will be used when setting the status value in a user record
407# or an exported classlist file.
408#
409# Results are undefined if more than one status has the same abbreviation.
410#
411# The four behaviors that are controlled by status are:
412# allow_course_access => is this user allowed to log in?
413# include_in_assignment => is this user included when assigning as set to "all" users?
414# include_in_stats => is this user included in statistical reports?
415# include_in_email => is this user included in emails sent to the class?
416# include_in_scoring => is this user included in score reports?
417
418%statuses = (
419 Enrolled => {
420 abbrevs => [qw/ C c current enrolled /],
421 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email include_in_scoring /],
422 },
423 Audit => {
424 abbrevs => [qw/ A a audit /],
425 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email /],
426 },
427 Drop => {
428 abbrevs => [qw/ D d drop withdraw /],
429 behaviors => [qw/ /],
430 },
431 Proctor => {
432 abbrevs => [qw/ P p proctor /],
433 behaviors => [qw/ /],
434 },
323); 435);
324 436
325################################################################################ 437################################################################################
326# Database options 438# Database options
327################################################################################ 439################################################################################
440
441# these variables are used by database.conf. we define them here so that editing
442# database.conf isn't necessary.
443$database_dsn = "dbi:mysql:webwork";
444$database_username = "webworkWrite";
445$database_password = "";
446$database_debug = 0;
447
448# Variables for sql_moodle database layout.
449$moodle_dsn = "dbi:mysql:moodle";
450$moodle_username = $database_username;
451$moodle_password = $database_password;
452$moodle_table_prefix = "mdl_";
453$moodle17 = 0;
328 454
329# Several database are defined in the file conf/database.conf and stored in the 455# Several database are defined in the file conf/database.conf and stored in the
330# hash %dbLayouts. 456# hash %dbLayouts.
331include "conf/database.conf"; 457include "conf/database.conf";
332 458
333# Select the default database layout. This can be overridden in the course.conf 459# Select the default database layout. This can be overridden in the course.conf
334# file of a particular course. If you choose "gdbm", WeBWorK will be able to 460# file of a particular course. The only database layout supported in WW 2.1.4
335# use courses from WeBWorK 1 without first adding course.conf files to them. 461# and up is "sql_single".
336# However, the recommended database layout for new courses is "sql". This can 462$dbLayoutName = "sql_single";
337# be set when creating a course.
338$dbLayoutName = "sql"; # or "gdbm";
339 463
340# This sets the symbol "dbLayout" as an alias for the selected database layout. 464# This sets the symbol "dbLayout" as an alias for the selected database layout.
341*dbLayout = $dbLayouts{$dbLayoutName}; 465*dbLayout = $dbLayouts{$dbLayoutName};
342 466
343################################################################################ 467################################################################################
344# Problem library options 468# Problem library options
345################################################################################ 469################################################################################
470
471# For configuration instructions, see:
472# http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/DatabaseProblemLibrary
346 473
347# The directory containing the problem library files. Set to "" if no problem 474# The directory containing the problem library files. Set to "" if no problem
348# library is installed. 475# library is installed.
349$problemLibrary{root} = ""; 476$problemLibrary{root} = "";
350 477
351# The name of the SQL database containing problem metadata 478# Problem Library version
352$problemLibrary{sourceSQL} = "ProblemLibrary"; 479# Version 1 is in use. Version 2 will be released soon.
353
354# The user name to use when connecting to the problem library database
355$problemLibrary{userSQL} = "webworkRead";
356
357# The password to use when connecting to the problem library database
358$problemLibrary{passwordSQL} = ""; 480$problemLibrary{version} = "2";
481
482# Problem Library SQL database connection information
483$problemLibrary_db = {
484 dbsource => $database_dsn,
485 user => $database_username,
486 passwd => $database_password,
487};
488
489################################################################################
490# Logs
491################################################################################
492
493# FIXME: take logs out of %webworkFiles/%courseFiles and give them their own
494# top-level hash.
495
496# Logs data about how long it takes to process problems. (Do not confuse this
497# with the /other/ timing log which can be set by WeBWorK::Timing and is used
498# for benchmarking system performance in general. At some point, this timing
499# mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.)
500$webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log";
501
502# Logs courses created via the web-based Course Administration module.
503$webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log";
504
505# The transaction log contains data from each recorded answer submission. This
506# is useful if the database becomes corrupted.
507$webworkFiles{logs}{transaction} = "$webworkDirs{logs}/${courseName}_transaction.log";
508
509# The answer log stores a history of all users' submitted answers.
510$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
511
512# Log logins.
513$courseFiles{logs}{login_log} = "$courseDirs{logs}/login.log";
514
515# Log for almost every click. By default it is the empty string, which
516# turns this log off. If you want it turned on, we suggest
517# "$courseDirs{logs}/activity.log"
518# When turned on, this log can get quite large.
519$courseFiles{logs}{activity_log} = '';
520
521################################################################################
522# Site defaults (FIXME: what other things could be "site defaults"?)
523################################################################################
524
525# Set the default timezone of courses on this server. To get a list of valid
526# timezones, run:
527#
528# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names'
529#
530# To get a list of valid timezone "links" (deprecated names), run:
531#
532# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::links'
533#
534# If left blank, the system timezone will be used. This is usually what you
535# want. You might want to set this if your server is NOT in the same timezone as
536# your school. If just a few courses are in a different timezone, set this in
537# course.conf for the affected courses instead.
538#
539$siteDefaults{timezone} = "";
540
541# The default_templates_course is used by default to create a new course.
542# The contents of the templates directory are copied from this course
543# to the new course being created.
544$siteDefaults{default_templates_course} ="modelCourse";
545
546################################################################################
547# Authentication system
548################################################################################
549
550# FIXME This mechanism is a little awkward and probably should be merged with
551# the dblayout selection system somehow.
552
553# Select the authentication module to use for normal logins.
554#
555# If this value is a string, the given authentication module will be used
556# regardless of the database layout. If it is a hash, the database layout name
557# will be looked up in the hash and the resulting value will be used as the
558# authentication module. The special hash key "*" is used if no entry for the
559# current database layout is found.
560#
561$authen{user_module} = {
562 sql_moodle => "WeBWorK::Authen::Moodle",
563 "*" => "WeBWorK::Authen",
564};
565
566# Select the authentication module to use for proctor logins.
567#
568# A string or a hash is accepted, as above.
569#
570$authen{proctor_module} = "WeBWorK::Authen::Proctor";
571
572# Options for particular authentication modules
573
574$authen{moodle_options} = {
575 dsn => $moodle_dsn,
576 username => $moodle_username,
577 password => $moodle_password,
578 table_prefix => $moodle_table_prefix,
579 moodle17 => $moodle17,
580};
581
582$authen{ldap_options} = {
583 # hosts to attempt to connect to, in order. for example:
584 # auth.myschool.edu -- uses LDAP scheme and port 389
585 # ldap://auth.myschool.edu:666 -- non-standard port
586 # ldaps://auth.myschool.edu -- uses LDAPS scheme and port 636
587 # ldaps://auth.myschool.edu:389 -- SSL on non-SSL port
588 net_ldap_hosts => [
589 "ldaps://corona-dmc.its.rochester.edu",
590 "ldaps://corona-dmb.acs.rochester.edu",
591 ],
592 # connection options
593 net_ldap_options => {
594 timeout => 30,
595 version => 3,
596 },
597 # base to use when searching for user's DN
598 net_ldap_base => "ou=people,dc=rochester,dc=edu",
599 # If LDAP rejects password, check it against the WeBWorK password database
600 failover => 1,
601};
359 602
360################################################################################ 603################################################################################
361# Authorization system 604# Authorization system
362################################################################################ 605################################################################################
363 606
364# This lets you specify a minimum permission level needed to perform certain 607# this section lets you define which groups of users can perform which actions.
365# actions. In the current system, >=10 will allow a professor to perform the
366# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
367# action (almost never what you want).
368 608
369my $student = 0; 609# this hash maps a numeric permission level to the name of a role. the number
370my $ta = 5; 610# assigned to a role is significant -- roles with higher numbers are considered
611# "more privileged", and are included when that role is listed for a privilege
612# below.
613#
614%userRoles = (
615 guest => -5,
616 student => 0,
617 login_proctor => 2,
618 grade_proctor => 3,
619 ta => 5,
371my $professor = 10; 620 professor => 10,
372my $nobody = undef; 621);
373 622
623# this hash maps operations to the roles that are allowed to perform those
624# operations. the role listed and any role with a higher permission level (in
625# the %userRoles hash) will be allowed to perform the operation. If the role
626# is undefined, no users will be allowed to perform the operation.
627#
374%permissionLevels = ( 628%permissionLevels = (
629 login => "guest",
375 report_bugs => $student, 630 report_bugs => "student",
631 submit_feedback => "student",
632 change_password => "student",
633 change_email_address => "student",
376 634
377 view_multiple_sets => $ta, 635 proctor_quiz_login => "login_proctor",
378 view_unopened_sets => $ta, 636 proctor_quiz_grade => "grade_proctor",
379 view_unpublished_sets => $ta, 637 view_proctored_tests => "student",
380 view_answers => $ta, 638 view_hidden_work => "ta",
381 639
382 become_student => $professor, 640 view_multiple_sets => "ta",
383 access_instructor_tools => $ta, 641 view_unopened_sets => "ta",
384 score_sets => $professor, 642 view_unpublished_sets => "ta",
385 send_mail => $professor, 643 view_answers => "ta",
644 view_ip_restricted_sets => "ta",
386 645
387 create_and_delete_problem_sets => $professor,
388 assign_problem_sets => $professor,
389 modify_problem_sets => $professor,
390 modify_student_data => $professor, 646 become_student => "professor",
647 access_instructor_tools => "ta",
648 score_sets => "professor",
649 send_mail => "professor",
650 receive_feedback => "ta",
391 651
652 create_and_delete_problem_sets => "professor",
653 assign_problem_sets => "professor",
654 modify_problem_sets => "professor",
655 modify_student_data => "professor",
392 modify_classlist_files => $professor, 656 modify_classlist_files => "professor",
393 modify_set_def_files => $professor, 657 modify_set_def_files => "professor",
394 modify_scoring_files => $professor, 658 modify_scoring_files => "professor",
395 modify_problem_template_files => $professor, 659 modify_problem_template_files => "professor",
660 manage_course_files => "professor",
396 661
397 create_and_delete_courses => $professor, 662 create_and_delete_courses => "professor",
398 fix_course_databases => $professor, 663 fix_course_databases => "professor",
399 664
400 ##### Behavior of the interactive problem processor ##### 665 ##### Behavior of the interactive problem processor #####
401 666
402 show_correct_answers_before_answer_date => $ta, 667 show_correct_answers_before_answer_date => "ta",
403 show_solutions_before_answer_date => $ta, 668 show_solutions_before_answer_date => "ta",
404 avoid_recording_answers => $ta, 669 avoid_recording_answers => "ta",
405 670 # Below this level, old answers are never initially shown
671 can_show_old_answers_by_default => "student",
672 # at this level, we look at showOldAnswers for default value
673 # even after the due date
674 can_always_use_show_old_answers_default => "professor",
406 check_answers_before_open_date => $ta, 675 check_answers_before_open_date => "ta",
407 check_answers_after_open_date_with_attempts => $ta, 676 check_answers_after_open_date_with_attempts => "ta",
408 check_answers_after_open_date_without_attempts => $student, 677 check_answers_after_open_date_without_attempts => "guest",
409 check_answers_after_due_date => $student, 678 check_answers_after_due_date => "guest",
410 check_answers_after_answer_date => $student, 679 check_answers_after_answer_date => "guest",
411
412 record_answers_when_acting_as_student => $nobody, 680 record_answers_when_acting_as_student => undef,
413
414 # "record_answers_when_acting_as_student" takes precedence 681 # "record_answers_when_acting_as_student" takes precedence
415 # over the following for professors acting as students: 682 # over the following for professors acting as students:
416 record_answers_before_open_date => $nobody, 683 record_answers_before_open_date => undef,
417 record_answers_after_open_date_with_attempts => $student, 684 record_answers_after_open_date_with_attempts => "student",
418 record_answers_after_open_date_without_attempts => $nobody, 685 record_answers_after_open_date_without_attempts => undef,
419 record_answers_after_due_date => $nobody, 686 record_answers_after_due_date => undef,
420 record_answers_after_answer_date => $nobody, 687 record_answers_after_answer_date => undef,
688 dont_log_past_answers => "professor",
689 # does the user get to see a dump of the problem?
690 view_problem_debugging_info => "ta",
691
692 ##### Behavior of the Hardcopy Processor #####
693
694 download_hardcopy_multiuser => "ta",
695 download_hardcopy_multiset => "ta",
696 download_hardcopy_format_pdf => "guest",
697 download_hardcopy_format_tex => "ta",
421); 698);
699
700# This is the default permission level given to new students and students with
701# invalid or missing permission levels.
702$default_permission_level = $userRoles{student};
422 703
423################################################################################ 704################################################################################
424# Session options 705# Session options
425################################################################################ 706################################################################################
426 707
427# $sessionKeyTimeout defines seconds of inactivity before a key expires 708# $sessionKeyTimeout defines seconds of inactivity before a key expires
428$sessionKeyTimeout = 60*30; 709$sessionKeyTimeout = 60*30;
429 710
430# $sessionKeyLength defines the length (in characters) of the session key 711# $sessionKeyLength defines the length (in characters) of the session key
431$sessionKeyLength = 40; 712$sessionKeyLength = 32;
432 713
433# @sessionKeyChars lists the legal session key characters 714# @sessionKeyChars lists the legal session key characters
434@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); 715@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9');
435 716
436# Practice users are users who's names start with $practiceUser 717# Practice users are users who's names start with $practiceUser
437# (you can comment this out to remove practice user support) 718# (you can comment this out to remove practice user support)
438$practiceUserPrefix = "practice"; 719$practiceUserPrefix = "practice";
439 720
440# There is a practice user who can be logged in multiple times. He's 721# There is a practice user who can be logged in multiple times. He's
441# commented out by default, though, so you don't hurt yourself. It is 722# commented out by default, though, so you don't hurt yourself. It is
442# kindof a backdoor to the practice user system, since he doesn't have a 723# kindof a backdoor to the practice user system, since he doesn't have a
443# password. Come to think of it, why do we even have this?! 724# password. Come to think of it, why do we even have this?!
444#$debugPracticeUser = "practice666"; 725#$debugPracticeUser = "practice666";
726
727# Option for gateway tests; $gatewayGracePeriod is the time in seconds
728# after the official due date during which we'll still grade the test
729$gatewayGracePeriod = 120;
445 730
446################################################################################ 731################################################################################
447# PG subsystem options 732# PG subsystem options
448################################################################################ 733################################################################################
449 734
453 "plainText", # display raw TeX for math expressions 738 "plainText", # display raw TeX for math expressions
454 "formattedText", # format math expressions using TtH 739 "formattedText", # format math expressions using TtH
455 "images", # display math expressions as images generated by dvipng 740 "images", # display math expressions as images generated by dvipng
456 "jsMath", # render TeX math expressions on the client side using jsMath 741 "jsMath", # render TeX math expressions on the client side using jsMath
457 "asciimath", # render TeX math expressions on the client side using ASCIIMathML 742 "asciimath", # render TeX math expressions on the client side using ASCIIMathML
743 "LaTeXMathML", # render TeX math expressions on the client side using LaTeXMathML
458]; 744];
459 745
460#### Default settings for the PG translator 746#### Default settings for the PG translator
461 747
462# Default display mode. Should be listed above. 748# Default display mode. Should be listed above.
485 771
486# Only the local renderer is supported in this version. 772# Only the local renderer is supported in this version.
487$pg{renderer} = "WeBWorK::PG::Local"; 773$pg{renderer} = "WeBWorK::PG::Local";
488 774
489# The remote renderer connects to an XML-RPC PG rendering server. 775# The remote renderer connects to an XML-RPC PG rendering server.
490#$pg{renderer} = "WeBWorK::PG::Remote"' 776#$pg{renderer} = "WeBWorK::PG::Remote";
491 777
492##### Renderer-dependent options 778##### Renderer-dependent options
493 779
494# The remote renderer has one option: 780# The remote renderer has one option:
495$pg{renderers}{"WeBWorK::PG::Remote"} = { 781$pg{renderers}{"WeBWorK::PG::Remote"} = {
501 787
502# "images" mode has several settings: 788# "images" mode has several settings:
503$pg{displayModeOptions}{images} = { 789$pg{displayModeOptions}{images} = {
504 # Determines the method used to align images in output. Can be 790 # Determines the method used to align images in output. Can be
505 # "baseline", "absmiddle", or "mysql". 791 # "baseline", "absmiddle", or "mysql".
506 dvipng_align => 'baseline', 792 dvipng_align => 'mysql',
507 793
508 # If we choose mysql, we need information on connecting to the 794 # If mysql is chosen, this information indicates which database contains the
509 # database. Whatever you use here, you have to create the database 795 # 'depths' table. Since 2.3.0, the depths table is kept in the main webwork
510 # and grant read/write priveleges to the user listed here. To create 796 # database. (If you are upgrading from an earlier version of webwork, and
511 # the database in mysql, as root use: 797 # used the mysql method in the past, you should move your existing 'depths'
512 # 798 # table to the main database.)
513 # CREATE DATABASE DvipngDepths;
514 # USE DvipngDepths;
515 # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5));
516 # GRANT ALL ON DvipngDepths.* TO webworkWrite;
517 #
518 # In the last statement, "webworkWrite" should match the user below.
519 dvipng_depth_db => { 799 dvipng_depth_db => {
520 dbsource => 'dbi:mysql:DvipngDepths', 800 dbsource => $database_dsn,
521 user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, 801 user => $database_username,
522 passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, 802 passwd => $database_password,
523 }, 803 },
804};
805
806$pg{displayModeOptions}{jsMath} = {
807 reportMissingFonts => 0, # set to 1 to allow the missing font message
808 missingFontMessage => undef, # set to an HTML string to replace the missing font message
809 noImageFonts => 0, # set to 1 if you didn't install the jsMath image fonts
810 processDoubleClicks => 1, # set to 0 to disable double-click on math to get TeX source
524}; 811};
525 812
526##### Directories used by PG 813##### Directories used by PG
527 814
528# The root of the PG directory tree (from pg_root in Apache config). 815# The root of the PG directory tree (from pg_root in Apache config).
529$pg{directories}{root} = "$pg_dir"; 816$pg{directories}{root} = "$pg_dir";
530$pg{directories}{lib} = "$pg{directories}{root}/lib"; 817$pg{directories}{lib} = "$pg{directories}{root}/lib";
531$pg{directories}{macros} = "$pg{directories}{root}/macros"; 818$pg{directories}{macros} = "$pg{directories}{root}/macros";
819
820#
821# The macro file search path. Each directory in this list is seached
822# (in this order) by loadMacros() when it looks for a .pl file.
823#
824$pg{directories}{macrosPath} = [
825 ".", # search the problem file's directory
826 $courseDirs{macros},
827 $pg{directories}{macros},
828];
829
830# The applet search path. If a full URL is given, it is used unmodified. If an
831# absolute path is given, the URL of the local server is prepended to it.
832#
833# For example, if an item is "/math/applets",
834# and the local server is "https://math.yourschool.edu",
835# then the URL "https://math.yourschool.edu/math/applets" will be used.
836#
837$pg{directories}{appletPath} = [ # paths to search for applets (requires full url)
838 "$webworkURLs{htdocs}/applets",
839 "$courseURLs{html}/applets",
840];
532 841
533##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) 842##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
534 843
535# Users for whom to print the file name of the PG file being processed. 844# Users for whom to print the file name of the PG file being processed.
536$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; 845$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
542$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", 851$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/",
543$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", 852$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
544 853
545# Size in pixels of dynamically-generated images, i.e. graphs. 854# Size in pixels of dynamically-generated images, i.e. graphs.
546$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, 855$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400,
856
857# To disable the Parser-based versions of num_cmp and fun_cmp, and use the
858# original versions instead, set this value to 1.
859$pg{specialPGEnvironmentVars}{useOldAnswerMacros} = 0;
860
861# Strings to insert at the start and end of the body of a problem
862# (at beginproblem() and ENDDOCUMENT) in various modes. More display modes
863# can be added if different behaviours are desired (e.g., HTML_dpng,
864# HTML_asciimath, etc.). These parts are not used in the Library browser.
865
866$pg{specialPGEnvironmentVars}{problemPreamble} = { TeX => '', HTML=> '' };
867$pg{specialPGEnvironmentVars}{problemPostamble} = { TeX => '', HTML=>'' };
868
869# To have the problem body indented and boxed, uncomment:
870
871# $pg{specialPGEnvironmentVars}{problemPreamble}{HTML} = '<BLOCKQUOTE>
872# <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=15 BGCOLOR=#E8E8E8><TR><TD>';
873# $pg{specialPGEnvironmentVars}{problemPostamble}{HTML} = '</TD></TR></TABLE>
874# </BLOCKQUOTE>';
547 875
548##### PG modules to load 876##### PG modules to load
549 877
550# The first item of each list is the module to load. The remaining items are 878# The first item of each list is the module to load. The remaining items are
551# additional packages to import. 879# additional packages to import.
553${pg}{modules} = [ 881${pg}{modules} = [
554 [qw(DynaLoader)], 882 [qw(DynaLoader)],
555 [qw(Exporter)], 883 [qw(Exporter)],
556 [qw(GD)], 884 [qw(GD)],
557 885
558 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 886 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand utf8)],
559 [qw(AnswerHash AnswerEvaluator)], 887 [qw(AnswerHash AnswerEvaluator)],
560 [qw(WWPlot)], # required by Circle (and others) 888 [qw(WWPlot)], # required by Circle (and others)
561 [qw(Circle)], 889 [qw(Circle)],
562 [qw(Complex)], 890 [qw(Complex)],
563 [qw(Complex1)], 891 [qw(Complex1)],
574 [qw(PGrandom)], 902 [qw(PGrandom)],
575 [qw(Regression)], 903 [qw(Regression)],
576 [qw(Select)], 904 [qw(Select)],
577 [qw(Units)], 905 [qw(Units)],
578 [qw(VectorField)], 906 [qw(VectorField)],
907 [qw(Parser Value)],
908 [qw(Parser::Legacy)],
909# [qw(SaveFile)],
910# [qw(Applet FlashApplet)],
579]; 911];
580 912
581##### Answer evaluatior defaults 913##### Answer evaluatior defaults
582 914
583$pg{ansEvalDefaults} = { 915$pg{ansEvalDefaults} = {
605 937
606# Define the old names for the various "root" variables. 938# Define the old names for the various "root" variables.
607$webworkRoot = $webworkDirs{root}; 939$webworkRoot = $webworkDirs{root};
608$webworkURLRoot = $webworkURLs{root}; 940$webworkURLRoot = $webworkURLs{root};
609$pgRoot = $pg{directories}{root}; 941$pgRoot = $pg{directories}{root};
942

Legend:
Removed from v.2505  
changed lines
  Added in v.5617

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9