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

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

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

Revision 311 Revision 349
1# WeBWorK global.conf 1################################################################################
2# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
3# $Id: global.conf,v 1.9 2002-06-07 21:37:32 malsyned Exp $
4################################################################################
2 5
3# anything that needs to be refered to in the environment hash below can be defined 6# This file is used to set up the default WeBWorK course environment for all
4# here -- it won't be added to the environment, since it is not returned. 7# requests. Values may be overwritten by the course.conf for a specific course.
5# For example: 8# All package variables set in this file are added to the course environment.
6# my $someBaseDir = "/my/base/dir"; 9# If you wish to set a variable here but omit it from the course environment,
7# Can be used later in the environment hash: 10# use the "my" keyword. The following variables are available to this file:
8# someSubDir => "$someBaseDir/subdir"; 11#
12# $webworkRoot directory that contains the WeBWorK distribution
13# $courseName name of the course being used
9 14
15# this hash defines the locations of directories needed by WeBWorK
16%webworkDirs = (
17 root => "$webworkRoot",
18 conf => "$webworkRoot/conf",
19 courses => "$webworkRoot/courses",
20 lib => "$webworkRoot/lib",
21);
10 22
11( 23# this hash defines the locations of files needed by WeBWorK
12 # course filesystem locations 24%webworkFiles = (
13 coursesDirectory => '/home/malsyned/webwork-modperl/courses', 25 environment => "$webworkDirs{conf}/global.conf",
14 courseEnvironmentFilename => 'course.conf',
15); 26);
27
28# this hash defines the default locations for course subdirectories
29my $courseRoot = "$webworkDirs{courses}/$courseName"; # easier!
30%courseDirs = (
31 root => "$courseRoot",
32 DATA => "$courseRoot/DATA",
33 auth_DATA => "$courseRoot/DATA/.auth",
34 html => "$courseRoot/html",
35 html_images => "$courseRoot/html/images",
36 html_temp => "$courseRoot/html/tmp",
37 logs => "$courseRoot/logs",
38 scoring => "$courseRoot/scoring",
39 templates => "$courseRoot/templates",
40);
41
42# this hash defines the default locations for course files
43%courseFiles = (
44 environment => "$courseDirs{root}/course.conf",
45);
46
47%dbInfo = (
48 auth_type => "GDBM",
49 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
50 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
51 auth_keys_file => "$courseDirs{auth_DATA}/keys",
52 wwdb_type => "DGBM",
53 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
54 cldb_type => "GDBM",
55 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
56);
57
58%templates = (
59 system => "$webworkDirs{conf}/system.template",
60);
61
62# sessionKeyTimeout defines length of inactivity before a key expires (seconds)
63$sessionKeyTimeout = 60 * 30;
64
65# Practice users are users who's names start with $practiceUser
66# (you can comment this out to remove practice user support)
67$practiceUserPrefix = "practice";
68
69# There is a practice user who can be logged in multiple times. He's
70# commented out by default, though, so you don't hurt yourself. It is
71# kindof a backdoor to the practice user system, since he doesn't have a
72# password. Come to think of it, why do we even have this?!
73#$debugPracticeUser = "practice666";

Legend:
Removed from v.311  
changed lines
  Added in v.349

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9