[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 670 - (download) (annotate)
Fri Dec 6 17:50:24 2002 UTC (10 years, 5 months ago) by malsyned
File size: 7421 byte(s)
Added a Professor Tools stub module that provides redirection links to
the WeBWorK 1.8 system
-Dennis

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.4 2002-12-06 17:50:21 malsyned Exp $
    5 ################################################################################
    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 #         $courseName     name of the course being used
   15 
   16 ################################################################################
   17 # WeBWorK settings
   18 ################################################################################
   19 
   20 %webworkDirs = (
   21   root    => "$webworkRoot",
   22   bin     => "$webworkRoot/bin",
   23   conf    => "$webworkRoot/conf",
   24   courses => "$webworkRoot/courses",
   25   lib     => "$webworkRoot/lib",
   26   logs    => "$webworkRoot/logs",
   27   macros  => "$webworkRoot/macros",
   28   tmp     => "$webworkRoot/tmp",
   29 );
   30 
   31 %webworkFiles = (
   32   environment => "$webworkDirs{conf}/global.conf",
   33   hardcopySnippets => {
   34     preamble       => "$webworkDirs{conf}/hardcopyPreamble.tex",
   35     setHeader      => "$webworkDirs{conf}/hardcopySetHeader.pg",
   36     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
   37     setFooter      => "$webworkDirs{conf}/hardcopySetFooter.pg",
   38     setDivider     => "$webworkDirs{conf}/hardcopySetDivider.tex",
   39     postamble      => "$webworkDirs{conf}/hardcopyPostamble.tex",
   40   },
   41   screenSnippets => {
   42     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
   43   },
   44   logs => {
   45     timing      => "$webworkDirs{logs}/timing.log",
   46     transaction => "$courseDirs{logs}/transaction.log",
   47   },
   48 );
   49 
   50 my $webworkURLRoot = "/webwork"; # *** # this should be detected!
   51 %webworkURLs = (
   52   root    => "$webworkURLRoot",
   53   htdocs  => "/webwork_files",
   54   docs    => "http://webhost.math.rochester.edu/webworkdocs/docs",
   55   oldProf => "/webwork-old/profLogin.pl",
   56 );
   57 
   58 ################################################################################
   59 # Default course-specific settings
   60 ################################################################################
   61 
   62 my $courseRoot = "$webworkDirs{courses}/$courseName";
   63 %courseDirs = (
   64   root        => "$courseRoot",
   65   DATA        => "$courseRoot/DATA",
   66   auth_DATA   => "$courseRoot/DATA/.auth",
   67   html        => "$courseRoot/html",
   68   html_images => "$courseRoot/html/images",
   69   html_temp   => "$courseRoot/html/tmp",
   70   logs        => "$courseRoot/logs",
   71   scoring     => "$courseRoot/scoring",
   72   templates   => "$courseRoot/templates",
   73   macros      => "$courseRoot/templates/macros",
   74 );
   75 
   76 %courseFiles = (
   77   environment => "$courseDirs{root}/course.conf",
   78 );
   79 
   80 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
   81 %courseURLs = (
   82   base      => "$courseURLRoot", # *** # this should be "root"?
   83   html      => "$courseURLRoot",
   84   html_temp => "$courseURLRoot/tmp",
   85 );
   86 
   87 ################################################################################
   88 # Other site-specific options
   89 ################################################################################
   90 
   91 %mail = (
   92   smtpServer => "mail.math.rochester.edu",
   93   smtpSender => "webwork\@math.rochester.edu",
   94 );
   95 
   96 %externalPrograms = (
   97   mv       => "/bin/mv", # *** is this used? probably not...
   98   tth      => "/usr/local/bin/tth",
   99   pdflatex => "/usr/local/bin/pdflatex",
  100   latex    => "/usr/local/bin/latex",
  101   dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  102   gif2eps  => "$webworkDirs{bin}/gif2eps",
  103   png2eps  => "$webworkDirs{bin}/png2eps",
  104   gif2png  => "$webworkDirs{bin}/gif2png",
  105 );
  106 
  107 ################################################################################
  108 # Frontend options
  109 ################################################################################
  110 
  111 %templates = (
  112   system => "$webworkDirs{conf}/barebones.template",
  113 );
  114 
  115 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  116 $sessionKeyTimeout = 60*30;
  117 
  118 # Practice users are users who's names start with $practiceUser
  119 # (you can comment this out to remove practice user support)
  120 $practiceUserPrefix = "practice";
  121 
  122 # There is a practice user who can be logged in multiple times.  He's
  123 # commented out by default, though, so you don't hurt yourself.  It is
  124 # kindof a backdoor to the practice user system, since he doesn't have a
  125 # password.  Come to think of it, why do we even have this?!
  126 #$debugPracticeUser = "practice666";
  127 
  128 ################################################################################
  129 # Database and session
  130 ################################################################################
  131 
  132 %dbInfo = (
  133   auth_type        => "GDBM",
  134   auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
  135   auth_perm_file   => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
  136   auth_keys_file   => "$courseDirs{auth_DATA}/keys",
  137   wwdb_type        => "GDBM",
  138   wwdb_file        => "$courseDirs{DATA}/$courseName\_webwork_DB",
  139   cldb_type        => "GDBM",
  140   cldb_file        => "$courseDirs{DATA}/$courseName\_classlist_DB",
  141   psvn_digits      => 5,
  142 );
  143 
  144 # This lets you specify a minimum permission level needed to perform
  145 # certain actions.  In the current system, >=10 will allow a professor
  146 # to perform the action, >=5 will allow a TA to, and >=0 will allow a
  147 # student to perform an action (almost never what you want).
  148 %permissionLevels = (
  149   "become_student" => 10,
  150 );
  151 
  152 ################################################################################
  153 # PG translation options
  154 ################################################################################
  155 
  156 %pg = (
  157   options => {
  158     # default translation options
  159     displayMode        => "images",
  160     showOldAnswers     => 1,
  161     showCorrectAnswers => 0,
  162     showHints          => 0,
  163     showSolutions      => 0,
  164     catchWarnings      => 1,
  165     # default grader
  166     grader => "avg_problem_grader",
  167   },
  168   # modules lists module names and the packages each contains
  169   modules => [
  170     [qw(DynaLoader)],
  171     [qw(Exporter)],
  172     [qw(GD)],
  173 
  174     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  175     [qw(AnswerHash AnswerEvaluator)],
  176     [qw(WWPlot)], # required by Circle (and others)
  177     [qw(Circle)],
  178     [qw(Complex)],
  179     [qw(Complex1)],
  180     [qw(Distributions)],
  181     [qw(Fraction)],
  182     [qw(Fun)],
  183     [qw(Hermite)],
  184     [qw(Label)],
  185     [qw(List)],
  186     [qw(Match)],
  187     [qw(MatrixReal1)], # required by Matrix
  188     [qw(Matrix)],
  189     [qw(Multiple)],
  190     [qw(PGrandom)],
  191     [qw(Regression)],
  192     [qw(Select)],
  193     [qw(Units)],
  194     [qw(VectorField)],
  195   ],
  196   # defaults used by answer evaluators
  197   ansEvalDefaults => {
  198     functAbsTolDefault            => .001,
  199     functLLimitDefault            => .0000001,
  200     functMaxConstantOfIntegration => 1E8,
  201     functNumOfPoints              => 3,
  202     functRelPercentTolDefault     => .1,
  203     functULimitDefault            => .9999999,
  204     functVarDefault               => "x",
  205     functZeroLevelDefault         => 1E-14,
  206     functZeroLevelTolDefault      => 1E-12,
  207     numAbsTolDefault              => .001,
  208     numFormatDefault              => "",
  209     numRelPercentTolDefault       => .1,
  210     numZeroLevelDefault           => 1E-14,
  211     numZeroLevelTolDefault        => 1E-12,
  212   },
  213 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9