[system] / trunk / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1248 - (download) (annotate)
Sat Jun 21 02:34:10 2003 UTC (9 years, 11 months ago) by gage
File size: 10706 byte(s)
changed value of PRINT_FILE_NAMES_FOR
from array (back) to a reference to an array
--Mike

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.36 2003-06-21 02:34:10 gage 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 #         $pgRoot         directory that contains the PG distribution
   16 #         $courseName     name of the course being used
   17 
   18 ################################################################################
   19 # WeBWorK settings
   20 ################################################################################
   21 
   22 %webworkDirs = (
   23   root    => "$webworkRoot",
   24   bin     => "$webworkRoot/bin",
   25   conf    => "$webworkRoot/conf",
   26   courses => "$webworkRoot/courses",
   27   lib     => "$webworkRoot/lib",
   28   logs    => "$webworkRoot/logs",
   29   tmp     => "$webworkRoot/tmp",
   30 );
   31 
   32 %webworkFiles = (
   33   environment        => "$webworkDirs{conf}/global.conf",
   34   hardcopySnippets   => {
   35     preamble       => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
   36     setHeader      => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
   37     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
   38     setFooter      => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
   39     setDivider     => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
   40     userDivider    => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
   41     postamble      => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
   42   },
   43   screenSnippets => {
   44     setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg",
   45   },
   46   logs => {
   47     timing         => "$webworkDirs{logs}/timing.log",
   48   },
   49 );
   50 
   51 %webworkURLs = (
   52   root    => "$webworkURLRoot",
   53   home    => "/webwork2_files/index.html",
   54   htdocs  => "/webwork2_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 # quick hack to fix transaction logging. blah.
   83 $webworkFiles{logs}->{transaction}    = "$courseDirs{logs}/transaction.log";
   84 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
   85 
   86 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
   87 %courseURLs = (
   88   root      => "$courseURLRoot",
   89   html      => "$courseURLRoot",
   90   html_temp => "$courseURLRoot/tmp",
   91 );
   92 
   93 ################################################################################
   94 # Other site-specific options
   95 ################################################################################
   96 
   97 %mail = (
   98   smtpServer => "mail.math.rochester.edu",
   99   smtpSender => "webwork\@math.rochester.edu",
  100   # allowedRecipients defines addresses that the PG system is allowed to
  101   # send mail to. this prevents subtle PG exploits. This should be set
  102   # in course.conf to the addresses of professors of each course. Sending
  103   # mail from the PG system (i.e. questionaires, essay questions) will
  104   # fail if this is not set somewhere (either here or in course.conf).
  105   #allowedRecipients => [
  106   # "yourname\@host.yourdomain.edu",
  107   #],
  108   # if defined, feedbackRecipients overrides the list of recipients for
  109   # feedback email. It's appropriate to set this in the course.conf for
  110   # specific courses, but probably not in global.conf. if not defined,
  111   # mail is sent to all professors and TAs for a given course
  112   #feedbackRecipients => [
  113   # "prof1\@host.yourdomain.edu",
  114   # "prof2\@host.yourdomain.edu",
  115   #],
  116   # feedbackVerbosity:
  117   #  0: send only the feedback comment and context link
  118   #  1: as in 0, plus user, set, problem, and PG data
  119   #  2: as in 1, plus the problem environment (debugging data)
  120   feedbackVerbosity => 1,
  121 );
  122 
  123 %externalPrograms = (
  124   mkdir    => "/bin/mkdir",
  125   tth      => "/usr/local/bin/tth",
  126   pdflatex => "/usr/local/bin/pdflatex",
  127   latex    => "/usr/local/bin/latex",
  128   #dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  129   dvipng   => "/usr/local/bin/dvipng",
  130   gif2eps  => "$webworkDirs{bin}/gif2eps",
  131   png2eps  => "$webworkDirs{bin}/png2eps",
  132   gif2png  => "$webworkDirs{bin}/gif2png",
  133 );
  134 
  135 ################################################################################
  136 # Frontend options
  137 ################################################################################
  138 
  139 %templates = (
  140   system => "$webworkDirs{conf}/templates/ur.template",
  141 );
  142 
  143 ################################################################################
  144 # Database options
  145 ################################################################################
  146 
  147 # Several database layouts are defined in separate environment files. Select the
  148 # one which should be used by all courses by default, and include it. This can
  149 # be overridden by including a difference environment file in the course.conf of
  150 # a particular course.
  151 
  152 # Include sql.conf to specify a database layout for use with an SQL server.
  153 #include "conf/sql.conf";
  154 
  155 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
  156 # databases. Use this layout if you wish to share courses between WeBWorK 1.x
  157 # and WeBWorK 2.
  158 include "conf/gdbm.conf";
  159 
  160 # Please read the documentation in the file that you chose to include, as there
  161 # are layout-specific options that must be configured.
  162 
  163 ################################################################################
  164 # Authorization system
  165 ################################################################################
  166 
  167 # This lets you specify a minimum permission level needed to perform certain
  168 # actions.  In the current system, >=10 will allow a professor to perform the
  169 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
  170 # action (almost never what you want).
  171 my $ta = 5;
  172 my $professor = 10;
  173 %permissionLevels = (
  174   become_student                 => $professor,
  175   access_instructor_tools        => $ta,
  176   create_and_delete_problem_sets => $professor,
  177   modify_problem_sets            => $professor,
  178   assign_problem_sets            => $professor,
  179   modify_student_data            => $professor,
  180 );
  181 
  182 ################################################################################
  183 # Session options
  184 ################################################################################
  185 
  186 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  187 $sessionKeyTimeout = 60*30;
  188 
  189 # $sessionKeyLength defines the length (in characters) of the session key
  190 $sessionKeyLength = 40;
  191 
  192 # @sessionKeyChars lists the legal session key characters
  193 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
  194 
  195 # Practice users are users who's names start with $practiceUser
  196 # (you can comment this out to remove practice user support)
  197 $practiceUserPrefix = "practice";
  198 
  199 # There is a practice user who can be logged in multiple times.  He's
  200 # commented out by default, though, so you don't hurt yourself.  It is
  201 # kindof a backdoor to the practice user system, since he doesn't have a
  202 # password.  Come to think of it, why do we even have this?!
  203 #$debugPracticeUser = "practice666";
  204 
  205 ################################################################################
  206 # PG translation options
  207 ################################################################################
  208 
  209 %pg = (
  210   # options for various renderers
  211   renderers => {
  212     "WeBWorK::PG::Remote" => {
  213       uri => "http://localhost:8089/RPC2"
  214     }
  215   },
  216   # currently selected renderer
  217   renderer => "WeBWorK::PG::Local",
  218   # directories used by PG
  219   directories => {
  220     lib    => "$pgRoot/lib",
  221     macros => "$pgRoot/macros",
  222   },
  223   options => {
  224     # default translation options
  225     displayMode        => "images",
  226     showOldAnswers     => 1,
  227     showCorrectAnswers => 0,
  228     showHints          => 0,
  229     showSolutions      => 0,
  230     catchWarnings      => 0, # there's a global warning catcher now
  231     # default grader
  232     grader => "avg_problem_grader",
  233   },
  234   # this will be customized in the course.conf file
  235   specialPGEnvironmentVars => {
  236     PRINT_FILE_NAMES_FOR   => [ qw(gage apizer voloshin lr003k professor) ],
  237     CAPA_Tools             => "$courseDirs{macros}/CAPA_Tools/",
  238     CAPA_MCTools           => "$courseDirs{macros}/CAPA_MCTools/",
  239     CAPA_Graphics_URL      => "$courseDirs{html}/CAPA_Graphics/",
  240     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
  241   },
  242   # modules lists module names and the packages each contains
  243   modules => [
  244     [qw(DynaLoader)],
  245     [qw(Exporter)],
  246     [qw(GD)],
  247 
  248     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  249     [qw(AnswerHash AnswerEvaluator)],
  250     [qw(WWPlot)], # required by Circle (and others)
  251     [qw(Circle)],
  252     [qw(Complex)],
  253     [qw(Complex1)],
  254     [qw(Distributions)],
  255     [qw(Fraction)],
  256     [qw(Fun)],
  257     [qw(Hermite)],
  258     [qw(Label)],
  259     [qw(List)],
  260     [qw(Match)],
  261     [qw(MatrixReal1)], # required by Matrix
  262     [qw(Matrix)],
  263     [qw(Multiple)],
  264     [qw(PGrandom)],
  265     [qw(Regression)],
  266     [qw(Select)],
  267     [qw(Units)],
  268     [qw(VectorField)],
  269   ],
  270   # defaults used by answer evaluators
  271   ansEvalDefaults => {
  272     functAbsTolDefault            => .001,
  273     functLLimitDefault            => .0000001,
  274     functMaxConstantOfIntegration => 1E8,
  275     functNumOfPoints              => 3,
  276     functRelPercentTolDefault     => .1,
  277     functULimitDefault            => .9999999,
  278     functVarDefault               => "x",
  279     functZeroLevelDefault         => 1E-14,
  280     functZeroLevelTolDefault      => 1E-12,
  281     numAbsTolDefault              => .001,
  282     numFormatDefault              => "",
  283     numRelPercentTolDefault       => .1,
  284     numZeroLevelDefault           => 1E-14,
  285     numZeroLevelTolDefault        => 1E-12,
  286   },
  287 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9