| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.144 2005/09/30 19:36:49 sh002i Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.145 2005/10/02 19:44:44 jj 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. |
| … | |
… | |
| 426 | $courseFiles{logs}{activity_log} = ''; |
426 | $courseFiles{logs}{activity_log} = ''; |
| 427 | |
427 | |
| 428 | ################################################################################ |
428 | ################################################################################ |
| 429 | # Site defaults (FIXME: what other things could be "site defaults"?) |
429 | # Site defaults (FIXME: what other things could be "site defaults"?) |
| 430 | ################################################################################ |
430 | ################################################################################ |
| 431 | |
|
|
| 432 | # Status strings -- lists valid status values and their names. If your site uses |
|
|
| 433 | # additional values, add them here. |
|
|
| 434 | $siteDefaults{status} = { |
|
|
| 435 | A => "Audit", |
|
|
| 436 | a => "Audit", |
|
|
| 437 | audit => "Audit", |
|
|
| 438 | D => "Drop", |
|
|
| 439 | d => "Drop", |
|
|
| 440 | drop => "Drop", |
|
|
| 441 | withdraw => "Drop", |
|
|
| 442 | C => "Enrolled", |
|
|
| 443 | c => "Enrolled", |
|
|
| 444 | current => "Enrolled", |
|
|
| 445 | enrolled => "Enrolled", |
|
|
| 446 | }; |
|
|
| 447 | |
431 | |
| 448 | # Set the default timezone of courses on this server. To get a list of valid |
432 | # Set the default timezone of courses on this server. To get a list of valid |
| 449 | # timezones, run: |
433 | # timezones, run: |
| 450 | # |
434 | # |
| 451 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' |
435 | # perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' |
| … | |
… | |
| 564 | download_hardcopy_format_pdf => "guest", |
548 | download_hardcopy_format_pdf => "guest", |
| 565 | download_hardcopy_format_tex => "ta", |
549 | download_hardcopy_format_tex => "ta", |
| 566 | ); |
550 | ); |
| 567 | |
551 | |
| 568 | ################################################################################ |
552 | ################################################################################ |
|
|
553 | # Status system |
|
|
554 | ################################################################################ |
|
|
555 | |
|
|
556 | # The first abbreviation in the abbreviations list is the canonical |
|
|
557 | # abbreviation, and will be used when setting the status value in a user record |
|
|
558 | # or an exported classlist file. |
|
|
559 | # |
|
|
560 | # Results are undefined if more than one status has the same abbreviation. |
|
|
561 | # |
|
|
562 | # The four behaviors that are controlled by status are: |
|
|
563 | # allow_course_access => is this user allowed to log in? |
|
|
564 | # include_in_assignment => is this user included when assigning as set to "all" users? |
|
|
565 | # include_in_stats => is this user included in statistical reports? |
|
|
566 | # include_in_scoring => is this user included in score reports? |
|
|
567 | |
|
|
568 | %statuses = ( |
|
|
569 | Enrolled => { |
|
|
570 | abbrevs => [qw/ C c current enrolled /], |
|
|
571 | behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_scoring /], |
|
|
572 | }, |
|
|
573 | Audit => { |
|
|
574 | abbrevs => [qw/ A a audit /], |
|
|
575 | behaviors => [qw/ allow_course_access include_in_assignment include_in_stats /], |
|
|
576 | }, |
|
|
577 | Drop => { |
|
|
578 | abbrevs => [qw/ D d drop withdraw /], |
|
|
579 | behaviors => [qw/ /], |
|
|
580 | }, |
|
|
581 | ); |
|
|
582 | |
|
|
583 | # This is the default status given to new students and students with invalid |
|
|
584 | # or missing statuses. |
|
|
585 | $default_status = "Enrolled"; |
|
|
586 | |
|
|
587 | ################################################################################ |
| 569 | # Session options |
588 | # Session options |
| 570 | ################################################################################ |
589 | ################################################################################ |
| 571 | |
590 | |
| 572 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
591 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
| 573 | $sessionKeyTimeout = 60*30; |
592 | $sessionKeyTimeout = 60*30; |