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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 526 - (download) (annotate)
Thu Aug 29 19:56:24 2002 UTC (10 years, 8 months ago) by sh002i
File size: 6180 byte(s)
HTML_img mode ("images" mode in the HTML interface) now uses dvipng to
generate images. ProblemSet now has a link to Hardcopy.
-sam

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9