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

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

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

Revision 4578 Revision 4579
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2006 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.177 2006/09/08 19:53:21 sh002i Exp $ 5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.178 2006/09/11 20:33:27 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.
54$externalPrograms{mysql} = "/usr/bin/mysql"; 54$externalPrograms{mysql} = "/usr/bin/mysql";
55$externalPrograms{tar} = "/usr/bin/tar"; 55$externalPrograms{tar} = "/usr/bin/tar";
56 56
57# equation rendering/hardcopy utiltiies 57# equation rendering/hardcopy utiltiies
58$externalPrograms{latex} = "/usr/bin/latex"; 58$externalPrograms{latex} = "/usr/bin/latex";
59$externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; # --shell-escape allows pdflatex to handle .eps files 59$externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape";
60$externalPrograms{dvipng} = "/usr/bin/dvipng"; 60$externalPrograms{dvipng} = "/usr/bin/dvipng";
61$externalPrograms{tth} = "/usr/bin/tth"; 61$externalPrograms{tth} = "/usr/bin/tth";
62 62
63# NetPBM - basic image manipulation utilities 63# NetPBM - basic image manipulation utilities
64# most sites only need to configure $netpbm_prefix. 64# most sites only need to configure $netpbm_prefix.
363# osuLibrary => "Ohio State", 363# osuLibrary => "Ohio State",
364# capaLibrary => "CAPA", 364# capaLibrary => "CAPA",
365}; 365};
366 366
367################################################################################ 367################################################################################
368# Status system
369################################################################################
370
371# This is the default status given to new students and students with invalid
372# or missing statuses.
373$default_status = "Enrolled";
374
375# The first abbreviation in the abbreviations list is the canonical
376# abbreviation, and will be used when setting the status value in a user record
377# or an exported classlist file.
378#
379# Results are undefined if more than one status has the same abbreviation.
380#
381# The four behaviors that are controlled by status are:
382# allow_course_access => is this user allowed to log in?
383# include_in_assignment => is this user included when assigning as set to "all" users?
384# include_in_stats => is this user included in statistical reports?
385# include_in_email => is this user included in emails sent to the class?
386# include_in_scoring => is this user included in score reports?
387
388%statuses = (
389 Enrolled => {
390 abbrevs => [qw/ C c current enrolled /],
391 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email include_in_scoring /],
392 },
393 Audit => {
394 abbrevs => [qw/ A a audit /],
395 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats include_in_email /],
396 },
397 Drop => {
398 abbrevs => [qw/ D d drop withdraw /],
399 behaviors => [qw/ /],
400 },
401);
402
403################################################################################
368# Database options 404# Database options
369################################################################################ 405################################################################################
370 406
371# these variables are used by database.conf. we define them here so that editing 407# these variables are used by database.conf. we define them here so that editing
372# database.conf isn't necessary. 408# database.conf isn't necessary.
375$database_password = ""; 411$database_password = "";
376$database_debug = 0; 412$database_debug = 0;
377 413
378# Variables for sql_moodle database layout. 414# Variables for sql_moodle database layout.
379$moodle_dsn = "dbi:mysql:moodle"; 415$moodle_dsn = "dbi:mysql:moodle";
380$moodle_table_prefix = "mdl_";
381$moodle_username = $database_username; 416$moodle_username = $database_username;
382$moodle_password = $database_password; 417$moodle_password = $database_password;
418$moodle_table_prefix = "mdl_";
383 419
384# Several database are defined in the file conf/database.conf and stored in the 420# Several database are defined in the file conf/database.conf and stored in the
385# hash %dbLayouts. 421# hash %dbLayouts.
386include "conf/database.conf"; 422include "conf/database.conf";
387 423
506# A string or a hash is accepted, as above. 542# A string or a hash is accepted, as above.
507# 543#
508$authen{proctor_module} = "WeBWorK::Authen::Proctor"; 544$authen{proctor_module} = "WeBWorK::Authen::Proctor";
509 545
510# Options for particular authentication modules 546# Options for particular authentication modules
547
548$authen{moodle_options} = {
549 dsn => $moodle_dsn,
550 username => $moodle_username,
551 password => $moodle_password,
552 table_prefix => $moodle_table_prefix,
553};
511 554
512$authen{ldap_options} = { 555$authen{ldap_options} = {
513 # hosts to attempt to connect to, in order. for example: 556 # hosts to attempt to connect to, in order. for example:
514 # auth.myschool.edu -- uses LDAP scheme and port 389 557 # auth.myschool.edu -- uses LDAP scheme and port 389
515 # ldap://auth.myschool.edu:666 -- non-standard port 558 # ldap://auth.myschool.edu:666 -- non-standard port
626# This is the default permission level given to new students and students with 669# This is the default permission level given to new students and students with
627# invalid or missing permission levels. 670# invalid or missing permission levels.
628$default_permission_level = $userRoles{student}; 671$default_permission_level = $userRoles{student};
629 672
630################################################################################ 673################################################################################
631# Status system
632################################################################################
633
634# This is the default status given to new students and students with invalid
635# or missing statuses.
636$default_status = "Enrolled";
637
638# The first abbreviation in the abbreviations list is the canonical
639# abbreviation, and will be used when setting the status value in a user record
640# or an exported classlist file.
641#
642# Results are undefined if more than one status has the same abbreviation.
643#
644# The four behaviors that are controlled by status are:
645# allow_course_access => is this user allowed to log in?
646# include_in_assignment => is this user included when assigning as set to "all" users?
647# include_in_stats => is this user included in statistical reports?
648# include_in_email => is this user included in emails sent to the class?
649# include_in_scoring => is this user included in score reports?
650
651%statuses = (
652 Enrolled => {
653 abbrevs => [qw/ C c current enrolled /],
654 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats
655 include_in_email include_in_scoring /],
656 },
657 Audit => {
658 abbrevs => [qw/ A a audit /],
659 behaviors => [qw/ allow_course_access include_in_assignment include_in_stats
660 include_in_email /],
661 },
662 Drop => {
663 abbrevs => [qw/ D d drop withdraw /],
664 behaviors => [qw/ /],
665 },
666);
667
668################################################################################
669# Session options 674# Session options
670################################################################################ 675################################################################################
671 676
672# $sessionKeyTimeout defines seconds of inactivity before a key expires 677# $sessionKeyTimeout defines seconds of inactivity before a key expires
673$sessionKeyTimeout = 60*30; 678$sessionKeyTimeout = 60*30;

Legend:
Removed from v.4578  
changed lines
  Added in v.4579

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9