[system] / trunk / webwork2 / conf / global.conf Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf

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

Revision 311 Revision 314
1# WeBWorK global.conf 1# WeBWorK global.conf
2 2
3# anything that needs to be refered to in the environment hash below can be defined 3# 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. 4# requests. Values may be overwritten by the course.conf for a specific course.
5# For example: 5# All package variables set in this file are added to the course environment.
6# my $someBaseDir = "/my/base/dir"; 6# If you wish to set a variable here but omit it from the course environment,
7# Can be used later in the environment hash: 7# use the "my" keyword. The following variables are available to this file:
8# someSubDir => "$someBaseDir/subdir"; 8#
9# $webworkRoot directory that contains the WeBWorK distribution
10# $courseName name of the course being used
9 11
12# this hash defines the locations of directories needed by WeBWorK
13%webworkDirs = (
14 root => "$webworkRoot",
15 conf => "$webworkRoot/conf",
16 courses => "$webworkRoot/courses",
17 lib => "$webworkRoot/lib",
18);
10 19
11( 20%webworkFiles = (
12 # course filesystem locations 21 environment => "$webworkDirs{conf}/global.conf",
13 coursesDirectory => '/home/malsyned/webwork-modperl/courses',
14 courseEnvironmentFilename => 'course.conf',
15); 22);
23
24# this hash defines the default locations for course subdirectories
25my $courseRoot = "$webworkDirs{courses}/$courseName"; # easier!
26%courseDirs = (
27 root => "$courseRoot",
28 DATA => "$courseRoot/DATA",
29 auth_DATA => "$courseRoot/DATA/.auth",
30 html => "$courseRoot/html",
31 html_images => "$courseRoot/html/images",
32 html_temp => "$courseRoot/html/tmp",
33 logs => "$courseRoot/logs",
34 scoring => "$courseRoot/scoring",
35 templates => "$courseRoot/templates",
36);
37
38%courseFiles = (
39 environment => "$courseDirs{root}/course.conf",
40);
41
42%dbInfo = (
43 auth_type => "GDBM",
44 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
45 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
46 auth_keys_file => "$courseDirs{auth_DATA}/keys",
47 wwdb_type => "DGBM",
48 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
49 cldb_type => "GDBM",
50 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
51);
52
53@arraytest = (
54 'your',
55 'mom',
56 'is',
57 'sexy',
58);

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9