Parent Directory
|
Revision Log
preliminary web-based course creation support try it -- create a course called "admin" the usual way and then visit it in your browser.
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.54 2004/04/03 15:44:55 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 ); 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 => "/webwork1/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 = "/webwork2_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 127 # allowedRecipients defines addresses that the PG system is allowed to 128 # send mail to. this prevents subtle PG exploits. This should be set 129 # in course.conf to the addresses of professors of each course. Sending 130 # mail from the PG system (i.e. questionaires, essay questions) will 131 # fail if this is not set somewhere (either here or in course.conf). 132 #allowedRecipients => [ 133 # 'prof1@host.yourdomain.edu', 134 # 'prof2@host.yourdomain.edu', 135 #], 136 137 # if defined, feedbackRecipients overrides the list of recipients for 138 # feedback email. It's appropriate to set this in the course.conf for 139 # specific courses, but probably not in global.conf. if not defined, 140 # mail is sent to all professors and TAs for a given course 141 #feedbackRecipients => [ 142 # 'prof1@host.yourdomain.edu', 143 # 'prof2@host.yourdomain.edu', 144 #], 145 146 # feedbackVerbosity: 147 # 0: send only the feedback comment and context link 148 # 1: as in 0, plus user, set, problem, and PG data 149 # 2: as in 1, plus the problem environment (debugging data) 150 feedbackVerbosity => 1, 151 152 # defines the size of the Mail Merge editor window 153 # FIXME: should this be here? it's UI, not mail 154 # FIXME: replace this with the auto-size method that TWiki uses 155 editor_window_rows => 15, 156 editor_window_columns => 100, 157 ); 158 159 %externalPrograms = ( 160 mkdir => "/bin/mkdir", 161 tth => "/usr/local/bin/tth", 162 pdflatex => "/usr/local/bin/pdflatex", 163 latex => "/usr/local/bin/latex", 164 dvipng => "/usr/local/bin/dvipng", 165 gif2eps => "$webworkDirs{bin}/gif2eps", 166 png2eps => "$webworkDirs{bin}/png2eps", 167 gif2png => "$webworkDirs{bin}/gif2png", 168 mysql => "/usr/local/bin/mysql", 169 ); 170 171 ################################################################################ 172 # Frontend options 173 ################################################################################ 174 175 %templates = ( 176 system => "$webworkDirs{conf}/templates/ur.template", 177 ); 178 179 ################################################################################ 180 # Database options 181 ################################################################################ 182 183 # Several database are defined in the file conf/database.conf and stored in the 184 # hash %dbLayouts. 185 include "conf/database.conf"; 186 187 # Select the default database layout. This can be overridden in the course.conf 188 # file of a particular course. 189 #$dbLayoutName = "sql"; 190 $dbLayoutName = "gdbm"; 191 192 *dbLayout = $dbLayouts{$dbLayoutName}; 193 194 ################################################################################ 195 # Authorization system 196 ################################################################################ 197 198 # This lets you specify a minimum permission level needed to perform certain 199 # actions. In the current system, >=10 will allow a professor to perform the 200 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an 201 # action (almost never what you want). 202 my $ta = 5; 203 my $professor = 10; 204 %permissionLevels = ( 205 become_student => $professor, 206 access_instructor_tools => $ta, 207 create_and_delete_problem_sets => $professor, 208 modify_problem_sets => $professor, 209 assign_problem_sets => $professor, 210 modify_student_data => $professor, 211 score_sets => $professor, 212 send_mail => $professor, 213 modify_classlist_files => $professor, 214 modify_set_def_files => $professor, 215 ); 216 217 ################################################################################ 218 # Session options 219 ################################################################################ 220 221 # $sessionKeyTimeout defines seconds of inactivity before a key expires 222 $sessionKeyTimeout = 60*30; 223 224 # $sessionKeyLength defines the length (in characters) of the session key 225 $sessionKeyLength = 40; 226 227 # @sessionKeyChars lists the legal session key characters 228 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); 229 230 # Practice users are users who's names start with $practiceUser 231 # (you can comment this out to remove practice user support) 232 $practiceUserPrefix = "practice"; 233 234 # There is a practice user who can be logged in multiple times. He's 235 # commented out by default, though, so you don't hurt yourself. It is 236 # kindof a backdoor to the practice user system, since he doesn't have a 237 # password. Come to think of it, why do we even have this?! 238 #$debugPracticeUser = "practice666"; 239 240 ################################################################################ 241 # PG translation options 242 ################################################################################ 243 244 %pg = ( 245 # options for various renderers 246 renderers => { 247 "WeBWorK::PG::Remote" => { 248 proxy => "http://localhost:21000/RenderD" 249 } 250 }, 251 # currently selected renderer 252 renderer => "WeBWorK::PG::Local", 253 #renderer => "WeBWorK::PG::Remote", 254 # directories used by PG 255 directories => { 256 # directories used only by PG 257 lib => "$pgRoot/lib", 258 macros => "$pgRoot/macros", 259 }, 260 options => { 261 # default translation options 262 displayMode => "images", 263 showOldAnswers => 1, 264 showCorrectAnswers => 0, 265 showHints => 0, 266 showSolutions => 0, 267 catchWarnings => 0, # there's a global warning catcher now 268 # default grader 269 grader => "avg_problem_grader", 270 }, 271 # this will be customized in the course.conf file 272 specialPGEnvironmentVars => { 273 PRINT_FILE_NAMES_FOR => [ qw(professor) ], 274 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 275 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 276 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", 277 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", 278 }, 279 # modules lists module names and the packages each contains 280 modules => [ 281 [qw(DynaLoader)], 282 [qw(Exporter)], 283 [qw(GD)], 284 285 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 286 [qw(AnswerHash AnswerEvaluator)], 287 [qw(WWPlot)], # required by Circle (and others) 288 [qw(Circle)], 289 [qw(Complex)], 290 [qw(Complex1)], 291 [qw(Distributions)], 292 [qw(Fraction)], 293 [qw(Fun)], 294 [qw(Hermite)], 295 [qw(Label)], 296 [qw(List)], 297 [qw(Match)], 298 [qw(MatrixReal1)], # required by Matrix 299 [qw(Matrix)], 300 [qw(Multiple)], 301 [qw(PGrandom)], 302 [qw(Regression)], 303 [qw(Select)], 304 [qw(Units)], 305 [qw(VectorField)], 306 ], 307 # defaults used by answer evaluators 308 ansEvalDefaults => { 309 functAbsTolDefault => .001, 310 functLLimitDefault => .0000001, 311 functMaxConstantOfIntegration => 1E8, 312 functNumOfPoints => 3, 313 functRelPercentTolDefault => .1, 314 functULimitDefault => .9999999, 315 functVarDefault => "x", 316 functZeroLevelDefault => 1E-14, 317 functZeroLevelTolDefault => 1E-12, 318 numAbsTolDefault => .001, 319 numFormatDefault => "", 320 numRelPercentTolDefault => .1, 321 numZeroLevelDefault => 1E-14, 322 numZeroLevelTolDefault => 1E-12, 323 useBaseTenLog => 0, 324 }, 325 );
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |