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