[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 557 Revision 558
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4# $Id: global.conf,v 1.26 2002-08-29 19:56:23 sh002i Exp $ 4# $Id: global.conf,v 1.27 2002-09-20 22:47:21 sh002i Exp $
5################################################################################ 5################################################################################
6 6
7# This file is used to set up the default WeBWorK course environment for all 7# This file is used to set up the default WeBWorK course environment for all
8# requests. Values may be overwritten by the course.conf for a specific course. 8# requests. Values may be overwritten by the course.conf for a specific course.
9# All package variables set in this file are added to the course environment. 9# All package variables set in this file are added to the course environment.
11# use the "my" keyword. The following variables are available to this file: 11# use the "my" keyword. The following variables are available to this file:
12# 12#
13# $webworkRoot directory that contains the WeBWorK distribution 13# $webworkRoot directory that contains the WeBWorK distribution
14# $courseName name of the course being used 14# $courseName name of the course being used
15 15
16# this hash defines the locations of directories needed by WeBWorK 16################################################################################
17
17%webworkDirs = ( 18%webworkDirs = (
18 root => "$webworkRoot", 19 root => "$webworkRoot",
19 bin => "$webworkRoot/bin", 20 bin => "$webworkRoot/bin",
20 conf => "$webworkRoot/conf", 21 conf => "$webworkRoot/conf",
21 courses => "/ww/webwork/courses", #"$webworkRoot/courses", # *** 22 courses => "/ww/webwork/courses", #"$webworkRoot/courses", # ***
22 lib => "$webworkRoot/lib", 23 lib => "$webworkRoot/lib",
24 log => "$webworkRoot/log",
25 macros => "$webworkRoot/macros",
23 tmp => "$webworkRoot/tmp", 26 tmp => "$webworkRoot/tmp",
24 macros => "$webworkRoot/macros",
25); 27);
26 28
27# this hash defines the locations of files needed by WeBWorK
28%webworkFiles = (
29 environment => "$webworkDirs{conf}/global.conf",
30 hardcopySnippets => {
31 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
32 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
33 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
34 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
35 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
36 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
37 },
38 screenSnippets => {
39 setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
40 },
41);
42
43# this hash defines URLs needed by WeBWorK
44my $webworkURLRoot = "/modperl-sam";
45%webworkURLs = (
46 root => "$webworkURLRoot",
47 htdocs => "/webwork_files",
48 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
49);
50
51# this hash defines the default locations for course subdirectories
52my $courseRoot = "$webworkDirs{courses}/$courseName"; 29my $courseRoot = "$webworkDirs{courses}/$courseName";
53%courseDirs = ( 30%courseDirs = (
54 root => "$courseRoot", 31 root => "$courseRoot",
55 DATA => "$courseRoot/DATA", 32 DATA => "$courseRoot/DATA",
56 auth_DATA => "$courseRoot/DATA/.auth", 33 auth_DATA => "$courseRoot/DATA/.auth",
61 scoring => "$courseRoot/scoring", 38 scoring => "$courseRoot/scoring",
62 templates => "$courseRoot/templates", 39 templates => "$courseRoot/templates",
63 macros => "$courseRoot/templates/macros", 40 macros => "$courseRoot/templates/macros",
64); 41);
65 42
66# this hash defines the default locations for course-specific files 43%webworkFiles = (
44 environment => "$webworkDirs{conf}/global.conf",
45 hardcopySnippets => {
46 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
47 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
48 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
49 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
50 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
51 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
52 },
53 screenSnippets => {
54 setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
55 },
56 logs => {
57 timing => "$webworkDirs{log}/timing.log",
58 transaction => "$webworkDirs{logs}/transaction.log",
59 },
60);
61
67%courseFiles = ( 62%courseFiles = (
68 environment => "$courseDirs{root}/course.conf", 63 environment => "$courseDirs{root}/course.conf",
69); 64);
70 65
71# this hash defines default URLs 66my $webworkURLRoot = "/modperl-sam";
67%webworkURLs = (
68 root => "$webworkURLRoot",
69 htdocs => "/webwork_files",
70 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
71);
72
72my $courseURLRoot = "$webworkURLs{htdocs}/$courseName"; 73my $courseURLRoot = "$webworkURLs{htdocs}/$courseName";
73%courseURLs = ( 74%courseURLs = (
74 base => "$courseURLRoot", 75 base => "$courseURLRoot",
75 html => "$courseURLRoot", 76 html => "$courseURLRoot",
76 html_temp => "$courseURLRoot/tmp", 77 html_temp => "$courseURLRoot/tmp",
77); 78);
79
80################################################################################
78 81
79%dbInfo = ( 82%dbInfo = (
80 auth_type => "GDBM", 83 auth_type => "GDBM",
81 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 84 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
82 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 85 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",

Legend:
Removed from v.557  
changed lines
  Added in v.558

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9