Parent Directory
|
Revision Log
merged changes from rel-2-0-pr1-hardcopy-changes -sam
1 #!perl 2 ################################################################################ 3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 4 # $Id: global.conf.dist,v 1.12 2003-02-18 07:04:11 sh002i Exp $ 5 ################################################################################ 6 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. 9 # All package variables set in this file are added to the course environment. 10 # If you wish to set a variable here but omit it from the course environment, 11 # use the "my" keyword. The following variables are available to this file: 12 # 13 # $webworkRoot directory that contains the WeBWorK distribution 14 # $webworkURL base URL handled by Apache::WeBWorK 15 # $courseName name of the course being used 16 17 ################################################################################ 18 # WeBWorK settings 19 ################################################################################ 20 21 %webworkDirs = ( 22 root => "$webworkRoot", 23 bin => "$webworkRoot/bin", 24 conf => "$webworkRoot/conf", 25 courses => "$webworkRoot/courses", 26 lib => "$webworkRoot/lib", 27 logs => "$webworkRoot/logs", 28 macros => "$webworkRoot/macros", 29 tmp => "$webworkRoot/tmp", 30 ); 31 32 %webworkFiles = ( 33 environment => "$webworkDirs{conf}/global.conf", 34 hardcopySnippets => { 35 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", 36 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", 37 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", 38 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", 39 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", 40 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", 41 }, 42 screenSnippets => { 43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 44 }, 45 logs => { 46 timing => "$webworkDirs{logs}/timing.log", 47 transaction => "$courseDirs{logs}/transaction.log", 48 }, 49 ); 50 51 %webworkURLs = ( 52 root => "$webworkURLRoot", 53 home => "http://host.yourdomaon.edu/webwork-info", 54 htdocs => "/webwork_files", 55 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 56 oldProf => "/webwork-old/profLogin.pl", 57 ); 58 59 ################################################################################ 60 # Default course-specific settings 61 ################################################################################ 62 63 my $courseRoot = "$webworkDirs{courses}/$courseName"; 64 %courseDirs = ( 65 root => "$courseRoot", 66 DATA => "$courseRoot/DATA", 67 auth_DATA => "$courseRoot/DATA/.auth", 68 html => "$courseRoot/html", 69 html_images => "$courseRoot/html/images", 70 html_temp => "$courseRoot/html/tmp", 71 logs => "$courseRoot/logs", 72 scoring => "$courseRoot/scoring", 73 templates => "$courseRoot/templates", 74 macros => "$courseRoot/templates/macros", 75 ); 76 77 %courseFiles = ( 78 environment => "$courseDirs{root}/course.conf", 79 motd => "$courseDirs{root}/motd.txt", 80 ); 81 82 # quick hack to fix transaction logging. blah. 83 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 84 85 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 86 %courseURLs = ( 87 root => "$courseURLRoot", 88 html => "$courseURLRoot", 89 html_temp => "$courseURLRoot/tmp", 90 ); 91 92 ################################################################################ 93 # Other site-specific options 94 ################################################################################ 95 96 %mail = ( 97 smtpServer => "mail.math.rochester.edu", 98 smtpSender => "webwork\@math.rochester.edu", 99 # allowedRecipients defines addresses that the PG system is allowed to 100 # send mail to. this prevents subtle PG exploits. This should be set 101 # in course.conf to the addresses of professors of each course. Sending 102 # mail from the PG system (i.e. questionaires, essay questions) will 103 # fail if this is not set somewhere (either here or in course.conf). 104 #allowedRecipients => [ 105 # "yourname\@host.yourdomain.edu", 106 #], 107 # if defined, feedbackRecipients overrides the list of recipients for 108 # feedback email. It's appropriate to set this in the course.conf for 109 # specific courses, but probably not in global.conf. if not defined, 110 # mail is sent to all professors and TAs for a given course 111 #feedbackRecipients => [ 112 # "prof1\@host.yourdomain.edu", 113 # "prof2\@host.yourdomain.edu", 114 #], 115 ); 116 117 %externalPrograms = ( 118 mkdir => "/bin/mkdir", 119 tth => "/usr/local/bin/tth", 120 pdflatex => "/usr/local/bin/pdflatex", 121 latex => "/usr/local/bin/latex", 122 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 123 gif2eps => "$webworkDirs{bin}/gif2eps", 124 png2eps => "$webworkDirs{bin}/png2eps", 125 gif2png => "$webworkDirs{bin}/gif2png", 126 ); 127 128 ################################################################################ 129 # Frontend options 130 ################################################################################ 131 132 %templates = ( 133 system => "$webworkDirs{conf}/barebones.template", 134 ); 135 136 # $sessionKeyTimeout defines seconds of inactivity before a key expires 137 $sessionKeyTimeout = 60*30; 138 139 # Practice users are users who's names start with $practiceUser 140 # (you can comment this out to remove practice user support) 141 $practiceUserPrefix = "practice"; 142 143 # There is a practice user who can be logged in multiple times. He's 144 # commented out by default, though, so you don't hurt yourself. It is 145 # kindof a backdoor to the practice user system, since he doesn't have a 146 # password. Come to think of it, why do we even have this?! 147 #$debugPracticeUser = "practice666"; 148 149 ################################################################################ 150 # Database and session 151 ################################################################################ 152 153 %dbInfo = ( 154 auth_type => "GDBM", 155 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 156 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 157 auth_keys_file => "$courseDirs{auth_DATA}/keys", 158 wwdb_type => "GDBM", 159 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", 160 cldb_type => "GDBM", 161 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 162 psvn_digits => 5, 163 ); 164 165 # This lets you specify a minimum permission level needed to perform 166 # certain actions. In the current system, >=10 will allow a professor 167 # to perform the action, >=5 will allow a TA to, and >=0 will allow a 168 # student to perform an action (almost never what you want). 169 %permissionLevels = ( 170 "become_student" => 10, 171 ); 172 173 ################################################################################ 174 # PG translation options 175 ################################################################################ 176 177 %pg = ( 178 options => { 179 # default translation options 180 displayMode => "images", 181 showOldAnswers => 1, 182 showCorrectAnswers => 0, 183 showHints => 0, 184 showSolutions => 0, 185 catchWarnings => 1, 186 # default grader 187 grader => "avg_problem_grader", 188 }, 189 # modules lists module names and the packages each contains 190 modules => [ 191 [qw(DynaLoader)], 192 [qw(Exporter)], 193 [qw(GD)], 194 195 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 196 [qw(AnswerHash AnswerEvaluator)], 197 [qw(WWPlot)], # required by Circle (and others) 198 [qw(Circle)], 199 [qw(Complex)], 200 [qw(Complex1)], 201 [qw(Distributions)], 202 [qw(Fraction)], 203 [qw(Fun)], 204 [qw(Hermite)], 205 [qw(Label)], 206 [qw(List)], 207 [qw(Match)], 208 [qw(MatrixReal1)], # required by Matrix 209 [qw(Matrix)], 210 [qw(Multiple)], 211 [qw(PGrandom)], 212 [qw(Regression)], 213 [qw(Select)], 214 [qw(Units)], 215 [qw(VectorField)], 216 ], 217 # defaults used by answer evaluators 218 ansEvalDefaults => { 219 functAbsTolDefault => .001, 220 functLLimitDefault => .0000001, 221 functMaxConstantOfIntegration => 1E8, 222 functNumOfPoints => 3, 223 functRelPercentTolDefault => .1, 224 functULimitDefault => .9999999, 225 functVarDefault => "x", 226 functZeroLevelDefault => 1E-14, 227 functZeroLevelTolDefault => 1E-12, 228 numAbsTolDefault => .001, 229 numFormatDefault => "", 230 numRelPercentTolDefault => .1, 231 numZeroLevelDefault => 1E-14, 232 numZeroLevelTolDefault => 1E-12, 233 }, 234 );
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |