[system] / branches / rel-2-4-patches / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /branches/rel-2-4-patches/webwork-modperl/conf/global.conf.dist

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

Revision 2849 Revision 3826
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.105 2004/09/27 17:16:14 sh002i Exp $ 5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.157 2005/12/18 21:44:54 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.
26################################################################################ 26################################################################################
27# Seed variables 27# Seed variables
28################################################################################ 28################################################################################
29 29
30# Set these variables to correspond to your configuration and preferences. You 30# Set these variables to correspond to your configuration and preferences. You
31# will need to restart the webserver to reset the variables in this section 31# will need to restart the webserver to reset the variables in this section.
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.
46 46
47################################################################################ 47################################################################################
48# Paths to external programs 48# Paths to external programs
49################################################################################ 49################################################################################
50 50
51# system utilties
51$externalPrograms{mkdir} = "/bin/mkdir"; 52$externalPrograms{mkdir} = "/bin/mkdir";
53$externalPrograms{mv} = "/bin/mv";
52$externalPrograms{mysql} = "/usr/local/bin/mysql"; 54$externalPrograms{mysql} = "/usr/bin/mysql";
55$externalPrograms{tar} = "/usr/bin/tar";
53 56
57# equation rendering/hardcopy utiltiies
54$externalPrograms{latex} = "/usr/local/bin/latex"; 58$externalPrograms{latex} = "/usr/bin/latex";
55$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files 59$externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; # --shell-escape allows pdflatex to handle .eps files
56$externalPrograms{dvipng} = "/usr/local/bin/dvipng"; 60$externalPrograms{dvipng} = "/usr/bin/dvipng";
57$externalPrograms{tth} = "/usr/local/bin/tth"; 61$externalPrograms{tth} = "/usr/bin/tth";
62
63# NetPBM - basic image manipulation utilities
64# most sites only need to configure $netpbm_prefix.
65my $netpbm_prefix = "/usr/bin";
66$externalPrograms{giftopnm} = "$netpbm_prefix/giftopnm";
67$externalPrograms{ppmtopgm} = "$netpbm_prefix/ppmtopgm";
68$externalPrograms{pnmtops} = "$netpbm_prefix/pnmtops";
69$externalPrograms{pnmtopng} = "$netpbm_prefix/pnmtopng";
70$externalPrograms{pngtopnm} = "$netpbm_prefix/pngtopnm";
71
72# image conversions utiltiies
73# the source file is given on stdin, and the output expected on stdout.
74#
75# Note on conversions pipelines:
76# we used to use `pnmdepth 1' instead of ppmtopgm as it creates a
77# monochrome image (1 bit) rather than a greyscale image (8 bits).
78# However, this was causing improper display of some sort in PDFs.
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}";
58 82
59################################################################################ 83################################################################################
60# Mail settings 84# Mail settings
61################################################################################ 85################################################################################
62 86
67# When connecting to the above server, WeBWorK will send this address in the 91# When connecting to the above server, WeBWorK will send this address in the
68# MAIL FROM command. This has nothing to do with the "From" address on the mail 92# MAIL FROM command. This has nothing to do with the "From" address on the mail
69# message. It can really be anything, but some mail servers require it contain 93# message. It can really be anything, but some mail servers require it contain
70# a valid mail domain, or at least be well-formed. 94# a valid mail domain, or at least be well-formed.
71$mail{smtpSender} = 'webwork@yourserver.yourschool.edu'; 95$mail{smtpSender} = 'webwork@yourserver.yourschool.edu';
72 96
73# AllowedRecipients defines addresses that the PG system is allowed to send mail 97# AllowedRecipients defines addresses that the PG system is allowed to send mail
74# to. this prevents subtle PG exploits. This should be set in course.conf to the 98# to. this prevents subtle PG exploits. This should be set in course.conf to the
75# addresses of professors of each course. Sending mail from the PG system (i.e. 99# addresses of professors of each course. Sending mail from the PG system (i.e.
76# questionaires, essay questions) will fail if this is not set somewhere (either 100# questionaires, essay questions) will fail if this is not set somewhere (either
77# here or in course.conf). 101# here or in course.conf).
78$mail{allowedRecipients} = [ 102$mail{allowedRecipients} = [
79 #'prof1@yourserver.yourdomain.edu', 103 #'prof1@yourserver.yourdomain.edu',
80 #'prof2@yourserver.yourdomain.edu', 104 #'prof2@yourserver.yourdomain.edu',
81]; 105];
82 106
83# If defined, feedbackRecipients overrides the list of recipients for feedback 107# By default, feeback is sent to all users who have permission to
84# email. It's appropriate to set this in the course.conf for specific courses, 108# receive_feedback. If this list is non-empty, feedback is also sent to the
85# but probably not in global.conf. if not defined, mail is sent to all 109# addresses specified here.
86# professors and TAs for a given course 110#
111# * If you want to disable feedback altogether, leave this empty and set
112# submit_feeback => $nobody in %permissionLevels below. This will cause the
113# feedback button to go away as well.
114#
115# * If you want to send email ONLY to addresses in this list, set
116# receive_feedback => $nobody in %permissionLevels below.
117#
118# It's often useful to set this in the course.conf to change the behavior of
119# feedback for a specific course.
120#
121# Items in this list may be bare addresses, or RFC822 mailboxes, like:
122# 'Joe User <joe.user@example.com>'
123# The advantage of this form is that the resulting email will include the name
124# of the recipient in the "To" field of the email.
125#
87#$mail{feedbackRecipients} = [ 126$mail{feedbackRecipients} = [
88# 'prof1@yourserver.yourdomain.edu', 127 #'prof1@yourserver.yourdomain.edu',
89# 'prof2@yourserver.yourdomain.edu', 128 #'prof2@yourserver.yourdomain.edu',
90#]; 129];
91 130
131# Feedback subject line -- the following escape sequences are recognized:
132#
133# %c = course ID
134# %u = user ID
135# %s = set ID
136# %p = problem ID
137# %x = section
138# %r = recitation
139# %% = literal percent sign
140#
141$mail{feedbackSubjectFormat} = "[WWfeedback] course:%c user:%u set:%s prob:%p sec:%x rec:%r";
142
92# feedbackVerbosity: 143# feedbackVerbosity:
93# 0: send only the feedback comment and context link 144# 0: send only the feedback comment and context link
94# 1: as in 0, plus user, set, problem, and PG data 145# 1: as in 0, plus user, set, problem, and PG data
95# 2: as in 1, plus the problem environment (debugging data) 146# 2: as in 1, plus the problem environment (debugging data)
96$mail{feedbackVerbosity} = 1; 147$mail{feedbackVerbosity} = 1;
97 148
98# Defines the size of the Mail Merge editor window 149# Defines the size of the Mail Merge editor window
99# FIXME: should this be here? it's UI, not mail 150# FIXME: should this be here? it's UI, not mail
100# FIXME: replace this with the auto-size method that TWiki uses 151# FIXME: replace this with the auto-size method that TWiki uses
101$mail{editor_window_rows} = 15; 152$mail{editor_window_rows} = 15;
102$mail{editor_window_columns} = 100; 153$mail{editor_window_columns} = 100;
127$webworkDirs{logs} = "$webworkDirs{root}/logs"; 178$webworkDirs{logs} = "$webworkDirs{root}/logs";
128 179
129# Contains non-web-accessible temporary files, such as TeX working directories. 180# Contains non-web-accessible temporary files, such as TeX working directories.
130$webworkDirs{tmp} = "$webworkDirs{root}/tmp"; 181$webworkDirs{tmp} = "$webworkDirs{root}/tmp";
131 182
183# The (absolute) destinations of symbolic links that are OK for the FileManager to follow.
184# (any subdirectory of these is a valid target for a symbolic link.)
185# For example:
186# $webworkDirs{valid_symlinks} = ["$webworkDirs{courses}/modelCourse/templates","/ww2/common/sets"];
187$webworkDirs{valid_symlinks} = [];
188
132##### The following locations are web-accessible. 189##### The following locations are web-accessible.
133 190
134# The root URL (usually /webwork2), set by <Location> in Apache configuration. 191# The root URL (usually /webwork2), set by <Location> in Apache configuration.
135$webworkURLs{root} = "$webwork_url"; 192$webworkURLs{root} = "$webwork_url";
136 193
160$webworkURLs{oldProf} = "/webwork1/profLogin.pl"; 217$webworkURLs{oldProf} = "/webwork1/profLogin.pl";
161 218
162# URL of WeBWorK Bugzilla database. 219# URL of WeBWorK Bugzilla database.
163$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; 220$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/";
164 221
222# Location of CSS
223$webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/ur.css";
224
165# Location of jsMath script, used for the jsMath display mode. 225# Location of jsMath script, used for the jsMath display mode.
166$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; 226$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath-ww.js";
167 227
168# Location of ASCIIMathML script, used for the asciimath display mode. 228# Location of ASCIIMathML script, used for the asciimath display mode.
169$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; 229$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js";
170 230
171################################################################################ 231################################################################################
173################################################################################ 233################################################################################
174 234
175# The root directory of the current course. (The ID of the current course is 235# The root directory of the current course. (The ID of the current course is
176# available in $courseName.) 236# available in $courseName.)
177$courseDirs{root} = "$webworkDirs{courses}/$courseName"; 237$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 238
185# Location of course HTML files, passed to PG. 239# Location of course HTML files, passed to PG.
186$courseDirs{html} = "$courseDirs{root}/html"; 240$courseDirs{html} = "$courseDirs{root}/html";
187$courseURLs{html} = "$webwork_courses_url/$courseName"; 241$courseURLs{html} = "$webwork_courses_url/$courseName";
188 242
206# Location of course-specific macro files. 260# Location of course-specific macro files.
207$courseDirs{macros} = "$courseDirs{templates}/macros"; 261$courseDirs{macros} = "$courseDirs{templates}/macros";
208 262
209# Location of mail-merge templates. 263# Location of mail-merge templates.
210$courseDirs{email} = "$courseDirs{templates}/email"; 264$courseDirs{email} = "$courseDirs{templates}/email";
265
266# Location of temporary editing files.
267$courseDirs{tmpEditFileDir} = "$courseDirs{templates}/tmpEdit";
211 268
212################################################################################ 269################################################################################
213# System-wide files 270# System-wide files
214################################################################################ 271################################################################################
215 272
250##### Screen snippets are used when displaying problem sets on the screen. 307##### Screen snippets are used when displaying problem sets on the screen.
251 308
252# The set header is displayed on the problem set page. It is a PG file. 309# 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" 310$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
254 311
312# A PG template for creation of new problems.
313$webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem.pg"; # screenSetHeader.pg"
314
315# A site info "message of the day" file
316$webworkFiles{site_info} = "$webworkDirs{htdocs}/site_info.txt";
317
255################################################################################ 318################################################################################
256# Course-specific files 319# Course-specific files
257################################################################################ 320################################################################################
258 321
259# The course configuration file. 322# The course configuration file.
260$courseFiles{environment} = "$courseDirs{root}/course.conf"; 323$courseFiles{environment} = "$courseDirs{root}/course.conf";
324
325# The course simple configuration file (holds web-based configuratoin).
326$courseFiles{simpleConfig} = "$courseDirs{root}/simple.conf";
261 327
262# File contents are displayed after login, on the problem sets page. Path given 328# File contents are displayed after login, on the problem sets page. Path given
263# here is relative to the templates directory. 329# here is relative to the templates directory.
264$courseFiles{course_info} = "course_info.txt"; 330$courseFiles{course_info} = "course_info.txt";
265 331
298# Several database are defined in the file conf/database.conf and stored in the 364# Several database are defined in the file conf/database.conf and stored in the
299# hash %dbLayouts. 365# hash %dbLayouts.
300include "conf/database.conf"; 366include "conf/database.conf";
301 367
302# Select the default database layout. This can be overridden in the course.conf 368# 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 369# file of a particular course. The only database layout supported in WW 2.1.4
304# use courses from WeBWorK 1 without first adding course.conf files to them. 370# and up is "sql_single".
305# However, the recommended database layout for new courses is "sql_single". This 371$dbLayoutName = "sql_single";
306# can be set when creating a course.
307$dbLayoutName = "sql_single"; # or "gdbm" or "sql"
308 372
309# This sets the symbol "dbLayout" as an alias for the selected database layout. 373# This sets the symbol "dbLayout" as an alias for the selected database layout.
310*dbLayout = $dbLayouts{$dbLayoutName}; 374*dbLayout = $dbLayouts{$dbLayoutName};
311 375
312################################################################################ 376################################################################################
314################################################################################ 378################################################################################
315 379
316# The directory containing the problem library files. Set to "" if no problem 380# The directory containing the problem library files. Set to "" if no problem
317# library is installed. 381# library is installed.
318$problemLibrary{root} = ""; 382$problemLibrary{root} = "";
383
384# Problem Library version
385# Version 1 is in use. Version 2 will be released soon.
386$problemLibrary{version} = "1";
319 387
320# The name of the SQL database containing problem metadata 388# The name of the SQL database containing problem metadata
321$problemLibrary{sourceSQL} = "ProblemLibrary"; 389$problemLibrary{sourceSQL} = "ProblemLibrary";
322 390
323# The user name to use when connecting to the problem library database 391# The user name to use when connecting to the problem library database
347$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; 415$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log";
348 416
349# The answer log stores a history of all users' submitted answers. 417# The answer log stores a history of all users' submitted answers.
350$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; 418$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
351 419
352################################################################################ 420# Log logins.
353# More paths to external programs 421$courseFiles{logs}{login_log} = "$courseDirs{logs}/login.log";
354################################################################################
355 422
356# These image conversion utilities are included in the WeBWorK distribution. 423# Log for almost every click. By default it is the empty string, which
357$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; 424# turns this log off. If you want it turned on, we suggest
358$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; 425# "$courseDirs{logs}/activity.log"
359$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; 426# When turned on, this log can get quite large.
427$courseFiles{logs}{activity_log} = '';
360 428
361################################################################################ 429################################################################################
362# Site defaults (FIXME: what other things could be "site defaults"?) 430# Site defaults (FIXME: what other things could be "site defaults"?)
363################################################################################ 431################################################################################
364 432
365# Status strings -- lists valid status values and their names. If your site uses
366# additional values, add them here.
367$siteDefaults{status} = {
368 A => "Audit",
369 audit => "Audit",
370 D => "Drop",
371 drop => "Drop",
372 withdraw => "Drop",
373 C => "Enrolled",
374 current => "Enrolled",
375 enrolled => "Enrolled",
376};
377
378# Set the default timezone of courses on this server. This must be a value valid 433# Set the default timezone of courses on this server. To get a list of valid
379# for the TZ environment variable. See also tzset(3). 434# timezones, run:
435#
436# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names'
437#
438# To get a list of valid timezone "links" (deprecated names), run:
439#
440# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::links'
380# 441#
381# If left blank, the system timezone will be used. This is usually what you 442# If left blank, the system timezone will be used. This is usually what you
382# want. You might want to set this if your server is NOT in the same timezone as 443# want. You might want to set this if your server is NOT in the same timezone as
383# your school. If just a few courses are in a different timezone, set this in 444# your school. If just a few courses are in a different timezone, set this in
384# course.conf for the affected courses instead. 445# course.conf for the affected courses instead.
385# 446#
386$siteDefaults{timezone} = ""; 447$siteDefaults{timezone} = "";
387 448
449# The default_templates_course is used by default to create a new course.
450# The contents of the templates directory are copied from this course
451# to the new course being created.
452$siteDefaults{default_templates_course} ="modelCourse";
453
388################################################################################ 454################################################################################
389# Frontend options 455# Frontend options
390################################################################################ 456################################################################################
391 457
392%templates = ( 458%templates = (
393 system => "$webworkDirs{conf}/templates/ur.template", 459 system => "$webworkDirs{conf}/templates/ur.template",
460 gateway => "$webworkDirs{conf}/templates/gw.template",
394); 461);
395 462
396################################################################################ 463################################################################################
397# Authorization system 464# Authorization system
398################################################################################ 465################################################################################
399 466
400# This lets you specify a minimum permission level needed to perform certain 467# this section lets you define which groups of users can perform which actions.
401# actions. In the current system, >=10 will allow a professor to perform the
402# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
403# action (almost never what you want).
404 468
405my $student = 0; 469# this hash maps a numeric permission level to the name of a role. the number
406my $ta = 5; 470# assigned to a role is significant -- roles with higher numbers are considered
471# "more privileged", and are included when that role is listed for a privilege
472# below.
473#
474%userRoles = (
475 guest => -5,
476 student => 0,
477 proctor => 2,
478 ta => 5,
407my $professor = 10; 479 professor => 10,
408my $nobody = undef; 480);
409 481
482# this hash maps operations to the roles that are allowed to perform those
483# operations. the role listed and any role with a higher permission level (in
484# the %userRoles hash) will be allowed to perform the operation. If the role
485# is undefined, no users will be allowed to perform the operation.
486#
410%permissionLevels = ( 487%permissionLevels = (
488 login => "guest",
411 report_bugs => $student, 489 report_bugs => "student",
412 submit_feedback => $student, 490 submit_feedback => "student",
413 change_password => $student, 491 change_password => "student",
414 change_email_address => $student, 492 change_email_address => "student",
415 493
494 proctor_quiz => "proctor",
495
416 view_multiple_sets => $ta, 496 view_multiple_sets => "ta",
417 view_unopened_sets => $ta, 497 view_unopened_sets => "ta",
418 view_unpublished_sets => $ta, 498 view_unpublished_sets => "ta",
419 view_answers => $ta, 499 view_answers => "ta",
420 500
421 become_student => $professor, 501 become_student => "professor",
422 access_instructor_tools => $ta, 502 access_instructor_tools => "ta",
423 score_sets => $professor, 503 score_sets => "professor",
424 send_mail => $professor, 504 send_mail => "professor",
425 receive_feedback => $ta, 505 receive_feedback => "ta",
426 506
427 create_and_delete_problem_sets => $professor, 507 create_and_delete_problem_sets => "professor",
428 assign_problem_sets => $professor, 508 assign_problem_sets => "professor",
429 modify_problem_sets => $professor, 509 modify_problem_sets => "professor",
430 modify_student_data => $professor, 510 modify_student_data => "professor",
431 modify_classlist_files => $professor, 511 modify_classlist_files => "professor",
432 modify_set_def_files => $professor, 512 modify_set_def_files => "professor",
433 modify_scoring_files => $professor, 513 modify_scoring_files => "professor",
434 modify_problem_template_files => $professor, 514 modify_problem_template_files => "professor",
515 manage_course_files => "professor",
435 516
436 create_and_delete_courses => $professor, 517 create_and_delete_courses => "professor",
437 fix_course_databases => $professor, 518 fix_course_databases => "professor",
438 519
439 ##### Behavior of the interactive problem processor ##### 520 ##### Behavior of the interactive problem processor #####
440 521
441 show_correct_answers_before_answer_date => $ta, 522 show_correct_answers_before_answer_date => "ta",
442 show_solutions_before_answer_date => $ta, 523 show_solutions_before_answer_date => "ta",
443 avoid_recording_answers => $ta, 524 avoid_recording_answers => "ta",
525 # Below this level, old answers are never initially shown
526 can_show_old_answers_by_default => "student",
527 # at this level, we look at showOldAnswers for default value
528 # even after the due date
529 can_always_use_show_old_answers_default => "professor",
444 check_answers_before_open_date => $ta, 530 check_answers_before_open_date => "ta",
445 check_answers_after_open_date_with_attempts => $ta, 531 check_answers_after_open_date_with_attempts => "ta",
446 check_answers_after_open_date_without_attempts => $student, 532 check_answers_after_open_date_without_attempts => "guest",
447 check_answers_after_due_date => $student, 533 check_answers_after_due_date => "guest",
448 check_answers_after_answer_date => $student, 534 check_answers_after_answer_date => "guest",
449 record_answers_when_acting_as_student => $nobody, 535 record_answers_when_acting_as_student => undef,
450 # "record_answers_when_acting_as_student" takes precedence 536 # "record_answers_when_acting_as_student" takes precedence
451 # over the following for professors acting as students: 537 # over the following for professors acting as students:
452 record_answers_before_open_date => $nobody, 538 record_answers_before_open_date => undef,
453 record_answers_after_open_date_with_attempts => $student, 539 record_answers_after_open_date_with_attempts => "student",
454 record_answers_after_open_date_without_attempts => $nobody, 540 record_answers_after_open_date_without_attempts => undef,
455 record_answers_after_due_date => $nobody, 541 record_answers_after_due_date => undef,
456 record_answers_after_answer_date => $nobody, 542 record_answers_after_answer_date => undef,
457 dont_log_past_answers => $professor, 543 dont_log_past_answers => "professor",
544 # does the user get to see a dump of the problem?
545 view_problem_debugging_info => "ta",
458 546
459 ##### Behavior of the Hardcopy Processor ##### 547 ##### Behavior of the Hardcopy Processor #####
460 548
461 download_hardcopy_multiuser => $ta, 549 download_hardcopy_multiuser => "ta",
462 download_hardcopy_multiset => $ta, 550 download_hardcopy_multiset => "ta",
551 download_hardcopy_format_pdf => "guest",
463 download_hardcopy_format_tex => $ta, 552 download_hardcopy_format_tex => "ta",
553);
554
555# This is the default permission level given to new students and students with
556# invalid or missing permission levels.
557$default_permission_level = $userRoles{student};
558
559################################################################################
560# Status system
561################################################################################
562
563# This is the default status given to new students and students with invalid
564# or missing statuses.
565$default_status = "Enrolled";
566
567# The first abbreviation in the abbreviations list is the canonical
568# abbreviation, and will be used when setting the status value in a user record
569# or an exported classlist file.
570#
571# Results are undefined if more than one status has the same abbreviation.
572#
573# The four behaviors that are controlled by status are:
574# allow_course_access => is this user allowed to log in?
575# include_in_assignment => is this user included when assigning as set to "all" users?
576# include_in_stats => is this user included in statistical reports?
577# include_in_email => is this user included in emails sent to the class?
578# include_in_scoring => is this user included in score reports?
579
580%statuses = (
581 Enrolled => {
582 abbrevs => [qw/ C c current enrolled /],
583 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats
584 include_in_email include_in_scoring /],
585 },
586 Audit => {
587 abbrevs => [qw/ A a audit /],
588 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats
589 include_in_email /],
590 },
591 Drop => {
592 abbrevs => [qw/ D d drop withdraw /],
593 behaviors => [qw/ /],
594 },
464); 595);
465 596
466################################################################################ 597################################################################################
467# Session options 598# Session options
468################################################################################ 599################################################################################
528 659
529# Only the local renderer is supported in this version. 660# Only the local renderer is supported in this version.
530$pg{renderer} = "WeBWorK::PG::Local"; 661$pg{renderer} = "WeBWorK::PG::Local";
531 662
532# The remote renderer connects to an XML-RPC PG rendering server. 663# The remote renderer connects to an XML-RPC PG rendering server.
533#$pg{renderer} = "WeBWorK::PG::Remote"' 664#$pg{renderer} = "WeBWorK::PG::Remote";
534 665
535##### Renderer-dependent options 666##### Renderer-dependent options
536 667
537# The remote renderer has one option: 668# The remote renderer has one option:
538$pg{renderers}{"WeBWorK::PG::Remote"} = { 669$pg{renderers}{"WeBWorK::PG::Remote"} = {
560 # 691 #
561 # In the last statement, "webworkWrite" should match the user below. 692 # In the last statement, "webworkWrite" should match the user below.
562 # FIXME: this database can become a table in the 'webwork' database 693 # FIXME: this database can become a table in the 'webwork' database
563 dvipng_depth_db => { 694 dvipng_depth_db => {
564 dbsource => 'dbi:mysql:DvipngDepths', 695 dbsource => 'dbi:mysql:DvipngDepths',
565 user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, 696 user => $dbLayouts{sql_single}->{password}->{params}->{usernameRW},
566 passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, 697 passwd => $dbLayouts{sql_single}->{password}->{params}->{passwordRW},
567 }, 698 },
699};
700
701$pg{displayModeOptions}{jsMath} = {
702 reportMissingFonts => 0, # set to 1 to allow the missing font message
703 missingFontMessage => undef, # set to an HTML string to replace the missing font message
704 noImageFonts => 0, # set to 1 if you didn't install the jsMath image fonts
705 processDoubleClicks => 1, # set to 0 to disable double-click on math to get TeX source
568}; 706};
569 707
570##### Directories used by PG 708##### Directories used by PG
571 709
572# The root of the PG directory tree (from pg_root in Apache config). 710# The root of the PG directory tree (from pg_root in Apache config).
573$pg{directories}{root} = "$pg_dir"; 711$pg{directories}{root} = "$pg_dir";
574$pg{directories}{lib} = "$pg{directories}{root}/lib"; 712$pg{directories}{lib} = "$pg{directories}{root}/lib";
575$pg{directories}{macros} = "$pg{directories}{root}/macros"; 713$pg{directories}{macros} = "$pg{directories}{root}/macros";
714
715#
716# The macro file search path. Each directory in this list is seached
717# (in this order) by loadMacros() when it looks for a .pl file.
718#
719$pg{directories}{macrosPath} = [
720 ".", # search the problem file's directory
721 $courseDirs{macros},
722 $pg{directories}{macros},
723];
576 724
577##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) 725##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
578 726
579# Users for whom to print the file name of the PG file being processed. 727# Users for whom to print the file name of the PG file being processed.
580$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; 728$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
586$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", 734$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/",
587$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", 735$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
588 736
589# Size in pixels of dynamically-generated images, i.e. graphs. 737# Size in pixels of dynamically-generated images, i.e. graphs.
590$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, 738$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400,
739
740# To disable the Parser-based versions of num_cmp and fun_cmp, and use the
741# original versions instead, set this value to 1.
742$pg{specialPGEnvironmentVars}{useOldAnswerMacros} = 0;
743
744# Strings to insert at the start and end of the body of a problem
745# (at beginproblem() and ENDDOCUMENT) in various modes. More display modes
746# can be added if different behaviours are desired (e.g., HTML_dpng,
747# HTML_asciimath, etc.). These parts are not used in the Library browser.
748
749$pg{specialPGEnvironmentVars}{problemPreamble} = { TeX => '', HTML=> '' };
750$pg{specialPGEnvironmentVars}{problemPostamble} = { TeX => '', HTML=>'' };
751
752# To have the problem body indented and boxed, uncomment:
753
754# $pg{specialPGEnvironmentVars}{problemPreamble}{HTML} = '<BLOCKQUOTE>
755# <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=15 BGCOLOR=#E8E8E8><TR><TD>';
756# $pg{specialPGEnvironmentVars}{problemPostamble}{HTML} = '</TD></TR></TABLE>
757# </BLOCKQUOTE>';
591 758
592##### PG modules to load 759##### PG modules to load
593 760
594# The first item of each list is the module to load. The remaining items are 761# The first item of each list is the module to load. The remaining items are
595# additional packages to import. 762# additional packages to import.
597${pg}{modules} = [ 764${pg}{modules} = [
598 [qw(DynaLoader)], 765 [qw(DynaLoader)],
599 [qw(Exporter)], 766 [qw(Exporter)],
600 [qw(GD)], 767 [qw(GD)],
601 768
602 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 769 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand utf8)],
603 [qw(AnswerHash AnswerEvaluator)], 770 [qw(AnswerHash AnswerEvaluator)],
604 [qw(WWPlot)], # required by Circle (and others) 771 [qw(WWPlot)], # required by Circle (and others)
605 [qw(Circle)], 772 [qw(Circle)],
606 [qw(Complex)], 773 [qw(Complex)],
607 [qw(Complex1)], 774 [qw(Complex1)],
619 [qw(Regression)], 786 [qw(Regression)],
620 [qw(Select)], 787 [qw(Select)],
621 [qw(Units)], 788 [qw(Units)],
622 [qw(VectorField)], 789 [qw(VectorField)],
623 [qw(Parser Value)], 790 [qw(Parser Value)],
791 [qw(Parser::Legacy)],
792 [qw(Apache::Log)],
624]; 793];
625 794
626##### Answer evaluatior defaults 795##### Answer evaluatior defaults
627 796
628$pg{ansEvalDefaults} = { 797$pg{ansEvalDefaults} = {

Legend:
Removed from v.2849  
changed lines
  Added in v.3826

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9