Parent Directory
|
Revision Log
Revision 774 - (view) (download)
| 1 : | sh002i | 654 | #!perl |
| 2 : | ################################################################################ | ||
| 3 : | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester | ||
| 4 : | sh002i | 774 | # $Id: global.conf.dist,v 1.15 2003-03-07 02:22:40 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 | 654 | # $courseName name of the course being used |
| 16 : | |||
| 17 : | ################################################################################ | ||
| 18 : | sh002i | 663 | # WeBWorK settings |
| 19 : | ################################################################################ | ||
| 20 : | sh002i | 654 | |
| 21 : | %webworkDirs = ( | ||
| 22 : | root => "$webworkRoot", | ||
| 23 : | bin => "$webworkRoot/bin", | ||
| 24 : | conf => "$webworkRoot/conf", | ||
| 25 : | sh002i | 655 | courses => "$webworkRoot/courses", |
| 26 : | sh002i | 654 | 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 : | malsyned | 670 | root => "$webworkURLRoot", |
| 53 : | sh002i | 705 | home => "http://host.yourdomaon.edu/webwork-info", |
| 54 : | malsyned | 670 | htdocs => "/webwork_files", |
| 55 : | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", | ||
| 56 : | oldProf => "/webwork-old/profLogin.pl", | ||
| 57 : | sh002i | 654 | ); |
| 58 : | |||
| 59 : | sh002i | 663 | ################################################################################ |
| 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 : | sh002i | 701 | motd => "$courseDirs{root}/motd.txt", |
| 80 : | sh002i | 663 | ); |
| 81 : | |||
| 82 : | sh002i | 705 | # quick hack to fix transaction logging. blah. |
| 83 : | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; | ||
| 84 : | |||
| 85 : | sh002i | 663 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
| 86 : | sh002i | 654 | %courseURLs = ( |
| 87 : | sh002i | 699 | root => "$courseURLRoot", |
| 88 : | sh002i | 654 | html => "$courseURLRoot", |
| 89 : | html_temp => "$courseURLRoot/tmp", | ||
| 90 : | ); | ||
| 91 : | |||
| 92 : | ################################################################################ | ||
| 93 : | sh002i | 663 | # Other site-specific options |
| 94 : | ################################################################################ | ||
| 95 : | sh002i | 654 | |
| 96 : | sh002i | 663 | %mail = ( |
| 97 : | smtpServer => "mail.math.rochester.edu", | ||
| 98 : | smtpSender => "webwork\@math.rochester.edu", | ||
| 99 : | sh002i | 705 | # 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 : | sh002i | 706 | #allowedRecipients => [ |
| 105 : | # "yourname\@host.yourdomain.edu", | ||
| 106 : | #], | ||
| 107 : | sh002i | 705 | # 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 : | sh002i | 740 | # feedbackVerbosity: |
| 116 : | # 0: send only the feedback comment and context link | ||
| 117 : | # 1: as in 0, plus user, set, problem, and PG data | ||
| 118 : | # 2: as in 1, plus the problem environment (debugging data) | ||
| 119 : | feedbackVerbosity => 1, | ||
| 120 : | sh002i | 654 | ); |
| 121 : | |||
| 122 : | sh002i | 663 | %externalPrograms = ( |
| 123 : | sh002i | 737 | mkdir => "/bin/mkdir", |
| 124 : | sh002i | 663 | tth => "/usr/local/bin/tth", |
| 125 : | pdflatex => "/usr/local/bin/pdflatex", | ||
| 126 : | latex => "/usr/local/bin/latex", | ||
| 127 : | dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", | ||
| 128 : | gif2eps => "$webworkDirs{bin}/gif2eps", | ||
| 129 : | png2eps => "$webworkDirs{bin}/png2eps", | ||
| 130 : | gif2png => "$webworkDirs{bin}/gif2png", | ||
| 131 : | ); | ||
| 132 : | |||
| 133 : | ################################################################################ | ||
| 134 : | # Frontend options | ||
| 135 : | ################################################################################ | ||
| 136 : | |||
| 137 : | sh002i | 654 | %templates = ( |
| 138 : | system => "$webworkDirs{conf}/barebones.template", | ||
| 139 : | ); | ||
| 140 : | |||
| 141 : | sh002i | 663 | ################################################################################ |
| 142 : | # Database and session | ||
| 143 : | ################################################################################ | ||
| 144 : | |||
| 145 : | sh002i | 768 | # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system |
| 146 : | # {auth,wwdb,cldb}_type = database type: GDBM currently implemented | ||
| 147 : | # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file | ||
| 148 : | sh002i | 663 | %dbInfo = ( |
| 149 : | auth_type => "GDBM", | ||
| 150 : | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", | ||
| 151 : | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", | ||
| 152 : | auth_keys_file => "$courseDirs{auth_DATA}/keys", | ||
| 153 : | wwdb_type => "GDBM", | ||
| 154 : | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", | ||
| 155 : | cldb_type => "GDBM", | ||
| 156 : | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", | ||
| 157 : | psvn_digits => 5, | ||
| 158 : | ); | ||
| 159 : | |||
| 160 : | sh002i | 768 | # dbLayout records the schema and source for each table in the "new" DB.pm |
| 161 : | # database system. consult DB.pm for the authoritative list of tables. | ||
| 162 : | # schema = perl module to use for access to the table | ||
| 163 : | # driver = perl module to use for access to the data source | ||
| 164 : | # source = location of data source (i.e. path, url, DBI spec) | ||
| 165 : | # note: schema and driver must have the same interface. | ||
| 166 : | %dbLayout = ( | ||
| 167 : | password => { | ||
| 168 : | sh002i | 774 | schema => "WeBWorK::DB::Schema::PasswordHash", |
| 169 : | sh002i | 768 | driver => "WeBWorK::DB::Driver::GDBM", |
| 170 : | source => "$courseDirs{auth_DATA}/$courseName\_password_DB", | ||
| 171 : | }, | ||
| 172 : | permission => { | ||
| 173 : | sh002i | 774 | schema => "WeBWorK::DB::Schema::PermissionHash", |
| 174 : | sh002i | 768 | driver => "WeBWorK::DB::Driver::GDBM", |
| 175 : | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_permissions_DB", | ||
| 176 : | }, | ||
| 177 : | sh002i | 774 | key => { |
| 178 : | schema => "WeBWorK::DB::Schema::KeyHash", | ||
| 179 : | sh002i | 768 | driver => "WeBWorK::DB::Driver::GDBM", |
| 180 : | source => "gdbm:$courseDirs{auth_DATA}/keys", | ||
| 181 : | }, | ||
| 182 : | sh002i | 774 | user => { |
| 183 : | schema => "WeBWorK::DB::Schema::ClasslistHash", | ||
| 184 : | driver => "WeBWorK::DB::Driver::GDBM", | ||
| 185 : | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_classlist_DB", | ||
| 186 : | }, | ||
| 187 : | sh002i | 768 | set => { |
| 188 : | schema => "WeBWorK::DB::Schema::WW1Hash", | ||
| 189 : | driver => "WeBWorK::DB::Driver::GDBM", | ||
| 190 : | sh002i | 774 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_webwork_DB", |
| 191 : | sh002i | 768 | }, |
| 192 : | set_user => { | ||
| 193 : | schema => "WeBWorK::DB::Schema::WW1Hash", | ||
| 194 : | driver => "WeBWorK::DB::Driver::GDBM", | ||
| 195 : | sh002i | 774 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_webwork_DB", |
| 196 : | sh002i | 768 | }, |
| 197 : | problem => { | ||
| 198 : | schema => "WeBWorK::DB::Schema::WW1Hash", | ||
| 199 : | driver => "WeBWorK::DB::Driver::GDBM", | ||
| 200 : | sh002i | 774 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_webwork_DB", |
| 201 : | sh002i | 768 | }, |
| 202 : | problem_user => { | ||
| 203 : | schema => "WeBWorK::DB::Schema::WW1Hash", | ||
| 204 : | driver => "WeBWorK::DB::Driver::GDBM", | ||
| 205 : | sh002i | 774 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_webwork_DB", |
| 206 : | sh002i | 768 | }, |
| 207 : | ); | ||
| 208 : | |||
| 209 : | sh002i | 654 | # This lets you specify a minimum permission level needed to perform |
| 210 : | # certain actions. In the current system, >=10 will allow a professor | ||
| 211 : | # to perform the action, >=5 will allow a TA to, and >=0 will allow a | ||
| 212 : | # student to perform an action (almost never what you want). | ||
| 213 : | %permissionLevels = ( | ||
| 214 : | "become_student" => 10, | ||
| 215 : | ); | ||
| 216 : | |||
| 217 : | sh002i | 768 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
| 218 : | $sessionKeyTimeout = 60*30; | ||
| 219 : | |||
| 220 : | # Practice users are users who's names start with $practiceUser | ||
| 221 : | # (you can comment this out to remove practice user support) | ||
| 222 : | $practiceUserPrefix = "practice"; | ||
| 223 : | |||
| 224 : | # There is a practice user who can be logged in multiple times. He's | ||
| 225 : | # commented out by default, though, so you don't hurt yourself. It is | ||
| 226 : | # kindof a backdoor to the practice user system, since he doesn't have a | ||
| 227 : | # password. Come to think of it, why do we even have this?! | ||
| 228 : | #$debugPracticeUser = "practice666"; | ||
| 229 : | |||
| 230 : | sh002i | 663 | ################################################################################ |
| 231 : | # PG translation options | ||
| 232 : | ################################################################################ | ||
| 233 : | sh002i | 654 | |
| 234 : | %pg = ( | ||
| 235 : | options => { | ||
| 236 : | sh002i | 663 | # default translation options |
| 237 : | sh002i | 654 | displayMode => "images", |
| 238 : | showOldAnswers => 1, | ||
| 239 : | showCorrectAnswers => 0, | ||
| 240 : | showHints => 0, | ||
| 241 : | showSolutions => 0, | ||
| 242 : | sh002i | 663 | catchWarnings => 1, |
| 243 : | sh002i | 654 | # default grader |
| 244 : | grader => "avg_problem_grader", | ||
| 245 : | }, | ||
| 246 : | # modules lists module names and the packages each contains | ||
| 247 : | modules => [ | ||
| 248 : | [qw(DynaLoader)], | ||
| 249 : | [qw(Exporter)], | ||
| 250 : | [qw(GD)], | ||
| 251 : | |||
| 252 : | [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], | ||
| 253 : | [qw(AnswerHash AnswerEvaluator)], | ||
| 254 : | [qw(WWPlot)], # required by Circle (and others) | ||
| 255 : | [qw(Circle)], | ||
| 256 : | [qw(Complex)], | ||
| 257 : | [qw(Complex1)], | ||
| 258 : | [qw(Distributions)], | ||
| 259 : | [qw(Fraction)], | ||
| 260 : | [qw(Fun)], | ||
| 261 : | [qw(Hermite)], | ||
| 262 : | [qw(Label)], | ||
| 263 : | [qw(List)], | ||
| 264 : | [qw(Match)], | ||
| 265 : | [qw(MatrixReal1)], # required by Matrix | ||
| 266 : | [qw(Matrix)], | ||
| 267 : | [qw(Multiple)], | ||
| 268 : | [qw(PGrandom)], | ||
| 269 : | [qw(Regression)], | ||
| 270 : | [qw(Select)], | ||
| 271 : | [qw(Units)], | ||
| 272 : | [qw(VectorField)], | ||
| 273 : | ], | ||
| 274 : | # defaults used by answer evaluators | ||
| 275 : | ansEvalDefaults => { | ||
| 276 : | functAbsTolDefault => .001, | ||
| 277 : | functLLimitDefault => .0000001, | ||
| 278 : | functMaxConstantOfIntegration => 1E8, | ||
| 279 : | functNumOfPoints => 3, | ||
| 280 : | functRelPercentTolDefault => .1, | ||
| 281 : | functULimitDefault => .9999999, | ||
| 282 : | functVarDefault => "x", | ||
| 283 : | functZeroLevelDefault => 1E-14, | ||
| 284 : | functZeroLevelTolDefault => 1E-12, | ||
| 285 : | numAbsTolDefault => .001, | ||
| 286 : | numFormatDefault => "", | ||
| 287 : | numRelPercentTolDefault => .1, | ||
| 288 : | numZeroLevelDefault => 1E-14, | ||
| 289 : | numZeroLevelTolDefault => 1E-12, | ||
| 290 : | }, | ||
| 291 : | ); |
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |