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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3124 Revision 3552
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.115 2004/12/28 04:56:04 gage Exp $ 5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.128 2005/08/22 01:23:16 jj Exp $
6# 6#
7# This program is free software; you can redistribute it and/or modify it under 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 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 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. 10# version, or (b) the "Artistic License" which comes with this package.
48# Paths to external programs 48# Paths to external programs
49################################################################################ 49################################################################################
50 50
51$externalPrograms{mkdir} = "/bin/mkdir"; 51$externalPrograms{mkdir} = "/bin/mkdir";
52$externalPrograms{mv} = "/bin/mv"; 52$externalPrograms{mv} = "/bin/mv";
53$externalPrograms{mysql} = "/usr/local/bin/mysql"; 53$externalPrograms{mysql} = "/usr/bin/mysql";
54 54
55$externalPrograms{latex} = "/usr/local/bin/latex"; 55$externalPrograms{latex} = "/usr/bin/latex";
56$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files 56$externalPrograms{pdflatex} = "/usr/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files
57$externalPrograms{dvipng} = "/usr/local/bin/dvipng"; 57$externalPrograms{dvipng} = "/usr/bin/dvipng";
58$externalPrograms{tth} = "/usr/local/bin/tth"; 58$externalPrograms{tth} = "/usr/bin/tth";
59
60$externalPrograms{tar} = "/usr/bin/tar";
61
62# Basic image manipulation utilities
63# Most sites only need to configure the first line
64$externalPrograms{netpbm} = "/usr/bin/"; # Really a prefix, rather than a program
65$externalPrograms{giftopnm} = $externalPrograms{netpbm}.'giftopnm';
66$externalPrograms{ppmtopgm} = $externalPrograms{netpbm}.'ppmtopgm';
67$externalPrograms{pnmtops} = $externalPrograms{netpbm}.'pnmtops';
68$externalPrograms{pnmtopng} = $externalPrograms{netpbm}.'pnmtopng';
69$externalPrograms{pngtopnm} = $externalPrograms{netpbm}.'pngtopnm';
70
71# The following lines are the external scripts gif2eps, etc.
72# The source file is input with cat, and the output is redirected to
73# the desired file.
74
75$externalPrograms{gif2eps} = "$externalPrograms{giftopnm} | $externalPrograms{ppmtopgm}| $externalPrograms{pnmtops} -noturn 2>/dev/null";
76$externalPrograms{png2eps} = "$externalPrograms{pngtopnm} | $externalPrograms{ppmtopgm} | $externalPrograms{pnmtops} -noturn 2>/dev/null";
77$externalPrograms{gif2png} = "$externalPrograms{giftopnm} | $externalPrograms{pnmtopng}";
78
79# Note on these conversions:
80# we used to use `pnmdepth 1' instead of ppmtopgm as it creates a
81# monochrome image (1 bit) rather than a greyscale image (8 bits).
82# However, this was causing improper display of some sort in PDFs.
83
59 84
60################################################################################ 85################################################################################
61# Mail settings 86# Mail settings
62################################################################################ 87################################################################################
63 88
128$webworkDirs{logs} = "$webworkDirs{root}/logs"; 153$webworkDirs{logs} = "$webworkDirs{root}/logs";
129 154
130# Contains non-web-accessible temporary files, such as TeX working directories. 155# Contains non-web-accessible temporary files, such as TeX working directories.
131$webworkDirs{tmp} = "$webworkDirs{root}/tmp"; 156$webworkDirs{tmp} = "$webworkDirs{root}/tmp";
132 157
158# The (absolute) destinations of symbolic links that are OK for the FileManager to follow.
159# (any subdirectory of these is a valid target for a symbolic link.)
160# For example:
161# $webworkDirs{valid_symlinks} = ["$webworkDirs{courses}/modelCourse/templates","/ww2/common/sets"];
162$webworkDirs{valid_symlinks} = [];
163
133##### The following locations are web-accessible. 164##### The following locations are web-accessible.
134 165
135# The root URL (usually /webwork2), set by <Location> in Apache configuration. 166# The root URL (usually /webwork2), set by <Location> in Apache configuration.
136$webworkURLs{root} = "$webwork_url"; 167$webworkURLs{root} = "$webwork_url";
137 168
165 196
166# Location of CSS 197# Location of CSS
167$webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/ur.css"; 198$webworkURLs{stylesheet} = "$webworkURLs{htdocs}/css/ur.css";
168 199
169# Location of jsMath script, used for the jsMath display mode. 200# Location of jsMath script, used for the jsMath display mode.
170$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; 201$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath-ww.js";
171 202
172# Location of ASCIIMathML script, used for the asciimath display mode. 203# Location of ASCIIMathML script, used for the asciimath display mode.
173$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js"; 204$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js";
174 205
175################################################################################ 206################################################################################
257$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg" 288$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
258 289
259# A PG template for creation of new problems. 290# A PG template for creation of new problems.
260$webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem.pg"; # screenSetHeader.pg" 291$webworkFiles{screenSnippets}{blankProblem} = "$webworkDirs{conf}/snippets/blankProblem.pg"; # screenSetHeader.pg"
261 292
293# A site info "message of the day" file
294$webworkFiles{site_info} = "$webworkDirs{htdocs}/site_info.txt";
262################################################################################ 295################################################################################
263# Course-specific files 296# Course-specific files
264################################################################################ 297################################################################################
265 298
266# The course configuration file. 299# The course configuration file.
337 370
338# The directory containing the problem library files. Set to "" if no problem 371# The directory containing the problem library files. Set to "" if no problem
339# library is installed. 372# library is installed.
340$problemLibrary{root} = ""; 373$problemLibrary{root} = "";
341 374
375# Problem Library version
376# Version 1 is in use. Version 2 will be released soon.
377$problemLibrary{version} = "1";
378
342# The name of the SQL database containing problem metadata 379# The name of the SQL database containing problem metadata
343$problemLibrary{sourceSQL} = "ProblemLibrary"; 380$problemLibrary{sourceSQL} = "ProblemLibrary";
344 381
345# The user name to use when connecting to the problem library database 382# The user name to use when connecting to the problem library database
346$problemLibrary{userSQL} = "webworkRead"; 383$problemLibrary{userSQL} = "webworkRead";
369$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; 406$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log";
370 407
371# The answer log stores a history of all users' submitted answers. 408# The answer log stores a history of all users' submitted answers.
372$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; 409$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
373 410
374################################################################################ 411# Log logins.
375# More paths to external programs 412$courseFiles{logs}{login_log} = "$courseDirs{logs}/login.log";
376################################################################################
377
378# These image conversion utilities are included in the WeBWorK distribution.
379$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps";
380$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps";
381$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png";
382 413
383################################################################################ 414################################################################################
384# Site defaults (FIXME: what other things could be "site defaults"?) 415# Site defaults (FIXME: what other things could be "site defaults"?)
385################################################################################ 416################################################################################
386 417
414# your school. If just a few courses are in a different timezone, set this in 445# your school. If just a few courses are in a different timezone, set this in
415# course.conf for the affected courses instead. 446# course.conf for the affected courses instead.
416# 447#
417$siteDefaults{timezone} = ""; 448$siteDefaults{timezone} = "";
418 449
450# The default_templates_course is used by default to create a new course.
451# The contents of the templates directory are copied from this course
452# to the new course being created.
453$siteDefaults{default_templates_course} ="modelCourse";
454
419################################################################################ 455################################################################################
420# Frontend options 456# Frontend options
421################################################################################ 457################################################################################
422 458
423%templates = ( 459%templates = (
424 system => "$webworkDirs{conf}/templates/ur.template", 460 system => "$webworkDirs{conf}/templates/ur.template",
461 gateway => "$webworkDirs{conf}/templates/gw.template",
425); 462);
426 463
427################################################################################ 464################################################################################
428# Authorization system 465# Authorization system
429################################################################################ 466################################################################################
433# described by the key, the user must have a permission level greater than or 470# described by the key, the user must have a permission level greater than or
434# equal to the value. 471# equal to the value.
435 472
436my $guest = -1; 473my $guest = -1;
437my $student = 0; 474my $student = 0;
475my $proctor = 2;
438my $ta = 5; 476my $ta = 5;
439my $professor = 10; 477my $professor = 10;
440my $nobody = undef; 478my $nobody = undef;
441 479
442%permissionLevels = ( 480%permissionLevels = (
443 login => $guest, 481 login => $guest,
444 report_bugs => $student, 482 report_bugs => $student,
445 submit_feedback => $student, 483 submit_feedback => $student,
446 change_password => $student, 484 change_password => $student,
447 change_email_address => $student, 485 change_email_address => $student,
486
487 proctor_quiz => $proctor,
448 488
449 view_multiple_sets => $ta, 489 view_multiple_sets => $ta,
450 view_unopened_sets => $ta, 490 view_unopened_sets => $ta,
451 view_unpublished_sets => $ta, 491 view_unpublished_sets => $ta,
452 view_answers => $ta, 492 view_answers => $ta,
599 passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, 639 passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW},
600 }, 640 },
601}; 641};
602 642
603$pg{displayModeOptions}{jsMath} = { 643$pg{displayModeOptions}{jsMath} = {
604 reportMissingFonts => 1, # set to 0 to prevent the missing font message 644 reportMissingFonts => 0, # set to 1 to allow the missing font message
605 missingFontMessage => undef, # set to an HTML string to use for the missing font message 645 missingFontMessage => undef, # set to an HTML string to replace the missing font message
646 noImageFonts => 0, # set to 1 if you didn't install the jsMath image fonts
606}; 647};
607 648
608##### Directories used by PG 649##### Directories used by PG
609 650
610# The root of the PG directory tree (from pg_root in Apache config). 651# The root of the PG directory tree (from pg_root in Apache config).
611$pg{directories}{root} = "$pg_dir"; 652$pg{directories}{root} = "$pg_dir";
612$pg{directories}{lib} = "$pg{directories}{root}/lib"; 653$pg{directories}{lib} = "$pg{directories}{root}/lib";
613$pg{directories}{macros} = "$pg{directories}{root}/macros"; 654$pg{directories}{macros} = "$pg{directories}{root}/macros";
655
656#
657# The macro file search path. Each directory in this list is seached
658# (in this order) by loadMacros() when it looks for a .pl file.
659#
660$pg{directories}{macrosPath} = [
661 ".", # search the problem file's directory
662 $courseDirs{macros},
663 $pg{directories}{macros},
664];
614 665
615##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) 666##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
616 667
617# Users for whom to print the file name of the PG file being processed. 668# Users for whom to print the file name of the PG file being processed.
618$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; 669$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
625$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/", 676$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
626 677
627# Size in pixels of dynamically-generated images, i.e. graphs. 678# Size in pixels of dynamically-generated images, i.e. graphs.
628$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400, 679$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400,
629 680
681# Strings to insert at the start and end of the body of a problem
682# (at beginproblem() and ENDDOCUMENT) in various modes. More display modes
683# can be added if different behaviours are desired (e.g., HTML_dpng,
684# HTML_asciimath, etc.). These parts are not used in the Library browser.
685
686$pg{specialPGEnvironmentVars}{problemPreamble} = { TeX => '', HTML=> '' };
687$pg{specialPGEnvironmentVars}{problemPostamble} = { TeX => '', HTML=>'' };
688
689# To have the problem body indented and boxed, uncomment:
690
691# $pg{specialPGEnvironmentVars}{problemPreamble}{HTML} = '<BLOCKQUOTE>
692# <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=15 BGCOLOR=#E8E8E8><TR><TD>';
693# $pg{specialPGEnvironmentVars}{problemPostamble}{HTML} = '</TD></TR></TABLE>
694# </BLOCKQUOTE>';
695
630##### PG modules to load 696##### PG modules to load
631 697
632# The first item of each list is the module to load. The remaining items are 698# The first item of each list is the module to load. The remaining items are
633# additional packages to import. 699# additional packages to import.
634 700
635${pg}{modules} = [ 701${pg}{modules} = [
636 [qw(DynaLoader)], 702 [qw(DynaLoader)],
637 [qw(Exporter)], 703 [qw(Exporter)],
638 [qw(GD)], 704 [qw(GD)],
639 705
640 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 706 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand utf8)],
641 [qw(AnswerHash AnswerEvaluator)], 707 [qw(AnswerHash AnswerEvaluator)],
642 [qw(WWPlot)], # required by Circle (and others) 708 [qw(WWPlot)], # required by Circle (and others)
643 [qw(Circle)], 709 [qw(Circle)],
644 [qw(Complex)], 710 [qw(Complex)],
645 [qw(Complex1)], 711 [qw(Complex1)],

Legend:
Removed from v.3124  
changed lines
  Added in v.3552

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9