| 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: webwork2/conf/global.conf.dist,v 1.88 2004/07/12 02:30:21 sh002i Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.107 2004/10/04 18:24:14 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. |
| 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/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 = "$webwork_dir/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 | $externalPrograms{mkdir} = "/bin/mkdir"; |
| 109 | # available in $courseName.) |
52 | $externalPrograms{mysql} = "/usr/local/bin/mysql"; |
| 110 | $courseDirs{root} = "$webworkDirs{courses}/$courseName"; |
|
|
| 111 | |
53 | |
| 112 | # Location of course-specific data files, such as WW1 (GDBM) database files. |
54 | $externalPrograms{latex} = "/usr/local/bin/latex"; |
| 113 | $courseDirs{DATA} = "$courseDirs{root}/DATA"; |
55 | $externalPrograms{pdflatex} = "/usr/local/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files |
| 114 | |
56 | $externalPrograms{dvipng} = "/usr/local/bin/dvipng"; |
| 115 | # Location of authentication data files when using a WW1 (GDBM) database. |
57 | $externalPrograms{tth} = "/usr/local/bin/tth"; |
| 116 | $courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth"; |
|
|
| 117 | |
|
|
| 118 | # Location of course HTML files, passed to PG. |
|
|
| 119 | $courseDirs{html} = "$courseDirs{root}/html"; |
|
|
| 120 | $courseURLs{html} = "$webwork_courses_url/$courseName"; |
|
|
| 121 | |
|
|
| 122 | # Location of course image files, passed to PG. |
|
|
| 123 | $courseDirs{html_images} = "$courseDirs{html}/images"; |
|
|
| 124 | |
|
|
| 125 | # Location of web-accessible, course-specific temporary files, like static and |
|
|
| 126 | # dynamically-generated PG graphics. |
|
|
| 127 | $courseDirs{html_temp} = "$courseDirs{html}/tmp"; |
|
|
| 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 | |
58 | |
| 238 | ################################################################################ |
59 | ################################################################################ |
| 239 | # Mail settings |
60 | # Mail settings |
| 240 | ################################################################################ |
61 | ################################################################################ |
| 241 | |
62 | |
| … | |
… | |
| 261 | |
82 | |
| 262 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
83 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
| 263 | # email. It's appropriate to set this in the course.conf for specific courses, |
84 | # email. It's appropriate to set this in the course.conf for specific courses, |
| 264 | # but probably not in global.conf. if not defined, mail is sent to all |
85 | # but probably not in global.conf. if not defined, mail is sent to all |
| 265 | # professors and TAs for a given course |
86 | # professors and TAs for a given course |
| 266 | $mail{feedbackRecipients} = [ |
87 | #$mail{feedbackRecipients} = [ |
| 267 | #'prof1@yourserver.yourdomain.edu', |
88 | # 'prof1@yourserver.yourdomain.edu', |
| 268 | #'prof2@yourserver.yourdomain.edu', |
89 | # 'prof2@yourserver.yourdomain.edu', |
| 269 | ]; |
90 | #]; |
| 270 | |
91 | |
| 271 | # feedbackVerbosity: |
92 | # feedbackVerbosity: |
| 272 | # 0: send only the feedback comment and context link |
93 | # 0: send only the feedback comment and context link |
| 273 | # 1: as in 0, plus user, set, problem, and PG data |
94 | # 1: as in 0, plus user, set, problem, and PG data |
| 274 | # 2: as in 1, plus the problem environment (debugging data) |
95 | # 2: as in 1, plus the problem environment (debugging data) |
| … | |
… | |
| 279 | # FIXME: replace this with the auto-size method that TWiki uses |
100 | # FIXME: replace this with the auto-size method that TWiki uses |
| 280 | $mail{editor_window_rows} = 15; |
101 | $mail{editor_window_rows} = 15; |
| 281 | $mail{editor_window_columns} = 100; |
102 | $mail{editor_window_columns} = 100; |
| 282 | |
103 | |
| 283 | ################################################################################ |
104 | ################################################################################ |
|
|
105 | # System-wide locations (directories and URLs) |
|
|
106 | ################################################################################ |
|
|
107 | |
|
|
108 | # The root directory, set by webwork_root variable in Apache configuration. |
|
|
109 | $webworkDirs{root} = "$webwork_dir"; |
|
|
110 | |
|
|
111 | # Location of system-wide data files. |
|
|
112 | $webworkDirs{DATA} = "$webworkDirs{root}/DATA"; |
|
|
113 | |
|
|
114 | # Used for temporary storage of uploaded files. |
|
|
115 | $webworkDirs{uploadCache} = "$webworkDirs{DATA}/uploads"; |
|
|
116 | |
|
|
117 | # Location of utility programs. |
|
|
118 | $webworkDirs{bin} = "$webworkDirs{root}/bin"; |
|
|
119 | |
|
|
120 | # Location of configuration files, templates, snippets, etc. |
|
|
121 | $webworkDirs{conf} = "$webworkDirs{root}/conf"; |
|
|
122 | |
|
|
123 | # Location of course directories. |
|
|
124 | $webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses"; |
|
|
125 | |
|
|
126 | # Contains log files. |
|
|
127 | $webworkDirs{logs} = "$webworkDirs{root}/logs"; |
|
|
128 | |
|
|
129 | # Contains non-web-accessible temporary files, such as TeX working directories. |
|
|
130 | $webworkDirs{tmp} = "$webworkDirs{root}/tmp"; |
|
|
131 | |
|
|
132 | ##### The following locations are web-accessible. |
|
|
133 | |
|
|
134 | # The root URL (usually /webwork2), set by <Location> in Apache configuration. |
|
|
135 | $webworkURLs{root} = "$webwork_url"; |
|
|
136 | |
|
|
137 | # Location of system-wide web-accessible files, such as equation images, and |
|
|
138 | # help files. |
|
|
139 | $webworkDirs{htdocs} = "$webwork_htdocs_dir" || "$webworkDirs{root}/htdocs"; |
|
|
140 | $webworkURLs{htdocs} = "$webwork_htdocs_url"; |
|
|
141 | |
|
|
142 | # Location of web-accessible temporary files, such as equation images. |
|
|
143 | $webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp"; |
|
|
144 | $webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp"; |
|
|
145 | |
|
|
146 | # Location of cached equation images. |
|
|
147 | $webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations"; |
|
|
148 | $webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations"; |
|
|
149 | |
|
|
150 | # Contains context-sensitive help files. |
|
|
151 | $webworkDirs{local_help} = "$webworkDirs{htdocs}/helpFiles"; |
|
|
152 | $webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles"; |
|
|
153 | |
|
|
154 | # URL of general WeBWorK documentation. |
|
|
155 | $webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs"; |
|
|
156 | |
|
|
157 | # URL of WeBWorK 1.x profLogin.pl script, for access to old professor pages. |
|
|
158 | # Note that both systems must share a single "courses" directory for this to be |
|
|
159 | # useful. Leave this blank to disable |
|
|
160 | $webworkURLs{oldProf} = "/webwork1/profLogin.pl"; |
|
|
161 | |
|
|
162 | # URL of WeBWorK Bugzilla database. |
|
|
163 | $webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; |
|
|
164 | |
|
|
165 | # Location of jsMath script, used for the jsMath display mode. |
|
|
166 | $webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; |
|
|
167 | |
|
|
168 | # Location of ASCIIMathML script, used for the asciimath display mode. |
|
|
169 | $webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; |
|
|
170 | |
|
|
171 | ################################################################################ |
|
|
172 | # Defaults for course-specific locations (directories and URLs) |
|
|
173 | ################################################################################ |
|
|
174 | |
|
|
175 | # The root directory of the current course. (The ID of the current course is |
|
|
176 | # available in $courseName.) |
|
|
177 | $courseDirs{root} = "$webworkDirs{courses}/$courseName"; |
|
|
178 | |
|
|
179 | # Location of course-specific data files, such as WW1 (GDBM) database files. |
|
|
180 | $courseDirs{DATA} = "$courseDirs{root}/DATA"; |
|
|
181 | |
|
|
182 | # Location of authentication data files when using a WW1 (GDBM) database. |
|
|
183 | $courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth"; |
|
|
184 | |
|
|
185 | # Location of course HTML files, passed to PG. |
|
|
186 | $courseDirs{html} = "$courseDirs{root}/html"; |
|
|
187 | $courseURLs{html} = "$webwork_courses_url/$courseName"; |
|
|
188 | |
|
|
189 | # Location of course image files, passed to PG. |
|
|
190 | $courseDirs{html_images} = "$courseDirs{html}/images"; |
|
|
191 | |
|
|
192 | # Location of web-accessible, course-specific temporary files, like static and |
|
|
193 | # dynamically-generated PG graphics. |
|
|
194 | $courseDirs{html_temp} = "$courseDirs{html}/tmp"; |
|
|
195 | $courseURLs{html_temp} = "$courseURLs{html}/tmp"; |
|
|
196 | |
|
|
197 | # Location of course-specific logs, like the transaction log. |
|
|
198 | $courseDirs{logs} = "$courseDirs{root}/logs"; |
|
|
199 | |
|
|
200 | # Location of scoring files. |
|
|
201 | $courseDirs{scoring} = "$courseDirs{root}/scoring"; |
|
|
202 | |
|
|
203 | # Location of PG templates and set definition files. |
|
|
204 | $courseDirs{templates} = "$courseDirs{root}/templates"; |
|
|
205 | |
|
|
206 | # Location of course-specific macro files. |
|
|
207 | $courseDirs{macros} = "$courseDirs{templates}/macros"; |
|
|
208 | |
|
|
209 | # Location of mail-merge templates. |
|
|
210 | $courseDirs{email} = "$courseDirs{templates}/email"; |
|
|
211 | |
|
|
212 | ################################################################################ |
|
|
213 | # System-wide files |
|
|
214 | ################################################################################ |
|
|
215 | |
|
|
216 | # Location of this file. |
|
|
217 | $webworkFiles{environment} = "$webworkDirs{conf}/global.conf"; |
|
|
218 | |
|
|
219 | # Flat-file database used to protect against MD5 hash collisions. TeX equations |
|
|
220 | # are hashed to determine the name of the image file. There is a tiny chance of |
|
|
221 | # a collision between two TeX strings. This file allows for that. However, this |
|
|
222 | # is slow, so most people chose not to worry about it. Set this to "" if you |
|
|
223 | # don't want to use the equation cache file. |
|
|
224 | $webworkFiles{equationCacheDB} = ""; # "$webworkDirs{DATA}/equationcache"; |
|
|
225 | |
|
|
226 | ##### Hardcopy snippets are used in constructing a TeX file for hardcopy output. |
|
|
227 | ##### They should contain TeX code unless otherwise noted. |
|
|
228 | |
|
|
229 | # The preamble is the first thing in the TeX file. |
|
|
230 | $webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex"; |
|
|
231 | |
|
|
232 | # The setHeader preceeds each set. It is a PG file. |
|
|
233 | $webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg", |
|
|
234 | |
|
|
235 | # The problem divider goes between problems. |
|
|
236 | $webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex"; |
|
|
237 | |
|
|
238 | # The set footer goes after each set. Is is a PG file. |
|
|
239 | $webworkFiles{hardcopySnippets}{setFooter} = "$webworkDirs{conf}/snippets/hardcopySetFooter.pg"; |
|
|
240 | |
|
|
241 | # The set divider goes between sets (in multiset output). |
|
|
242 | $webworkFiles{hardcopySnippets}{setDivider} = "$webworkDirs{conf}/snippets/hardcopySetDivider.tex"; |
|
|
243 | |
|
|
244 | # The user divider does between users (in multiuser output). |
|
|
245 | $webworkFiles{hardcopySnippets}{userDivider} = "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex"; |
|
|
246 | |
|
|
247 | # The postabmle is the last thing in the TeX file. |
|
|
248 | $webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex"; |
|
|
249 | |
|
|
250 | ##### Screen snippets are used when displaying problem sets on the screen. |
|
|
251 | |
|
|
252 | # The set header is displayed on the problem set page. It is a PG file. |
|
|
253 | $webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg" |
|
|
254 | |
|
|
255 | ################################################################################ |
|
|
256 | # Course-specific files |
|
|
257 | ################################################################################ |
|
|
258 | |
|
|
259 | # The course configuration file. |
|
|
260 | $courseFiles{environment} = "$courseDirs{root}/course.conf"; |
|
|
261 | |
|
|
262 | # File contents are displayed after login, on the problem sets page. Path given |
|
|
263 | # here is relative to the templates directory. |
|
|
264 | $courseFiles{course_info} = "course_info.txt"; |
|
|
265 | |
|
|
266 | # File contents are displayed on the login page. Path given here is relative to |
|
|
267 | # the templates directory. |
|
|
268 | $courseFiles{login_info} = "login_info.txt"; |
|
|
269 | |
|
|
270 | # Additional library buttons can be added to the Library Browser (SetMaker.pm) |
|
|
271 | # by adding the libraries you want to the following line. For each key=>value |
|
|
272 | # in the list, if a directory (or link to a directory) with name 'key' appears |
|
|
273 | # in the templates directory, then a button with name 'value' will be placed at |
|
|
274 | # the top of the problem browser. (No button will appear if there is no |
|
|
275 | # directory or link with the given name in the templates directory.) For |
|
|
276 | # example, |
|
|
277 | # |
|
|
278 | # $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; |
|
|
279 | # |
|
|
280 | # would add two buttons, one for the Rochester library and one for the ASU |
|
|
281 | # library, provided templates/rochester and templates/asu exists either as |
|
|
282 | # subdirectories or links to other directories. |
|
|
283 | # |
|
|
284 | $courseFiles{problibs} = { |
|
|
285 | # rochesterLibrary => "Rochester", |
|
|
286 | # asuLibrary => "Arizona State", |
|
|
287 | # dcdsLibrary => "Detroit CDS", |
|
|
288 | # dartmouthLibrary => "Dartmouth", |
|
|
289 | # indianaLibrary => "Indiana", |
|
|
290 | # osuLibrary => "Ohio State", |
|
|
291 | # capaLibrary => "CAPA", |
|
|
292 | }; |
|
|
293 | |
|
|
294 | ################################################################################ |
|
|
295 | # Database options |
|
|
296 | ################################################################################ |
|
|
297 | |
|
|
298 | # Several database are defined in the file conf/database.conf and stored in the |
|
|
299 | # hash %dbLayouts. |
|
|
300 | include "conf/database.conf"; |
|
|
301 | |
|
|
302 | # Select the default database layout. This can be overridden in the course.conf |
|
|
303 | # file of a particular course. If you choose "gdbm", WeBWorK will be able to |
|
|
304 | # use courses from WeBWorK 1 without first adding course.conf files to them. |
|
|
305 | # However, the recommended database layout for new courses is "sql_single". This |
|
|
306 | # can be set when creating a course. |
|
|
307 | $dbLayoutName = "sql_single"; # or "gdbm" or "sql" |
|
|
308 | |
|
|
309 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
|
|
310 | *dbLayout = $dbLayouts{$dbLayoutName}; |
|
|
311 | |
|
|
312 | ################################################################################ |
|
|
313 | # Problem library options |
|
|
314 | ################################################################################ |
|
|
315 | |
|
|
316 | # The directory containing the problem library files. Set to "" if no problem |
|
|
317 | # library is installed. |
|
|
318 | $problemLibrary{root} = ""; |
|
|
319 | |
|
|
320 | # The name of the SQL database containing problem metadata |
|
|
321 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
|
|
322 | |
|
|
323 | # The user name to use when connecting to the problem library database |
|
|
324 | $problemLibrary{userSQL} = "webworkRead"; |
|
|
325 | |
|
|
326 | # The password to use when connecting to the problem library database |
|
|
327 | $problemLibrary{passwordSQL} = ""; |
|
|
328 | |
|
|
329 | ################################################################################ |
|
|
330 | # Logs |
|
|
331 | ################################################################################ |
|
|
332 | |
|
|
333 | # FIXME: take logs out of %webworkFiles/%courseFiles and give them their own |
|
|
334 | # top-level hash. |
|
|
335 | |
|
|
336 | # Logs data about how long it takes to process problems. (Do not confuse this |
|
|
337 | # with the /other/ timing log which can be set by WeBWorK::Timing and is used |
|
|
338 | # for benchmarking system performance in general. At some point, this timing |
|
|
339 | # mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.) |
|
|
340 | $webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log"; |
|
|
341 | |
|
|
342 | # Logs courses created via the web-based Course Administration module. |
|
|
343 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
|
|
344 | |
|
|
345 | # The transaction log contains data from each recorded answer submission. This |
|
|
346 | # is useful if the database becomes corrupted. |
|
|
347 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
348 | |
|
|
349 | # The answer log stores a history of all users' submitted answers. |
|
|
350 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
|
|
351 | |
|
|
352 | ################################################################################ |
| 284 | # Paths to external programs |
353 | # More paths to external programs |
| 285 | ################################################################################ |
354 | ################################################################################ |
| 286 | |
|
|
| 287 | $externalPrograms{mkdir} = "/bin/mkdir"; |
|
|
| 288 | $externalPrograms{mysql} = "/usr/local/bin/mysql"; |
|
|
| 289 | |
|
|
| 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 | |
355 | |
| 295 | # These image conversion utilities are included in the WeBWorK distribution. |
356 | # These image conversion utilities are included in the WeBWorK distribution. |
| 296 | $externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; |
357 | $externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; |
| 297 | $externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; |
358 | $externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; |
| 298 | $externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; |
359 | $externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; |
| … | |
… | |
| 301 | # Site defaults (FIXME: what other things could be "site defaults"?) |
362 | # Site defaults (FIXME: what other things could be "site defaults"?) |
| 302 | ################################################################################ |
363 | ################################################################################ |
| 303 | |
364 | |
| 304 | # Status strings -- lists valid status values and their names. If your site uses |
365 | # Status strings -- lists valid status values and their names. If your site uses |
| 305 | # additional values, add them here. |
366 | # additional values, add them here. |
|
|
367 | # Status strings -- lists valid status values and their names. If your site uses |
|
|
368 | # additional values, add them here. |
| 306 | $siteDefaults{status} = { |
369 | $siteDefaults{status} = { |
| 307 | A => "Audit", |
370 | A => "Audit", |
|
|
371 | a => "Audit", |
| 308 | audit => "Audit", |
372 | audit => "Audit", |
| 309 | D => "Drop", |
373 | D => "Drop", |
|
|
374 | d => "Drop", |
| 310 | drop => "Drop", |
375 | drop => "Drop", |
| 311 | withdraw => "Drop", |
376 | withdraw => "Drop", |
| 312 | C => "Enrolled", |
377 | C => "Enrolled", |
|
|
378 | c => "Enrolled", |
| 313 | current => "Enrolled", |
379 | current => "Enrolled", |
| 314 | enrolled => "Enrolled", |
380 | enrolled => "Enrolled", |
| 315 | }; |
381 | }; |
| 316 | |
382 | |
|
|
383 | # Set the default timezone of courses on this server. To get a list of valid |
|
|
384 | # timezones, run: |
|
|
385 | # |
|
|
386 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' |
|
|
387 | # |
|
|
388 | # To get a list of valid timezone "links" (deprecated names), run: |
|
|
389 | # |
|
|
390 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::links' |
|
|
391 | # |
|
|
392 | # If left blank, the system timezone will be used. This is usually what you |
|
|
393 | # want. You might want to set this if your server is NOT in the same timezone as |
|
|
394 | # your school. If just a few courses are in a different timezone, set this in |
|
|
395 | # course.conf for the affected courses instead. |
|
|
396 | # |
|
|
397 | $siteDefaults{timezone} = ""; |
|
|
398 | |
| 317 | ################################################################################ |
399 | ################################################################################ |
| 318 | # Frontend options |
400 | # Frontend options |
| 319 | ################################################################################ |
401 | ################################################################################ |
| 320 | |
402 | |
| 321 | %templates = ( |
403 | %templates = ( |
| 322 | system => "$webworkDirs{conf}/templates/ur.template", |
404 | system => "$webworkDirs{conf}/templates/ur.template", |
| 323 | ); |
405 | ); |
| 324 | |
|
|
| 325 | ################################################################################ |
|
|
| 326 | # Database options |
|
|
| 327 | ################################################################################ |
|
|
| 328 | |
|
|
| 329 | # Several database are defined in the file conf/database.conf and stored in the |
|
|
| 330 | # hash %dbLayouts. |
|
|
| 331 | include "conf/database.conf"; |
|
|
| 332 | |
|
|
| 333 | # 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 |
|
|
| 335 | # use courses from WeBWorK 1 without first adding course.conf files to them. |
|
|
| 336 | # However, the recommended database layout for new courses is "sql". This can |
|
|
| 337 | # be set when creating a course. |
|
|
| 338 | $dbLayoutName = "sql"; # or "gdbm"; |
|
|
| 339 | |
|
|
| 340 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
|
|
| 341 | *dbLayout = $dbLayouts{$dbLayoutName}; |
|
|
| 342 | |
|
|
| 343 | ################################################################################ |
|
|
| 344 | # Problem library options |
|
|
| 345 | ################################################################################ |
|
|
| 346 | |
|
|
| 347 | # The directory containing the problem library files. Set to "" if no problem |
|
|
| 348 | # library is installed. |
|
|
| 349 | $problemLibrary{root} = ""; |
|
|
| 350 | |
|
|
| 351 | # The name of the SQL database containing problem metadata |
|
|
| 352 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
|
|
| 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} = ""; |
|
|
| 359 | |
406 | |
| 360 | ################################################################################ |
407 | ################################################################################ |
| 361 | # Authorization system |
408 | # Authorization system |
| 362 | ################################################################################ |
409 | ################################################################################ |
| 363 | |
410 | |
| … | |
… | |
| 367 | # action (almost never what you want). |
414 | # action (almost never what you want). |
| 368 | |
415 | |
| 369 | my $student = 0; |
416 | my $student = 0; |
| 370 | my $ta = 5; |
417 | my $ta = 5; |
| 371 | my $professor = 10; |
418 | my $professor = 10; |
|
|
419 | my $nobody = undef; |
| 372 | |
420 | |
| 373 | %permissionLevels = ( |
421 | %permissionLevels = ( |
| 374 | report_bugs => $student, |
422 | report_bugs => $student, |
|
|
423 | submit_feedback => $student, |
|
|
424 | change_password => $student, |
|
|
425 | change_email_address => $student, |
|
|
426 | |
| 375 | view_multiple_sets => $ta, |
427 | view_multiple_sets => $ta, |
| 376 | view_unopened_sets => $ta, |
428 | view_unopened_sets => $ta, |
| 377 | view_unpublished_sets => $ta, |
429 | view_unpublished_sets => $ta, |
| 378 | view_answers => $ta, |
430 | view_answers => $ta, |
|
|
431 | |
| 379 | become_student => $professor, |
432 | become_student => $professor, |
| 380 | access_instructor_tools => $ta, |
433 | access_instructor_tools => $ta, |
| 381 | create_and_delete_problem_sets => $professor, |
|
|
| 382 | modify_problem_sets => $professor, |
|
|
| 383 | assign_problem_sets => $professor, |
|
|
| 384 | modify_student_data => $professor, |
|
|
| 385 | score_sets => $professor, |
434 | score_sets => $professor, |
| 386 | send_mail => $professor, |
435 | send_mail => $professor, |
|
|
436 | receive_feedback => $ta, |
|
|
437 | |
|
|
438 | create_and_delete_problem_sets => $professor, |
|
|
439 | assign_problem_sets => $professor, |
|
|
440 | modify_problem_sets => $professor, |
|
|
441 | modify_student_data => $professor, |
| 387 | modify_classlist_files => $professor, |
442 | modify_classlist_files => $professor, |
| 388 | modify_set_def_files => $professor, |
443 | modify_set_def_files => $professor, |
| 389 | modify_scoring_files => $professor, |
444 | modify_scoring_files => $professor, |
| 390 | modify_problem_template_files => $professor, |
445 | modify_problem_template_files => $professor, |
|
|
446 | |
| 391 | create_and_delete_courses => $professor, |
447 | create_and_delete_courses => $professor, |
| 392 | fix_course_databases => $professor, |
448 | fix_course_databases => $professor, |
|
|
449 | |
|
|
450 | ##### Behavior of the interactive problem processor ##### |
|
|
451 | |
|
|
452 | show_correct_answers_before_answer_date => $ta, |
|
|
453 | show_solutions_before_answer_date => $ta, |
|
|
454 | avoid_recording_answers => $ta, |
|
|
455 | check_answers_before_open_date => $ta, |
|
|
456 | check_answers_after_open_date_with_attempts => $ta, |
|
|
457 | check_answers_after_open_date_without_attempts => $student, |
|
|
458 | check_answers_after_due_date => $student, |
|
|
459 | check_answers_after_answer_date => $student, |
|
|
460 | record_answers_when_acting_as_student => $nobody, |
|
|
461 | # "record_answers_when_acting_as_student" takes precedence |
|
|
462 | # over the following for professors acting as students: |
|
|
463 | record_answers_before_open_date => $nobody, |
|
|
464 | record_answers_after_open_date_with_attempts => $student, |
|
|
465 | record_answers_after_open_date_without_attempts => $nobody, |
|
|
466 | record_answers_after_due_date => $nobody, |
|
|
467 | record_answers_after_answer_date => $nobody, |
|
|
468 | dont_log_past_answers => $professor, |
|
|
469 | |
|
|
470 | ##### Behavior of the Hardcopy Processor ##### |
|
|
471 | |
|
|
472 | download_hardcopy_multiuser => $ta, |
|
|
473 | download_hardcopy_multiset => $ta, |
|
|
474 | download_hardcopy_format_tex => $ta, |
| 393 | ); |
475 | ); |
| 394 | |
476 | |
| 395 | ################################################################################ |
477 | ################################################################################ |
| 396 | # Session options |
478 | # Session options |
| 397 | ################################################################################ |
479 | ################################################################################ |
| … | |
… | |
| 486 | # USE DvipngDepths; |
568 | # USE DvipngDepths; |
| 487 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
569 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
| 488 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
570 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
| 489 | # |
571 | # |
| 490 | # In the last statement, "webworkWrite" should match the user below. |
572 | # In the last statement, "webworkWrite" should match the user below. |
|
|
573 | # FIXME: this database can become a table in the 'webwork' database |
| 491 | dvipng_depth_db => { |
574 | dvipng_depth_db => { |
| 492 | dbsource => 'dbi:mysql:DvipngDepths', |
575 | dbsource => 'dbi:mysql:DvipngDepths', |
| 493 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
576 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
| 494 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
577 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
| 495 | }, |
578 | }, |
| … | |
… | |
| 546 | [qw(PGrandom)], |
629 | [qw(PGrandom)], |
| 547 | [qw(Regression)], |
630 | [qw(Regression)], |
| 548 | [qw(Select)], |
631 | [qw(Select)], |
| 549 | [qw(Units)], |
632 | [qw(Units)], |
| 550 | [qw(VectorField)], |
633 | [qw(VectorField)], |
|
|
634 | [qw(Parser Value)], |
| 551 | ]; |
635 | ]; |
| 552 | |
636 | |
| 553 | ##### Answer evaluatior defaults |
637 | ##### Answer evaluatior defaults |
| 554 | |
638 | |
| 555 | $pg{ansEvalDefaults} = { |
639 | $pg{ansEvalDefaults} = { |