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