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