| 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-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.123 2005/07/14 14:30:19 glarose Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.185 2007/03/06 01:34:16 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. |
| … | |
… | |
| 32 | |
32 | |
| 33 | # URL of WeBWorK handler. |
33 | # URL of WeBWorK handler. |
| 34 | $webwork_url = "/webwork2"; |
34 | $webwork_url = "/webwork2"; |
| 35 | |
35 | |
| 36 | # Root directory of PG. |
36 | # Root directory of PG. |
| 37 | $pg_dir = "/opt/pg"; |
37 | $pg_dir = "/opt/webwork/pg"; |
| 38 | |
38 | |
| 39 | # URL and path to htdocs directory. |
39 | # URL and path to htdocs directory. |
| 40 | $webwork_htdocs_url = "/webwork2_files"; |
40 | $webwork_htdocs_url = "/webwork2_files"; |
| 41 | $webwork_htdocs_dir = "$webwork_dir/htdocs"; |
41 | $webwork_htdocs_dir = "$webwork_dir/htdocs"; |
| 42 | |
42 | |
| 43 | # URL and path to courses directory. |
43 | # URL and path to courses directory. |
| 44 | $webwork_courses_url = "/webwork2_course_files"; |
44 | $webwork_courses_url = "/webwork2_course_files"; |
| 45 | $webwork_courses_dir = "$webwork_dir/courses"; |
45 | $webwork_courses_dir = "/opt/webwork/courses"; |
| 46 | |
46 | |
| 47 | ################################################################################ |
47 | ################################################################################ |
| 48 | # Paths to external programs |
48 | # Paths to external programs |
| 49 | ################################################################################ |
49 | ################################################################################ |
| 50 | |
50 | |
|
|
51 | # system utilties |
|
|
52 | $externalPrograms{mv} = "/bin/mv"; |
|
|
53 | $externalPrograms{cp} = "/bin/cp"; |
|
|
54 | $externalPrograms{rm} = "/bin/rm"; |
| 51 | $externalPrograms{mkdir} = "/bin/mkdir"; |
55 | $externalPrograms{mkdir} = "/bin/mkdir"; |
| 52 | $externalPrograms{mv} = "/bin/mv"; |
|
|
| 53 | $externalPrograms{mysql} = "/usr/bin/mysql"; |
56 | $externalPrograms{tar} = "/usr/bin/tar"; |
|
|
57 | $externalPrograms{gzip} = "/usr/bin/gzip"; |
| 54 | |
58 | |
|
|
59 | # equation rendering/hardcopy utiltiies |
| 55 | $externalPrograms{latex} = "/usr/bin/latex"; |
60 | $externalPrograms{latex} = "/usr/bin/latex"; |
| 56 | $externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files |
61 | $externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; |
| 57 | $externalPrograms{dvipng} = "/usr/bin/dvipng"; |
62 | $externalPrograms{dvipng} = "/usr/bin/dvipng"; |
| 58 | $externalPrograms{tth} = "/usr/bin/tth"; |
63 | $externalPrograms{tth} = "/usr/bin/tth"; |
| 59 | |
64 | |
|
|
65 | # NetPBM - basic image manipulation utilities |
|
|
66 | # Most sites only need to configure $netpbm_prefix. |
|
|
67 | my $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"; |
|
|
73 | |
|
|
74 | # url checker |
|
|
75 | $externalPrograms{checkurl} = "/usr/local/bin/lwp-request -mHEAD "; # or "/usr/local/bin/w3c -head " |
|
|
76 | |
|
|
77 | # image conversions utiltiies |
|
|
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}"; |
|
|
82 | |
|
|
83 | # mysql clients |
| 60 | $externalPrograms{tar} = "/usr/bin/tar"; |
84 | $externalPrograms{mysql} = "/usr/bin/mysql"; |
|
|
85 | $externalPrograms{mysqldump} = "/usr/bin/mysqldump"; |
| 61 | |
86 | |
| 62 | ################################################################################ |
87 | ################################################################################ |
| 63 | # Mail settings |
88 | # Mail settings |
| 64 | ################################################################################ |
89 | ################################################################################ |
| 65 | |
90 | |
| … | |
… | |
| 70 | # 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 |
| 71 | # 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 |
| 72 | # 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 |
| 73 | # a valid mail domain, or at least be well-formed. |
98 | # a valid mail domain, or at least be well-formed. |
| 74 | $mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; |
99 | $mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; |
| 75 | |
100 | |
| 76 | # AllowedRecipients defines addresses that the PG system is allowed to send mail |
101 | # AllowedRecipients defines addresses that the PG system is allowed to send mail |
| 77 | # to. this prevents subtle PG exploits. This should be set in course.conf to the |
102 | # to. this prevents subtle PG exploits. This should be set in course.conf to the |
| 78 | # addresses of professors of each course. Sending mail from the PG system (i.e. |
103 | # addresses of professors of each course. Sending mail from the PG system (i.e. |
| 79 | # questionaires, essay questions) will fail if this is not set somewhere (either |
104 | # questionaires, essay questions) will fail if this is not set somewhere (either |
| 80 | # here or in course.conf). |
105 | # here or in course.conf). |
| 81 | $mail{allowedRecipients} = [ |
106 | $mail{allowedRecipients} = [ |
| 82 | #'prof1@yourserver.yourdomain.edu', |
107 | #'prof1@yourserver.yourdomain.edu', |
| 83 | #'prof2@yourserver.yourdomain.edu', |
108 | #'prof2@yourserver.yourdomain.edu', |
| 84 | ]; |
109 | ]; |
| 85 | |
110 | |
| 86 | # If defined, feedbackRecipients overrides the list of recipients for feedback |
111 | # By default, feeback is sent to all users who have permission to |
| 87 | # email. It's appropriate to set this in the course.conf for specific courses, |
112 | # receive_feedback. If this list is non-empty, feedback is also sent to the |
| 88 | # but probably not in global.conf. if not defined, mail is sent to all |
113 | # addresses specified here. |
| 89 | # professors and TAs for a given course |
114 | # |
|
|
115 | # * If you want to disable feedback altogether, leave this empty and set |
|
|
116 | # submit_feeback => $nobody in %permissionLevels below. This will cause the |
|
|
117 | # feedback button to go away as well. |
|
|
118 | # |
|
|
119 | # * If you want to send email ONLY to addresses in this list, set |
|
|
120 | # receive_feedback => $nobody in %permissionLevels below. |
|
|
121 | # |
|
|
122 | # It's often useful to set this in the course.conf to change the behavior of |
|
|
123 | # feedback for a specific course. |
|
|
124 | # |
|
|
125 | # Items in this list may be bare addresses, or RFC822 mailboxes, like: |
|
|
126 | # 'Joe User <joe.user@example.com>' |
|
|
127 | # The advantage of this form is that the resulting email will include the name |
|
|
128 | # of the recipient in the "To" field of the email. |
|
|
129 | # |
| 90 | #$mail{feedbackRecipients} = [ |
130 | $mail{feedbackRecipients} = [ |
| 91 | # 'prof1@yourserver.yourdomain.edu', |
131 | #'prof1@yourserver.yourdomain.edu', |
| 92 | # 'prof2@yourserver.yourdomain.edu', |
132 | #'prof2@yourserver.yourdomain.edu', |
| 93 | #]; |
133 | ]; |
| 94 | |
134 | |
|
|
135 | # Feedback subject line -- the following escape sequences are recognized: |
|
|
136 | # |
|
|
137 | # %c = course ID |
|
|
138 | # %u = user ID |
|
|
139 | # %s = set ID |
|
|
140 | # %p = problem ID |
|
|
141 | # %x = section |
|
|
142 | # %r = recitation |
|
|
143 | # %% = literal percent sign |
|
|
144 | # |
|
|
145 | $mail{feedbackSubjectFormat} = "[WWfeedback] course:%c user:%u set:%s prob:%p sec:%x rec:%r"; |
|
|
146 | |
| 95 | # feedbackVerbosity: |
147 | # feedbackVerbosity: |
| 96 | # 0: send only the feedback comment and context link |
148 | # 0: send only the feedback comment and context link |
| 97 | # 1: as in 0, plus user, set, problem, and PG data |
149 | # 1: as in 0, plus user, set, problem, and PG data |
| 98 | # 2: as in 1, plus the problem environment (debugging data) |
150 | # 2: as in 1, plus the problem environment (debugging data) |
| 99 | $mail{feedbackVerbosity} = 1; |
151 | $mail{feedbackVerbosity} = 1; |
| 100 | |
152 | |
| 101 | # Defines the size of the Mail Merge editor window |
153 | # Defines the size of the Mail Merge editor window |
| 102 | # FIXME: should this be here? it's UI, not mail |
154 | # FIXME: should this be here? it's UI, not mail |
| 103 | # FIXME: replace this with the auto-size method that TWiki uses |
155 | # FIXME: replace this with the auto-size method that TWiki uses |
| 104 | $mail{editor_window_rows} = 15; |
156 | $mail{editor_window_rows} = 15; |
| 105 | $mail{editor_window_columns} = 100; |
157 | $mail{editor_window_columns} = 100; |
| 106 | |
158 | |
|
|
159 | # Use this to customize the text of the feedback button. |
|
|
160 | $feedback_button_name = "Email instructor"; |
|
|
161 | |
| 107 | ################################################################################ |
162 | ################################################################################ |
| 108 | # System-wide locations (directories and URLs) |
163 | # System-wide locations (directories and URLs) |
| 109 | ################################################################################ |
164 | ################################################################################ |
| 110 | |
165 | |
| 111 | # The root directory, set by webwork_root variable in Apache configuration. |
166 | # The root directory, set by webwork_root variable in Apache configuration. |
| … | |
… | |
| 120 | # Location of utility programs. |
175 | # Location of utility programs. |
| 121 | $webworkDirs{bin} = "$webworkDirs{root}/bin"; |
176 | $webworkDirs{bin} = "$webworkDirs{root}/bin"; |
| 122 | |
177 | |
| 123 | # Location of configuration files, templates, snippets, etc. |
178 | # Location of configuration files, templates, snippets, etc. |
| 124 | $webworkDirs{conf} = "$webworkDirs{root}/conf"; |
179 | $webworkDirs{conf} = "$webworkDirs{root}/conf"; |
|
|
180 | |
|
|
181 | # Location of theme templates. |
|
|
182 | $webworkDirs{templates} = "$webworkDirs{conf}/templates"; |
| 125 | |
183 | |
| 126 | # Location of course directories. |
184 | # Location of course directories. |
| 127 | $webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses"; |
185 | $webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses"; |
| 128 | |
186 | |
| 129 | # Contains log files. |
187 | # Contains log files. |
| … | |
… | |
| 161 | $webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles"; |
219 | $webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles"; |
| 162 | |
220 | |
| 163 | # URL of general WeBWorK documentation. |
221 | # URL of general WeBWorK documentation. |
| 164 | $webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs"; |
222 | $webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs"; |
| 165 | |
223 | |
| 166 | # URL of WeBWorK 1.x profLogin.pl script, for access to old professor pages. |
|
|
| 167 | # Note that both systems must share a single "courses" directory for this to be |
|
|
| 168 | # useful. Leave this blank to disable |
|
|
| 169 | $webworkURLs{oldProf} = "/webwork1/profLogin.pl"; |
|
|
| 170 | |
|
|
| 171 | # URL of WeBWorK Bugzilla database. |
224 | # URL of WeBWorK Bugzilla database. |
| 172 | $webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; |
225 | $webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; |
| 173 | |
226 | |
| 174 | # Location of CSS |
227 | # Location of CSS |
| 175 | $webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/ur.css"; |
228 | $webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/ur.css"; |
| 176 | |
229 | |
| 177 | # Location of jsMath script, used for the jsMath display mode. |
230 | # Location of jsMath script, used for the jsMath display mode. |
| 178 | $webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; |
231 | $webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath-ww.js"; |
| 179 | |
232 | |
| 180 | # Location of ASCIIMathML script, used for the asciimath display mode. |
233 | # Location of ASCIIMathML script, used for the asciimath display mode. |
| 181 | $webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; |
234 | $webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; |
|
|
235 | |
|
|
236 | # Location of LaTeXMathML script, used for the LaTeXMathML display mode. |
|
|
237 | $webworkURLs{LaTeXMathML} = "$webworkURLs{htdocs}/LaTeXMathML/LaTeXMathML.js"; |
| 182 | |
238 | |
| 183 | ################################################################################ |
239 | ################################################################################ |
| 184 | # Defaults for course-specific locations (directories and URLs) |
240 | # Defaults for course-specific locations (directories and URLs) |
| 185 | ################################################################################ |
241 | ################################################################################ |
| 186 | |
242 | |
| 187 | # The root directory of the current course. (The ID of the current course is |
243 | # The root directory of the current course. (The ID of the current course is |
| 188 | # available in $courseName.) |
244 | # available in $courseName.) |
| 189 | $courseDirs{root} = "$webworkDirs{courses}/$courseName"; |
245 | $courseDirs{root} = "$webworkDirs{courses}/$courseName"; |
| 190 | |
246 | |
| 191 | # Location of course-specific data files, such as WW1 (GDBM) database files. |
247 | # Location of course-specific data files. |
| 192 | $courseDirs{DATA} = "$courseDirs{root}/DATA"; |
248 | $courseDirs{DATA} = "$courseDirs{root}/DATA"; |
| 193 | |
|
|
| 194 | # Location of authentication data files when using a WW1 (GDBM) database. |
|
|
| 195 | $courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth"; |
|
|
| 196 | |
249 | |
| 197 | # Location of course HTML files, passed to PG. |
250 | # Location of course HTML files, passed to PG. |
| 198 | $courseDirs{html} = "$courseDirs{root}/html"; |
251 | $courseDirs{html} = "$courseDirs{root}/html"; |
| 199 | $courseURLs{html} = "$webwork_courses_url/$courseName"; |
252 | $courseURLs{html} = "$webwork_courses_url/$courseName"; |
| 200 | |
253 | |
| … | |
… | |
| 218 | # Location of course-specific macro files. |
271 | # Location of course-specific macro files. |
| 219 | $courseDirs{macros} = "$courseDirs{templates}/macros"; |
272 | $courseDirs{macros} = "$courseDirs{templates}/macros"; |
| 220 | |
273 | |
| 221 | # Location of mail-merge templates. |
274 | # Location of mail-merge templates. |
| 222 | $courseDirs{email} = "$courseDirs{templates}/email"; |
275 | $courseDirs{email} = "$courseDirs{templates}/email"; |
|
|
276 | |
|
|
277 | # Location of temporary editing files. |
|
|
278 | $courseDirs{tmpEditFileDir} = "$courseDirs{templates}/tmpEdit"; |
|
|
279 | |
|
|
280 | # If this is set to a non-empty value (i.e. in course.conf), WeBWorK's usual |
|
|
281 | # email feedback mechanism will be replaced with a link to the given URL. |
|
|
282 | # See also $feedback_button_name, above. |
|
|
283 | $courseURLs{feedbackURL} = ""; |
|
|
284 | |
|
|
285 | # mail merge status directory |
|
|
286 | $courseDirs{mailmerge} = "$courseDirs{DATA}/mailmerge"; |
| 223 | |
287 | |
| 224 | ################################################################################ |
288 | ################################################################################ |
| 225 | # System-wide files |
289 | # System-wide files |
| 226 | ################################################################################ |
290 | ################################################################################ |
| 227 | |
291 | |
| … | |
… | |
| 267 | # A PG template for creation of new problems. |
331 | # A PG template for creation of new problems. |
| 268 | $webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem.pg"; # screenSetHeader.pg" |
332 | $webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem.pg"; # screenSetHeader.pg" |
| 269 | |
333 | |
| 270 | # A site info "message of the day" file |
334 | # A site info "message of the day" file |
| 271 | $webworkFiles{site_info} = "$webworkDirs{htdocs}/site_info.txt"; |
335 | $webworkFiles{site_info} = "$webworkDirs{htdocs}/site_info.txt"; |
|
|
336 | |
| 272 | ################################################################################ |
337 | ################################################################################ |
| 273 | # Course-specific files |
338 | # Course-specific files |
| 274 | ################################################################################ |
339 | ################################################################################ |
| 275 | |
340 | |
| 276 | # The course configuration file. |
341 | # The course configuration file. |
| 277 | $courseFiles{environment} = "$courseDirs{root}/course.conf"; |
342 | $courseFiles{environment} = "$courseDirs{root}/course.conf"; |
|
|
343 | |
|
|
344 | # The course simple configuration file (holds web-based configuratoin). |
|
|
345 | $courseFiles{simpleConfig} = "$courseDirs{root}/simple.conf"; |
| 278 | |
346 | |
| 279 | # File contents are displayed after login, on the problem sets page. Path given |
347 | # File contents are displayed after login, on the problem sets page. Path given |
| 280 | # here is relative to the templates directory. |
348 | # here is relative to the templates directory. |
| 281 | $courseFiles{course_info} = "course_info.txt"; |
349 | $courseFiles{course_info} = "course_info.txt"; |
| 282 | |
350 | |
| … | |
… | |
| 307 | # osuLibrary => "Ohio State", |
375 | # osuLibrary => "Ohio State", |
| 308 | # capaLibrary => "CAPA", |
376 | # capaLibrary => "CAPA", |
| 309 | }; |
377 | }; |
| 310 | |
378 | |
| 311 | ################################################################################ |
379 | ################################################################################ |
|
|
380 | # Status system |
|
|
381 | ################################################################################ |
|
|
382 | |
|
|
383 | # This is the default status given to new students and students with invalid |
|
|
384 | # or missing statuses. |
|
|
385 | $default_status = "Enrolled"; |
|
|
386 | |
|
|
387 | # The first abbreviation in the abbreviations list is the canonical |
|
|
388 | # abbreviation, and will be used when setting the status value in a user record |
|
|
389 | # or an exported classlist file. |
|
|
390 | # |
|
|
391 | # Results are undefined if more than one status has the same abbreviation. |
|
|
392 | # |
|
|
393 | # The four behaviors that are controlled by status are: |
|
|
394 | # allow_course_access => is this user allowed to log in? |
|
|
395 | # include_in_assignment => is this user included when assigning as set to "all" users? |
|
|
396 | # include_in_stats => is this user included in statistical reports? |
|
|
397 | # include_in_email => is this user included in emails sent to the class? |
|
|
398 | # include_in_scoring => is this user included in score reports? |
|
|
399 | |
|
|
400 | %statuses = ( |
|
|
401 | Enrolled => { |
|
|
402 | abbrevs => [qw/ C c current enrolled /], |
|
|
403 | behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email include_in_scoring /], |
|
|
404 | }, |
|
|
405 | Audit => { |
|
|
406 | abbrevs => [qw/ A a audit /], |
|
|
407 | behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email /], |
|
|
408 | }, |
|
|
409 | Drop => { |
|
|
410 | abbrevs => [qw/ D d drop withdraw /], |
|
|
411 | behaviors => [qw/ /], |
|
|
412 | }, |
|
|
413 | ); |
|
|
414 | |
|
|
415 | ################################################################################ |
| 312 | # Database options (WWDBv3) |
416 | # Database options |
| 313 | ################################################################################ |
417 | ################################################################################ |
| 314 | |
418 | |
| 315 | # The four arguments passed to the DBI::connect() method. See the DBI manual for |
419 | # these variables are used by database.conf. we define them here so that editing |
| 316 | # more information. |
420 | # database.conf isn't necessary. |
| 317 | $wwdbv3_settings{dsn} = "dbi:mysql:wwdbv3"; |
421 | $database_dsn = "dbi:mysql:webwork"; |
| 318 | $wwdbv3_settings{user} = "wwdbv3"; |
422 | $database_username = "webworkWrite"; |
| 319 | $wwdbv3_settings{pass} = "xyzzy"; |
423 | $database_password = ""; |
| 320 | $wwdbv3_settings{attr} = {}; |
424 | $database_debug = 0; |
| 321 | |
425 | |
| 322 | # WWDBv3 needs a lock file to prevent concurrent database upgrades. The file |
426 | # Variables for sql_moodle database layout. |
| 323 | # will be locked with flock(). |
427 | $moodle_dsn = "dbi:mysql:moodle"; |
| 324 | $wwdbv3_settings{upgrade_lock} = "$webworkDirs{tmp}/wwdbv3_upgrade.lock"; |
428 | $moodle_username = $database_username; |
| 325 | |
429 | $moodle_password = $database_password; |
| 326 | ################################################################################ |
430 | $moodle_table_prefix = "mdl_"; |
| 327 | # Database options (WWDBv2) |
431 | $moodle17 = 0; |
| 328 | ################################################################################ |
|
|
| 329 | |
432 | |
| 330 | # Several database are defined in the file conf/database.conf and stored in the |
433 | # Several database are defined in the file conf/database.conf and stored in the |
| 331 | # hash %dbLayouts. |
434 | # hash %dbLayouts. |
| 332 | include "conf/database.conf"; |
435 | include "conf/database.conf"; |
| 333 | |
436 | |
| 334 | # Select the default database layout. This can be overridden in the course.conf |
437 | # Select the default database layout. This can be overridden in the course.conf |
| 335 | # file of a particular course. If you choose "gdbm", WeBWorK will be able to |
438 | # file of a particular course. The only database layout supported in WW 2.1.4 |
| 336 | # use courses from WeBWorK 1 without first adding course.conf files to them. |
439 | # and up is "sql_single". |
| 337 | # However, the recommended database layout for new courses is "sql_single". This |
440 | $dbLayoutName = "sql_single"; |
| 338 | # can be set when creating a course. |
|
|
| 339 | $dbLayoutName = "sql_single"; # or "gdbm" or "sql" |
|
|
| 340 | |
441 | |
| 341 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
442 | # This sets the symbol "dbLayout" as an alias for the selected database layout. |
| 342 | *dbLayout = $dbLayouts{$dbLayoutName}; |
443 | *dbLayout = $dbLayouts{$dbLayoutName}; |
| 343 | |
444 | |
| 344 | ################################################################################ |
445 | ################################################################################ |
| 345 | # Problem library options |
446 | # Problem library options |
| 346 | ################################################################################ |
447 | ################################################################################ |
|
|
448 | |
|
|
449 | # For configuration instructions, see: |
|
|
450 | # http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/DatabaseProblemLibrary |
| 347 | |
451 | |
| 348 | # The directory containing the problem library files. Set to "" if no problem |
452 | # The directory containing the problem library files. Set to "" if no problem |
| 349 | # library is installed. |
453 | # library is installed. |
| 350 | $problemLibrary{root} = ""; |
454 | $problemLibrary{root} = ""; |
| 351 | |
455 | |
|
|
456 | # Problem Library version |
|
|
457 | # Version 1 is in use. Version 2 will be released soon. |
|
|
458 | $problemLibrary{version} = "2"; |
|
|
459 | |
| 352 | # The name of the SQL database containing problem metadata |
460 | # The name of the SQL database containing problem metadata |
| 353 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
461 | $problemLibrary{sourceSQL} = "ProblemLibrary"; |
| 354 | |
462 | |
| 355 | # The user name to use when connecting to the problem library database |
463 | # The user name to use when connecting to the problem library database |
| 356 | $problemLibrary{userSQL} = "webworkRead"; |
464 | $problemLibrary{userSQL} = $database_username; |
| 357 | |
465 | |
| 358 | # The password to use when connecting to the problem library database |
466 | # The password to use when connecting to the problem library database |
| 359 | $problemLibrary{passwordSQL} = ""; |
467 | $problemLibrary{passwordSQL} = $database_password; |
| 360 | |
468 | |
| 361 | ################################################################################ |
469 | ################################################################################ |
| 362 | # Logs |
470 | # Logs |
| 363 | ################################################################################ |
471 | ################################################################################ |
| 364 | |
472 | |
| … | |
… | |
| 374 | # Logs courses created via the web-based Course Administration module. |
482 | # Logs courses created via the web-based Course Administration module. |
| 375 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
483 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
| 376 | |
484 | |
| 377 | # The transaction log contains data from each recorded answer submission. This |
485 | # The transaction log contains data from each recorded answer submission. This |
| 378 | # is useful if the database becomes corrupted. |
486 | # is useful if the database becomes corrupted. |
| 379 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
487 | $webworkFiles{logs}{transaction} = "$webworkDirs{logs}/$coursename_transaction.log"; |
| 380 | |
488 | |
| 381 | # The answer log stores a history of all users' submitted answers. |
489 | # The answer log stores a history of all users' submitted answers. |
| 382 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
490 | $courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; |
| 383 | |
491 | |
| 384 | # Log logins. |
492 | # Log logins. |
| 385 | $courseFiles{logs}{login_log} = "$courseDirs{logs}/login.log"; |
493 | $courseFiles{logs}{login_log} = "$courseDirs{logs}/login.log"; |
| 386 | |
494 | |
| 387 | ################################################################################ |
495 | # Log for almost every click. By default it is the empty string, which |
| 388 | # More paths to external programs |
496 | # turns this log off. If you want it turned on, we suggest |
| 389 | ################################################################################ |
497 | # "$courseDirs{logs}/activity.log" |
| 390 | |
498 | # When turned on, this log can get quite large. |
| 391 | # These image conversion utilities are included in the WeBWorK distribution. |
499 | $courseFiles{logs}{activity_log} = ''; |
| 392 | $externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; |
|
|
| 393 | $externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; |
|
|
| 394 | $externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; |
|
|
| 395 | |
500 | |
| 396 | ################################################################################ |
501 | ################################################################################ |
| 397 | # Site defaults (FIXME: what other things could be "site defaults"?) |
502 | # Site defaults (FIXME: what other things could be "site defaults"?) |
| 398 | ################################################################################ |
503 | ################################################################################ |
| 399 | |
|
|
| 400 | # Status strings -- lists valid status values and their names. If your site uses |
|
|
| 401 | # additional values, add them here. |
|
|
| 402 | $siteDefaults{status} = { |
|
|
| 403 | A => "Audit", |
|
|
| 404 | a => "Audit", |
|
|
| 405 | audit => "Audit", |
|
|
| 406 | D => "Drop", |
|
|
| 407 | d => "Drop", |
|
|
| 408 | drop => "Drop", |
|
|
| 409 | withdraw => "Drop", |
|
|
| 410 | C => "Enrolled", |
|
|
| 411 | c => "Enrolled", |
|
|
| 412 | current => "Enrolled", |
|
|
| 413 | enrolled => "Enrolled", |
|
|
| 414 | }; |
|
|
| 415 | |
504 | |
| 416 | # Set the default timezone of courses on this server. To get a list of valid |
505 | # Set the default timezone of courses on this server. To get a list of valid |
| 417 | # timezones, run: |
506 | # timezones, run: |
| 418 | # |
507 | # |
| 419 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' |
508 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' |
| … | |
… | |
| 427 | # your school. If just a few courses are in a different timezone, set this in |
516 | # your school. If just a few courses are in a different timezone, set this in |
| 428 | # course.conf for the affected courses instead. |
517 | # course.conf for the affected courses instead. |
| 429 | # |
518 | # |
| 430 | $siteDefaults{timezone} = ""; |
519 | $siteDefaults{timezone} = ""; |
| 431 | |
520 | |
| 432 | ################################################################################ |
521 | # The default_templates_course is used by default to create a new course. |
| 433 | # Frontend options |
522 | # The contents of the templates directory are copied from this course |
| 434 | ################################################################################ |
523 | # to the new course being created. |
|
|
524 | $siteDefaults{default_templates_course} ="modelCourse"; |
| 435 | |
525 | |
| 436 | %templates = ( |
526 | ################################################################################ |
| 437 | system => "$webworkDirs{conf}/templates/ur.template", |
527 | # Theme |
| 438 | gateway => "$webworkDirs{conf}/templates/gw.template", |
528 | ################################################################################ |
|
|
529 | |
|
|
530 | $defaultTheme = "math"; |
|
|
531 | $defaultThemeTemplate = "system"; |
|
|
532 | |
|
|
533 | ################################################################################ |
|
|
534 | # Authentication system |
|
|
535 | ################################################################################ |
|
|
536 | |
|
|
537 | # FIXME This mechanism is a little awkward and probably should be merged with |
|
|
538 | # the dblayout selection system somehow. |
|
|
539 | |
|
|
540 | # Select the authentication module to use for normal logins. |
|
|
541 | # |
|
|
542 | # If this value is a string, the given authentication module will be used |
|
|
543 | # regardless of the database layout. If it is a hash, the database layout name |
|
|
544 | # will be looked up in the hash and the resulting value will be used as the |
|
|
545 | # authentication module. The special hash key "*" is used if no entry for the |
|
|
546 | # current database layout is found. |
|
|
547 | # |
|
|
548 | $authen{user_module} = { |
|
|
549 | sql_moodle => "WeBWorK::Authen::Moodle", |
|
|
550 | "*" => "WeBWorK::Authen", |
|
|
551 | }; |
|
|
552 | |
|
|
553 | # Select the authentication module to use for proctor logins. |
|
|
554 | # |
|
|
555 | # A string or a hash is accepted, as above. |
|
|
556 | # |
|
|
557 | $authen{proctor_module} = "WeBWorK::Authen::Proctor"; |
|
|
558 | |
|
|
559 | # Options for particular authentication modules |
|
|
560 | |
|
|
561 | $authen{moodle_options} = { |
|
|
562 | dsn => $moodle_dsn, |
|
|
563 | username => $moodle_username, |
|
|
564 | password => $moodle_password, |
|
|
565 | table_prefix => $moodle_table_prefix, |
|
|
566 | moodle17 => $moodle17, |
|
|
567 | }; |
|
|
568 | |
|
|
569 | $authen{ldap_options} = { |
|
|
570 | # hosts to attempt to connect to, in order. for example: |
|
|
571 | # auth.myschool.edu -- uses LDAP scheme and port 389 |
|
|
572 | # ldap://auth.myschool.edu:666 -- non-standard port |
|
|
573 | # ldaps://auth.myschool.edu -- uses LDAPS scheme and port 636 |
|
|
574 | # ldaps://auth.myschool.edu:389 -- SSL on non-SSL port |
|
|
575 | net_ldap_hosts => [ |
|
|
576 | "ldaps://corona-dmc.its.rochester.edu", |
|
|
577 | "ldaps://corona-dmb.acs.rochester.edu", |
|
|
578 | ], |
|
|
579 | # connection options |
|
|
580 | net_ldap_options => { |
|
|
581 | timeout => 30, |
|
|
582 | version => 3, |
|
|
583 | }, |
|
|
584 | # base to use when searching for user's DN |
|
|
585 | net_ldap_base => "ou=people,dc=rochester,dc=edu", |
|
|
586 | # If LDAP rejects password, check it against the WeBWorK password database |
|
|
587 | failover => 1, |
|
|
588 | }; |
|
|
589 | |
|
|
590 | ################################################################################ |
|
|
591 | # Authorization system |
|
|
592 | ################################################################################ |
|
|
593 | |
|
|
594 | # this section lets you define which groups of users can perform which actions. |
|
|
595 | |
|
|
596 | # this hash maps a numeric permission level to the name of a role. the number |
|
|
597 | # assigned to a role is significant -- roles with higher numbers are considered |
|
|
598 | # "more privileged", and are included when that role is listed for a privilege |
|
|
599 | # below. |
|
|
600 | # |
|
|
601 | %userRoles = ( |
|
|
602 | guest => -5, |
|
|
603 | student => 0, |
|
|
604 | proctor => 2, |
|
|
605 | ta => 5, |
|
|
606 | professor => 10, |
| 439 | ); |
607 | ); |
| 440 | |
608 | |
| 441 | ################################################################################ |
609 | # this hash maps operations to the roles that are allowed to perform those |
| 442 | # Authorization system |
610 | # operations. the role listed and any role with a higher permission level (in |
| 443 | ################################################################################ |
611 | # the %userRoles hash) will be allowed to perform the operation. If the role |
| 444 | |
612 | # is undefined, no users will be allowed to perform the operation. |
| 445 | # This lets you specify a minimum permission level needed to perform certain |
613 | # |
| 446 | # actions. For each pair in the hash below, in order to perform the action |
|
|
| 447 | # described by the key, the user must have a permission level greater than or |
|
|
| 448 | # equal to the value. |
|
|
| 449 | |
|
|
| 450 | my $guest = -1; |
|
|
| 451 | my $student = 0; |
|
|
| 452 | my $proctor = 2; |
|
|
| 453 | my $ta = 5; |
|
|
| 454 | my $professor = 10; |
|
|
| 455 | my $nobody = undef; |
|
|
| 456 | |
|
|
| 457 | %permissionLevels = ( |
614 | %permissionLevels = ( |
| 458 | login => $guest, |
615 | login => "guest", |
| 459 | report_bugs => $student, |
616 | report_bugs => "student", |
| 460 | submit_feedback => $student, |
617 | submit_feedback => "student", |
| 461 | change_password => $student, |
618 | change_password => "student", |
| 462 | change_email_address => $student, |
619 | change_email_address => "student", |
| 463 | |
|
|
| 464 | proctor_quiz => $proctor, |
|
|
| 465 | |
620 | |
| 466 | view_multiple_sets => $ta, |
621 | proctor_quiz => "proctor", |
| 467 | view_unopened_sets => $ta, |
622 | view_proctored_tests => "ta", |
| 468 | view_unpublished_sets => $ta, |
|
|
| 469 | view_answers => $ta, |
623 | view_hidden_work => "ta", |
| 470 | |
624 | |
| 471 | become_student => $professor, |
625 | view_multiple_sets => "ta", |
| 472 | access_instructor_tools => $ta, |
626 | view_unopened_sets => "ta", |
| 473 | score_sets => $professor, |
627 | view_unpublished_sets => "ta", |
| 474 | send_mail => $professor, |
628 | view_answers => "ta", |
| 475 | receive_feedback => $ta, |
|
|
| 476 | |
629 | |
| 477 | create_and_delete_problem_sets => $professor, |
|
|
| 478 | assign_problem_sets => $professor, |
|
|
| 479 | modify_problem_sets => $professor, |
|
|
| 480 | modify_student_data => $professor, |
630 | become_student => "professor", |
| 481 | modify_classlist_files => $professor, |
631 | access_instructor_tools => "ta", |
| 482 | modify_set_def_files => $professor, |
632 | score_sets => "professor", |
| 483 | modify_scoring_files => $professor, |
633 | send_mail => "professor", |
| 484 | modify_problem_template_files => $professor, |
634 | receive_feedback => "ta", |
| 485 | |
635 | |
|
|
636 | create_and_delete_problem_sets => "professor", |
|
|
637 | assign_problem_sets => "professor", |
|
|
638 | modify_problem_sets => "professor", |
|
|
639 | modify_student_data => "professor", |
|
|
640 | modify_classlist_files => "professor", |
|
|
641 | modify_set_def_files => "professor", |
|
|
642 | modify_scoring_files => "professor", |
|
|
643 | modify_problem_template_files => "professor", |
|
|
644 | manage_course_files => "professor", |
|
|
645 | |
| 486 | create_and_delete_courses => $professor, |
646 | create_and_delete_courses => "professor", |
| 487 | fix_course_databases => $professor, |
647 | fix_course_databases => "professor", |
| 488 | |
648 | |
| 489 | ##### Behavior of the interactive problem processor ##### |
649 | ##### Behavior of the interactive problem processor ##### |
| 490 | |
650 | |
| 491 | show_correct_answers_before_answer_date => $ta, |
651 | show_correct_answers_before_answer_date => "ta", |
| 492 | show_solutions_before_answer_date => $ta, |
652 | show_solutions_before_answer_date => "ta", |
| 493 | avoid_recording_answers => $ta, |
653 | avoid_recording_answers => "ta", |
|
|
654 | # Below this level, old answers are never initially shown |
|
|
655 | can_show_old_answers_by_default => "student", |
|
|
656 | # at this level, we look at showOldAnswers for default value |
|
|
657 | # even after the due date |
|
|
658 | can_always_use_show_old_answers_default => "professor", |
| 494 | check_answers_before_open_date => $ta, |
659 | check_answers_before_open_date => "ta", |
| 495 | check_answers_after_open_date_with_attempts => $ta, |
660 | check_answers_after_open_date_with_attempts => "ta", |
| 496 | check_answers_after_open_date_without_attempts => $guest, |
661 | check_answers_after_open_date_without_attempts => "guest", |
| 497 | check_answers_after_due_date => $guest, |
662 | check_answers_after_due_date => "guest", |
| 498 | check_answers_after_answer_date => $guest, |
663 | check_answers_after_answer_date => "guest", |
| 499 | record_answers_when_acting_as_student => $nobody, |
664 | record_answers_when_acting_as_student => undef, |
| 500 | # "record_answers_when_acting_as_student" takes precedence |
665 | # "record_answers_when_acting_as_student" takes precedence |
| 501 | # over the following for professors acting as students: |
666 | # over the following for professors acting as students: |
| 502 | record_answers_before_open_date => $nobody, |
667 | record_answers_before_open_date => undef, |
| 503 | record_answers_after_open_date_with_attempts => $student, |
668 | record_answers_after_open_date_with_attempts => "student", |
| 504 | record_answers_after_open_date_without_attempts => $nobody, |
669 | record_answers_after_open_date_without_attempts => undef, |
| 505 | record_answers_after_due_date => $nobody, |
670 | record_answers_after_due_date => undef, |
| 506 | record_answers_after_answer_date => $nobody, |
671 | record_answers_after_answer_date => undef, |
| 507 | dont_log_past_answers => $professor, |
672 | dont_log_past_answers => "professor", |
|
|
673 | # does the user get to see a dump of the problem? |
|
|
674 | view_problem_debugging_info => "ta", |
| 508 | |
675 | |
| 509 | ##### Behavior of the Hardcopy Processor ##### |
676 | ##### Behavior of the Hardcopy Processor ##### |
| 510 | |
677 | |
| 511 | download_hardcopy_multiuser => $ta, |
678 | download_hardcopy_multiuser => "ta", |
| 512 | download_hardcopy_multiset => $ta, |
679 | download_hardcopy_multiset => "ta", |
|
|
680 | download_hardcopy_format_pdf => "guest", |
| 513 | download_hardcopy_format_tex => $ta, |
681 | download_hardcopy_format_tex => "ta", |
| 514 | ); |
682 | ); |
|
|
683 | |
|
|
684 | # This is the default permission level given to new students and students with |
|
|
685 | # invalid or missing permission levels. |
|
|
686 | $default_permission_level = $userRoles{student}; |
| 515 | |
687 | |
| 516 | ################################################################################ |
688 | ################################################################################ |
| 517 | # Session options |
689 | # Session options |
| 518 | ################################################################################ |
690 | ################################################################################ |
| 519 | |
691 | |
| 520 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
692 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
| 521 | $sessionKeyTimeout = 60*30; |
693 | $sessionKeyTimeout = 60*30; |
| 522 | |
694 | |
| 523 | # $sessionKeyLength defines the length (in characters) of the session key |
695 | # $sessionKeyLength defines the length (in characters) of the session key |
| 524 | $sessionKeyLength = 40; |
696 | $sessionKeyLength = 32; |
| 525 | |
697 | |
| 526 | # @sessionKeyChars lists the legal session key characters |
698 | # @sessionKeyChars lists the legal session key characters |
| 527 | @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); |
699 | @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9'); |
| 528 | |
700 | |
| 529 | # Practice users are users who's names start with $practiceUser |
701 | # Practice users are users who's names start with $practiceUser |
| 530 | # (you can comment this out to remove practice user support) |
702 | # (you can comment this out to remove practice user support) |
| 531 | $practiceUserPrefix = "practice"; |
703 | $practiceUserPrefix = "practice"; |
| 532 | |
704 | |
| 533 | # There is a practice user who can be logged in multiple times. He's |
705 | # There is a practice user who can be logged in multiple times. He's |
| 534 | # commented out by default, though, so you don't hurt yourself. It is |
706 | # commented out by default, though, so you don't hurt yourself. It is |
| 535 | # kindof a backdoor to the practice user system, since he doesn't have a |
707 | # kindof a backdoor to the practice user system, since he doesn't have a |
| 536 | # password. Come to think of it, why do we even have this?! |
708 | # password. Come to think of it, why do we even have this?! |
| 537 | #$debugPracticeUser = "practice666"; |
709 | #$debugPracticeUser = "practice666"; |
|
|
710 | |
|
|
711 | # Option for gateway tests; $gatewayGracePeriod is the time in seconds |
|
|
712 | # after the official due date during which we'll still grade the test |
|
|
713 | $gatewayGracePeriod = 120; |
| 538 | |
714 | |
| 539 | ################################################################################ |
715 | ################################################################################ |
| 540 | # PG subsystem options |
716 | # PG subsystem options |
| 541 | ################################################################################ |
717 | ################################################################################ |
| 542 | |
718 | |
| … | |
… | |
| 546 | "plainText", # display raw TeX for math expressions |
722 | "plainText", # display raw TeX for math expressions |
| 547 | "formattedText", # format math expressions using TtH |
723 | "formattedText", # format math expressions using TtH |
| 548 | "images", # display math expressions as images generated by dvipng |
724 | "images", # display math expressions as images generated by dvipng |
| 549 | "jsMath", # render TeX math expressions on the client side using jsMath |
725 | "jsMath", # render TeX math expressions on the client side using jsMath |
| 550 | "asciimath", # render TeX math expressions on the client side using ASCIIMathML |
726 | "asciimath", # render TeX math expressions on the client side using ASCIIMathML |
|
|
727 | "LaTeXMathML", # render TeX math expressions on the client side using LaTeXMathML |
| 551 | ]; |
728 | ]; |
| 552 | |
729 | |
| 553 | #### Default settings for the PG translator |
730 | #### Default settings for the PG translator |
| 554 | |
731 | |
| 555 | # Default display mode. Should be listed above. |
732 | # Default display mode. Should be listed above. |
| … | |
… | |
| 594 | |
771 | |
| 595 | # "images" mode has several settings: |
772 | # "images" mode has several settings: |
| 596 | $pg{displayModeOptions}{images} = { |
773 | $pg{displayModeOptions}{images} = { |
| 597 | # Determines the method used to align images in output. Can be |
774 | # Determines the method used to align images in output. Can be |
| 598 | # "baseline", "absmiddle", or "mysql". |
775 | # "baseline", "absmiddle", or "mysql". |
| 599 | dvipng_align => 'baseline', |
776 | dvipng_align => 'mysql', |
| 600 | |
777 | |
| 601 | # If we choose mysql, we need information on connecting to the |
778 | # If mysql is chosen, this information indicates which database contains the |
| 602 | # database. Whatever you use here, you have to create the database |
779 | # 'depths' table. Since 2.3.0, the depths table is kept in the main webwork |
| 603 | # and grant read/write priveleges to the user listed here. To create |
780 | # database. (If you are upgrading from an earlier version of webwork, and |
| 604 | # the database in mysql, as root use: |
781 | # used the mysql method in the past, you should move your existing 'depths' |
| 605 | # |
782 | # table to the main database.) |
| 606 | # CREATE DATABASE DvipngDepths; |
|
|
| 607 | # USE DvipngDepths; |
|
|
| 608 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
|
|
| 609 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
|
|
| 610 | # |
|
|
| 611 | # In the last statement, "webworkWrite" should match the user below. |
|
|
| 612 | # FIXME: this database can become a table in the 'webwork' database |
|
|
| 613 | dvipng_depth_db => { |
783 | dvipng_depth_db => { |
| 614 | dbsource => 'dbi:mysql:DvipngDepths', |
784 | dbsource => $database_dsn, |
| 615 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
785 | user => $database_username, |
| 616 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
786 | passwd => $database_password, |
| 617 | }, |
787 | }, |
| 618 | }; |
788 | }; |
| 619 | |
789 | |
| 620 | $pg{displayModeOptions}{jsMath} = { |
790 | $pg{displayModeOptions}{jsMath} = { |
| 621 | reportMissingFonts => 1, # set to 0 to prevent the missing font message |
791 | reportMissingFonts => 0, # set to 1 to allow the missing font message |
| 622 | missingFontMessage => undef, # set to an HTML string to use for the missing font message |
792 | missingFontMessage => undef, # set to an HTML string to replace the missing font message |
|
|
793 | noImageFonts => 0, # set to 1 if you didn't install the jsMath image fonts |
|
|
794 | processDoubleClicks => 1, # set to 0 to disable double-click on math to get TeX source |
| 623 | }; |
795 | }; |
| 624 | |
796 | |
| 625 | ##### Directories used by PG |
797 | ##### Directories used by PG |
| 626 | |
798 | |
| 627 | # The root of the PG directory tree (from pg_root in Apache config). |
799 | # The root of the PG directory tree (from pg_root in Apache config). |
| … | |
… | |
| 637 | ".", # search the problem file's directory |
809 | ".", # search the problem file's directory |
| 638 | $courseDirs{macros}, |
810 | $courseDirs{macros}, |
| 639 | $pg{directories}{macros}, |
811 | $pg{directories}{macros}, |
| 640 | ]; |
812 | ]; |
| 641 | |
813 | |
|
|
814 | # The applet search path. If a full URL is given, it is used unmodified. If an |
|
|
815 | # absolute path is given, the URL of the local server is prepended to it. |
|
|
816 | # |
|
|
817 | # For example, if an item is "/math/applets", |
|
|
818 | # and the local server is "https://math.yourschool.edu", |
|
|
819 | # then the URL "https://math.yourschool.edu/math/applets" will be used. |
|
|
820 | # |
|
|
821 | $pg{directories}{appletPath} = [ # paths to search for applets (requires full url) |
|
|
822 | "$webworkURLs{htdocs}/applets", |
|
|
823 | "$courseURLs{html}/applets", |
|
|
824 | ]; |
|
|
825 | |
| 642 | ##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) |
826 | ##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) |
| 643 | |
827 | |
| 644 | # Users for whom to print the file name of the PG file being processed. |
828 | # Users for whom to print the file name of the PG file being processed. |
| 645 | $pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; |
829 | $pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; |
| 646 | |
830 | |
| … | |
… | |
| 651 | $pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", |
835 | $pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", |
| 652 | $pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", |
836 | $pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", |
| 653 | |
837 | |
| 654 | # Size in pixels of dynamically-generated images, i.e. graphs. |
838 | # Size in pixels of dynamically-generated images, i.e. graphs. |
| 655 | $pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, |
839 | $pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, |
|
|
840 | |
|
|
841 | # To disable the Parser-based versions of num_cmp and fun_cmp, and use the |
|
|
842 | # original versions instead, set this value to 1. |
|
|
843 | $pg{specialPGEnvironmentVars}{useOldAnswerMacros} = 0; |
|
|
844 | |
|
|
845 | # Strings to insert at the start and end of the body of a problem |
|
|
846 | # (at beginproblem() and ENDDOCUMENT) in various modes. More display modes |
|
|
847 | # can be added if different behaviours are desired (e.g., HTML_dpng, |
|
|
848 | # HTML_asciimath, etc.). These parts are not used in the Library browser. |
|
|
849 | |
|
|
850 | $pg{specialPGEnvironmentVars}{problemPreamble} = { TeX => '', HTML=> '' }; |
|
|
851 | $pg{specialPGEnvironmentVars}{problemPostamble} = { TeX => '', HTML=>'' }; |
|
|
852 | |
|
|
853 | # To have the problem body indented and boxed, uncomment: |
|
|
854 | |
|
|
855 | # $pg{specialPGEnvironmentVars}{problemPreamble}{HTML} = '<BLOCKQUOTE> |
|
|
856 | # <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=15 BGCOLOR=#E8E8E8><TR><TD>'; |
|
|
857 | # $pg{specialPGEnvironmentVars}{problemPostamble}{HTML} = '</TD></TR></TABLE> |
|
|
858 | # </BLOCKQUOTE>'; |
| 656 | |
859 | |
| 657 | ##### PG modules to load |
860 | ##### PG modules to load |
| 658 | |
861 | |
| 659 | # The first item of each list is the module to load. The remaining items are |
862 | # The first item of each list is the module to load. The remaining items are |
| 660 | # additional packages to import. |
863 | # additional packages to import. |
| … | |
… | |
| 684 | [qw(Regression)], |
887 | [qw(Regression)], |
| 685 | [qw(Select)], |
888 | [qw(Select)], |
| 686 | [qw(Units)], |
889 | [qw(Units)], |
| 687 | [qw(VectorField)], |
890 | [qw(VectorField)], |
| 688 | [qw(Parser Value)], |
891 | [qw(Parser Value)], |
| 689 | [qw(Apache::Log)], |
892 | [qw(Parser::Legacy)], |
| 690 | ]; |
893 | ]; |
| 691 | |
894 | |
| 692 | ##### Answer evaluatior defaults |
895 | ##### Answer evaluatior defaults |
| 693 | |
896 | |
| 694 | $pg{ansEvalDefaults} = { |
897 | $pg{ansEvalDefaults} = { |