Parent Directory
|
Revision Log
Revision 433 - (view) (download)
| 1 : | sh002i | 341 | ################################################################################ |
| 2 : | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester | ||
| 3 : | sh002i | 433 | # $Id: global.conf,v 1.20 2002-07-19 02:41:24 sh002i Exp $ |
| 4 : | sh002i | 341 | ################################################################################ |
| 5 : | malsyned | 283 | |
| 6 : | sh002i | 314 | # This file is used to set up the default WeBWorK course environment for all |
| 7 : | # requests. Values may be overwritten by the course.conf for a specific course. | ||
| 8 : | # All package variables set in this file are added to the course environment. | ||
| 9 : | # If you wish to set a variable here but omit it from the course environment, | ||
| 10 : | # use the "my" keyword. The following variables are available to this file: | ||
| 11 : | # | ||
| 12 : | # $webworkRoot directory that contains the WeBWorK distribution | ||
| 13 : | # $courseName name of the course being used | ||
| 14 : | sh002i | 311 | |
| 15 : | sh002i | 314 | # this hash defines the locations of directories needed by WeBWorK |
| 16 : | %webworkDirs = ( | ||
| 17 : | sh002i | 412 | root => "$webworkRoot", |
| 18 : | sh002i | 433 | bin => "$webworkRoot/bin", |
| 19 : | sh002i | 412 | conf => "$webworkRoot/conf", |
| 20 : | sh002i | 433 | courses => "/ww/webwork/courses", #"$webworkRoot/courses", |
| 21 : | sh002i | 412 | lib => "$webworkRoot/lib", |
| 22 : | tmp => "$webworkRoot/tmp", | ||
| 23 : | sh002i | 424 | macros => "$webworkRoot/macros", |
| 24 : | sh002i | 314 | ); |
| 25 : | sh002i | 311 | |
| 26 : | sh002i | 341 | # this hash defines the locations of files needed by WeBWorK |
| 27 : | sh002i | 314 | %webworkFiles = ( |
| 28 : | environment => "$webworkDirs{conf}/global.conf", | ||
| 29 : | malsyned | 283 | ); |
| 30 : | sh002i | 314 | |
| 31 : | sh002i | 412 | # this hash defines URLs needed by WeBWorK |
| 32 : | my $webworkURLRoot = "/webwork_files"; | ||
| 33 : | %webworkURLs = ( | ||
| 34 : | base => "$webworkURLRoot", | ||
| 35 : | logo => "$webworkURLRoot/images/webwork_logo.gif", | ||
| 36 : | sh002i | 433 | courses => "/courses", #"$webworkURLRoot/courses", |
| 37 : | sh002i | 412 | docs => "/webworkDocs", |
| 38 : | ); | ||
| 39 : | |||
| 40 : | sh002i | 314 | # this hash defines the default locations for course subdirectories |
| 41 : | sh002i | 412 | my $courseRoot = "$webworkDirs{courses}/$courseName"; |
| 42 : | sh002i | 314 | %courseDirs = ( |
| 43 : | root => "$courseRoot", | ||
| 44 : | DATA => "$courseRoot/DATA", | ||
| 45 : | auth_DATA => "$courseRoot/DATA/.auth", | ||
| 46 : | html => "$courseRoot/html", | ||
| 47 : | html_images => "$courseRoot/html/images", | ||
| 48 : | html_temp => "$courseRoot/html/tmp", | ||
| 49 : | logs => "$courseRoot/logs", | ||
| 50 : | scoring => "$courseRoot/scoring", | ||
| 51 : | templates => "$courseRoot/templates", | ||
| 52 : | sh002i | 412 | macros => "$courseRoot/templates/macros", |
| 53 : | sh002i | 314 | ); |
| 54 : | |||
| 55 : | sh002i | 341 | # this hash defines the default locations for course files |
| 56 : | sh002i | 314 | %courseFiles = ( |
| 57 : | environment => "$courseDirs{root}/course.conf", | ||
| 58 : | ); | ||
| 59 : | |||
| 60 : | sh002i | 412 | # this hash defines default URLs |
| 61 : | my $courseURLRoot = "$webworkURLs{courses}/$courseName"; | ||
| 62 : | %courseURLs = ( | ||
| 63 : | base => "$courseURLRoot", | ||
| 64 : | sh002i | 433 | html => "$courseURLRoot", |
| 65 : | html_temp => "$courseURLRoot/tmp", | ||
| 66 : | sh002i | 412 | ); |
| 67 : | |||
| 68 : | sh002i | 314 | %dbInfo = ( |
| 69 : | auth_type => "GDBM", | ||
| 70 : | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", | ||
| 71 : | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", | ||
| 72 : | auth_keys_file => "$courseDirs{auth_DATA}/keys", | ||
| 73 : | sh002i | 352 | wwdb_type => "GDBM", |
| 74 : | sh002i | 314 | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", |
| 75 : | cldb_type => "GDBM", | ||
| 76 : | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", | ||
| 77 : | sh002i | 378 | psvn_digits => 5, |
| 78 : | sh002i | 314 | ); |
| 79 : | |||
| 80 : | malsyned | 349 | %templates = ( |
| 81 : | system => "$webworkDirs{conf}/system.template", | ||
| 82 : | ); | ||
| 83 : | |||
| 84 : | sh002i | 341 | # sessionKeyTimeout defines length of inactivity before a key expires (seconds) |
| 85 : | sh002i | 352 | $sessionKeyTimeout = 60*30; |
| 86 : | malsyned | 344 | |
| 87 : | # Practice users are users who's names start with $practiceUser | ||
| 88 : | malsyned | 348 | # (you can comment this out to remove practice user support) |
| 89 : | malsyned | 344 | $practiceUserPrefix = "practice"; |
| 90 : | malsyned | 347 | |
| 91 : | # There is a practice user who can be logged in multiple times. He's | ||
| 92 : | # commented out by default, though, so you don't hurt yourself. It is | ||
| 93 : | # kindof a backdoor to the practice user system, since he doesn't have a | ||
| 94 : | # password. Come to think of it, why do we even have this?! | ||
| 95 : | #$debugPracticeUser = "practice666"; | ||
| 96 : | malsyned | 390 | |
| 97 : | # This lets you specify a minimum permission level needed to perform | ||
| 98 : | # certain actions. In the current system, >=10 will allow a professor | ||
| 99 : | # to perform the action, >=5 will allow a TA to, and >=0 will allow a | ||
| 100 : | # student to perform an action (almost never what you want). | ||
| 101 : | %permissionLevels = ( | ||
| 102 : | "become_student" => 10, | ||
| 103 : | ); | ||
| 104 : | sh002i | 412 | |
| 105 : | # PG translation stuff | ||
| 106 : | %pg = ( | ||
| 107 : | sh002i | 419 | options => { |
| 108 : | sh002i | 424 | # default translation options: |
| 109 : | displayMode => "formattedText", | ||
| 110 : | sh002i | 431 | showOldAnswers => 1, |
| 111 : | sh002i | 424 | showCorrectAnswers => 0, |
| 112 : | sh002i | 431 | showHints => 1, |
| 113 : | sh002i | 424 | showSolutions => 0, |
| 114 : | # default grader | ||
| 115 : | grader => "avg_problem_grader", | ||
| 116 : | sh002i | 419 | }, |
| 117 : | sh002i | 412 | # modules lists module names and the packages each contains |
| 118 : | sh002i | 424 | modules => [ |
| 119 : | [qw(DynaLoader)], | ||
| 120 : | [qw(Exporter)], | ||
| 121 : | [qw(GD)], | ||
| 122 : | sh002i | 412 | |
| 123 : | sh002i | 424 | [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], |
| 124 : | [qw(AnswerHash AnswerEvaluator)], | ||
| 125 : | [qw(WWPlot)], # required by Circle (and others) | ||
| 126 : | [qw(Circle)], | ||
| 127 : | [qw(Complex)], | ||
| 128 : | [qw(Complex1)], | ||
| 129 : | [qw(Distributions)], | ||
| 130 : | [qw(Fraction)], | ||
| 131 : | [qw(Fun)], | ||
| 132 : | [qw(Hermite)], | ||
| 133 : | [qw(Label)], | ||
| 134 : | [qw(List)], | ||
| 135 : | [qw(Match)], | ||
| 136 : | [qw(MatrixReal1)], # required by Matrix | ||
| 137 : | [qw(Matrix)], | ||
| 138 : | [qw(Multiple)], | ||
| 139 : | [qw(PGrandom)], | ||
| 140 : | [qw(Regression)], | ||
| 141 : | [qw(Select)], | ||
| 142 : | [qw(Units)], | ||
| 143 : | [qw(VectorField)], | ||
| 144 : | ], | ||
| 145 : | sh002i | 415 | # defaults used by answer evaluators |
| 146 : | sh002i | 412 | ansEvalDefaults => { |
| 147 : | functAbsTolDefault => .001, | ||
| 148 : | functLLimitDefault => .0000001, | ||
| 149 : | functMaxConstantOfIntegration => 1E8, | ||
| 150 : | functNumOfPoints => 3, | ||
| 151 : | functRelPercentTolDefault => .1, | ||
| 152 : | functULimitDefault => .9999999, | ||
| 153 : | functVarDefault => "x", | ||
| 154 : | functZeroLevelDefault => 1E-14, | ||
| 155 : | functZeroLevelTolDefault => 1E-12, | ||
| 156 : | numAbsTolDefault => .001, | ||
| 157 : | numFormatDefault => "", | ||
| 158 : | numRelPercentTolDefault => .1, | ||
| 159 : | numZeroLevelDefault => 1E-14, | ||
| 160 : | numZeroLevelTolDefault => 1E-12, | ||
| 161 : | }, | ||
| 162 : | ); | ||
| 163 : | |||
| 164 : | %externalPrograms = ( | ||
| 165 : | tth => "/usr/local/bin/tth", | ||
| 166 : | sh002i | 433 | math2img => "$webworkDirs{bin}/math2img", |
| 167 : | sh002i | 412 | ); |
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |