[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 701 - (download) (annotate)
Fri Jan 10 21:39:29 2003 UTC (10 years, 4 months ago) by sh002i
File size: 7402 byte(s)
An MOTD can be displayed on the problem sets page. Define
$courseFiles{motd} to point to a file containing the message.
-sam

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9