Parent Directory
|
Revision Log
replaced previous file which had a gremlin somewhere
1 #!perl 2 ################################################################################ 3 # WeBWorK Online Homework Delivery System 4 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 5 # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.49 2004/02/12 14:32:48 gage Exp $ 6 # 7 # This program is free software; you can redistribute it and/or modify it under 8 # the terms of either: (a) the GNU General Public License as published by the 9 # Free Software Foundation; either version 2, or (at your option) any later 10 # version, or (b) the "Artistic License" which comes with this package. 11 # 12 # This program is distributed in the hope that it will be useful, but WITHOUT 13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the 15 # Artistic License for more details. 16 ################################################################################ 17 18 # This file is used to set up the default WeBWorK course environment for all 19 # requests. Values may be overwritten by the course.conf for a specific course. 20 # All package variables set in this file are added to the course environment. 21 # If you wish to set a variable here but omit it from the course environment, 22 # use the "my" keyword. The following variables are available to this file: 23 # 24 # $webworkRoot directory that contains the WeBWorK distribution 25 # $webworkURL base URL handled by Apache::WeBWorK 26 # $pgRoot directory that contains the PG distribution 27 # $courseName name of the course being used 28 29 ################################################################################ 30 # WeBWorK settings 31 ################################################################################ 32 33 %webworkDirs = ( 34 root => "$webworkRoot", 35 DATA => "$webworkRoot/DATA", 36 uploadCache => "$webworkRoot/DATA/uploads", 37 bin => "$webworkRoot/bin", 38 conf => "$webworkRoot/conf", 39 courses => "$webworkRoot/courses", 40 htdocs => "$webworkRoot/htdocs", 41 htdocs_temp => "$webworkRoot/htdocs/tmp", 42 equationCache => "$webworkRoot/htdocs/tmp/equations", 43 lib => "$webworkRoot/lib", 44 logs => "$webworkRoot/logs", 45 macros => "$pgRoot/macros", 46 tmp => "$webworkRoot/tmp", 47 ); 48 49 %webworkFiles = ( 50 environment => "$webworkDirs{conf}/global.conf", 51 hardcopySnippets => { 52 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", 53 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", 54 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", 55 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", 56 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", 57 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", 58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", 59 }, 60 screenSnippets => { 61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", 62 }, 63 logs => { 64 timing => "$webworkDirs{logs}/timing.log", 65 }, 66 equationCacheDB => "$webworkDirs{DATA}/equationcache", 67 ); 68 69 %webworkURLs = ( 70 root => "$webworkURLRoot", 71 home => "/webwork2_files/index.html", 72 htdocs => "/webwork2_files", 73 htdocs_temp => "/webwork2_files/tmp", 74 equationCache => "/webwork2_files/tmp/equations", 75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 76 oldProf => "/webwork-old/profLogin.pl", 77 ); 78 79 ################################################################################ 80 # Default course-specific settings 81 ################################################################################ 82 83 my $courseRoot = "$webworkDirs{courses}/$courseName"; 84 %courseDirs = ( 85 root => "$courseRoot", 86 DATA => "$courseRoot/DATA", 87 auth_DATA => "$courseRoot/DATA/.auth", 88 html => "$courseRoot/html", 89 html_images => "$courseRoot/html/images", 90 html_temp => "$courseRoot/html/tmp", 91 logs => "$courseRoot/logs", 92 scoring => "$courseRoot/scoring", 93 templates => "$courseRoot/templates", 94 macros => "$courseRoot/templates/macros", 95 email => "$courseRoot/templates/email", 96 ); 97 98 %courseFiles = ( 99 environment => "$courseDirs{root}/course.conf", 100 motd => "$courseDirs{templates}/motd.txt", 101 logs => { 102 answer_log => "$courseDirs{logs}/answer_log", 103 }, 104 course_info => "course_info.txt", # path relative to templates directory 105 login_info => "login_info.txt", # path relative to templates directory 106 ); 107 108 # quick hack to fix transaction logging. blah. 109 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 110 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 111 112 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 113 %courseURLs = ( 114 root => "$courseURLRoot", 115 html => "$courseURLRoot", 116 html_temp => "$courseURLRoot/tmp", 117 ); 118 119 ################################################################################ 120 # Other site-specific options 121 ################################################################################ 122 123 %mail = ( 124 smtpServer => "mail.math.rochester.edu", 125 smtpSender => "webwork\@math.rochester.edu", 126 # allowedRecipients defines addresses that the PG system is allowed to 127 # send mail to. this prevents subtle PG exploits. This should be set 128 # in course.conf to the addresses of professors of each course. Sending 129 # mail from the PG system (i.e. questionaires, essay questions) will 130 # fail if this is not set somewhere (either here or in course.conf). 131 #allowedRecipients => [ 132 # 'yourname@host.yourdomain.edu', 133 #], 134 # if defined, feedbackRecipients overrides the list of recipients for 135 # feedback email. It's appropriate to set this in the course.conf for 136 # specific courses, but probably not in global.conf. if not defined, 137 # mail is sent to all professors and TAs for a given course 138 #feedbackRecipients => [ 139 # 'prof1@host.yourdomain.edu', 140 # 'prof2@host.yourdomain.edu', 141 #], 142 # feedbackVerbosity: 143 # 0: send only the feedback comment and context link 144 # 1: as in 0, plus user, set, problem, and PG data 145 # 2: as in 1, plus the problem environment (debugging data) 146 feedbackVerbosity => 1, 147 editor_window_rows => 15, 148 editor_window_columns => 100, 149 ); 150 151 %externalPrograms = ( 152 mkdir => "/bin/mkdir", 153 tth => "/usr/local/bin/tth", 154 pdflatex => "/usr/local/bin/pdflatex", 155 latex => "/usr/local/bin/latex", 156 dvipng => "/usr/local/bin/dvipng", 157 gif2eps => "$webworkDirs{bin}/gif2eps", 158 png2eps => "$webworkDirs{bin}/png2eps", 159 gif2png => "$webworkDirs{bin}/gif2png", 160 ); 161 162 ################################################################################ 163 # Frontend options 164 ################################################################################ 165 166 %templates = ( 167 system => "$webworkDirs{conf}/templates/ur.template", 168 ); 169 170 ################################################################################ 171 # Database options 172 ################################################################################ 173 174 # Several database are defined in the file conf/database.conf and stored in the 175 # hash %dbLayouts. 176 include "conf/database.conf"; 177 178 # Select the default database layout. This can be overridden in the course.conf 179 # file of a particular course. 180 #*dbLayout = $dbLayouts{sql}; 181 *dbLayout = $dbLayouts{gdbm}; 182 183 ################################################################################ 184 # Authorization system 185 ################################################################################ 186 187 # This lets you specify a minimum permission level needed to perform certain 188 # actions. In the current system, >=10 will allow a professor to perform the 189 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an 190 # action (almost never what you want). 191 my $ta = 5; 192 my $professor = 10; 193 %permissionLevels = ( 194 become_student => $professor, 195 access_instructor_tools => $ta, 196 create_and_delete_problem_sets => $professor, 197 modify_problem_sets => $professor, 198 assign_problem_sets => $professor, 199 modify_student_data => $professor, 200 score_sets => $professor, 201 send_mail => $professor, 202 modify_classlist_files => $professor, 203 modify_set_def_files => $professor, 204 ); 205 206 ################################################################################ 207 # Session options 208 ################################################################################ 209 210 # $sessionKeyTimeout defines seconds of inactivity before a key expires 211 $sessionKeyTimeout = 60*30; 212 213 # $sessionKeyLength defines the length (in characters) of the session key 214 $sessionKeyLength = 40; 215 216 # @sessionKeyChars lists the legal session key characters 217 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); 218 219 # Practice users are users who's names start with $practiceUser 220 # (you can comment this out to remove practice user support) 221 $practiceUserPrefix = "practice"; 222 223 # There is a practice user who can be logged in multiple times. He's 224 # commented out by default, though, so you don't hurt yourself. It is 225 # kindof a backdoor to the practice user system, since he doesn't have a 226 # password. Come to think of it, why do we even have this?! 227 #$debugPracticeUser = "practice666"; 228 229 ################################################################################ 230 # PG translation options 231 ################################################################################ 232 233 %pg = ( 234 # options for various renderers 235 renderers => { 236 "WeBWorK::PG::Remote" => { 237 proxy => "http://localhost:21000/RenderD" 238 } 239 }, 240 # currently selected renderer 241 renderer => "WeBWorK::PG::Local", 242 #renderer => "WeBWorK::PG::Remote", 243 # directories used by PG 244 directories => { 245 # directories used only by PG 246 lib => "$pgRoot/lib", 247 macros => "$pgRoot/macros", 248 }, 249 options => { 250 # default translation options 251 displayMode => "images", 252 showOldAnswers => 1, 253 showCorrectAnswers => 0, 254 showHints => 0, 255 showSolutions => 0, 256 catchWarnings => 0, # there's a global warning catcher now 257 # default grader 258 grader => "avg_problem_grader", 259 }, 260 # this will be customized in the course.conf file 261 specialPGEnvironmentVars => { 262 PRINT_FILE_NAMES_FOR => [ qw(professor) ], 263 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 264 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 265 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 266 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 267 }, 268 # modules lists module names and the packages each contains 269 modules => [ 270 [qw(DynaLoader)], 271 [qw(Exporter)], 272 [qw(GD)], 273 274 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 275 [qw(AnswerHash AnswerEvaluator)], 276 [qw(WWPlot)], # required by Circle (and others) 277 [qw(Circle)], 278 [qw(Complex)], 279 [qw(Complex1)], 280 [qw(Distributions)], 281 [qw(Fraction)], 282 [qw(Fun)], 283 [qw(Hermite)], 284 [qw(Label)], 285 [qw(List)], 286 [qw(Match)], 287 [qw(MatrixReal1)], # required by Matrix 288 [qw(Matrix)], 289 [qw(Multiple)], 290 [qw(PGrandom)], 291 [qw(Regression)], 292 [qw(Select)], 293 [qw(Units)], 294 [qw(VectorField)], 295 ], 296 # defaults used by answer evaluators 297 ansEvalDefaults => { 298 functAbsTolDefault => .001, 299 functLLimitDefault => .0000001, 300 functMaxConstantOfIntegration => 1E8, 301 functNumOfPoints => 3, 302 functRelPercentTolDefault => .1, 303 functULimitDefault => .9999999, 304 functVarDefault => "x", 305 functZeroLevelDefault => 1E-14, 306 functZeroLevelTolDefault => 1E-12, 307 numAbsTolDefault => .001, 308 numFormatDefault => "", 309 numRelPercentTolDefault => .1, 310 numZeroLevelDefault => 1E-14, 311 numZeroLevelTolDefault => 1E-12, 312 }, 313 );
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |