[system] / trunk / webwork2 / lib / WeBWorK / PG.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/PG.pm

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

Revision 2192 Revision 2200
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: webwork-modperl/lib/WeBWorK/PG.pm,v 1.49 2004/05/23 01:15:28 jj Exp $ 4# $CVSHeader: webwork-modperl/lib/WeBWorK/PG.pm,v 1.50 2004/05/24 01:03:04 sh002i Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
33 tex => "TeX", 33 tex => "TeX",
34 plainText => "HTML", 34 plainText => "HTML",
35 formattedText => "HTML_tth", 35 formattedText => "HTML_tth",
36 images => "HTML_dpng", 36 images => "HTML_dpng",
37 jsMath => "HTML_jsMath", 37 jsMath => "HTML_jsMath",
38 asciimath => "HTML_asciimath",
38}; 39};
39 40
40use constant DISPLAY_MODE_FAILOVER => { 41use constant DISPLAY_MODE_FAILOVER => {
41 TeX => [], 42 TeX => [],
42 HTML => [], 43 HTML => [],
43 HTML_tth => [ "HTML", ], 44 HTML_tth => [ "HTML", ],
44 HTML_dpng => [ "HTML_tth", "HTML", ], 45 HTML_dpng => [ "HTML_tth", "HTML", ],
45 HTML_jsMath => [ "HTML_dpng", "HTML_tth", "HTML", ], 46 HTML_jsMath => [ "HTML_dpng", "HTML_tth", "HTML", ],
47 HTML_asciimath => [ "HTML_dpng", "HTML_tth", "HTML", ],
46 # legacy modes -- these are not supported, but some problems might try to 48 # legacy modes -- these are not supported, but some problems might try to
47 # set the display mode to one of these values manually and some macros may 49 # set the display mode to one of these values manually and some macros may
48 # provide rendered versions for these modes but not the one we want. 50 # provide rendered versions for these modes but not the one we want.
49 Latex2HTML => [ "TeX", "HTML", ], 51 Latex2HTML => [ "TeX", "HTML", ],
50 HTML_img => [ "HTML_dpng", "HTML_tth", "HTML", ], 52 HTML_img => [ "HTML_dpng", "HTML_tth", "HTML", ],
147 149
148 # Directories and URLs 150 # Directories and URLs
149 # REMOVED: courseName 151 # REMOVED: courseName
150 # ADDED: dvipngTempDir 152 # ADDED: dvipngTempDir
151 # ADDED: jsMathURL 153 # ADDED: jsMathURL
154 # ADDED: asciimathURL
152 155
153 $envir{cgiDirectory} = undef; 156 $envir{cgiDirectory} = undef;
154 $envir{cgiURL} = undef; 157 $envir{cgiURL} = undef;
155 $envir{classDirectory} = undef; 158 $envir{classDirectory} = undef;
156 $envir{courseScriptsDirectory} = $ce->{pg}->{directories}->{macros}."/"; 159 $envir{courseScriptsDirectory} = $ce->{pg}->{directories}->{macros}."/";
162 $envir{tempURL} = $ce->{courseURLs}->{html_temp}."/"; 165 $envir{tempURL} = $ce->{courseURLs}->{html_temp}."/";
163 $envir{scriptDirectory} = undef; 166 $envir{scriptDirectory} = undef;
164 $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/"; 167 $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/";
165 $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/"; 168 $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/";
166 $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath}; 169 $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath};
170 $envir{asciimathURL} = $ce->{webworkURLs}->{asciimath};
167 171
168 # Information for sending mail 172 # Information for sending mail
169 173
170 $envir{mailSmtpServer} = $ce->{mail}->{smtpServer}; 174 $envir{mailSmtpServer} = $ce->{mail}->{smtpServer};
171 $envir{mailSmtpSender} = $ce->{mail}->{smtpSender}; 175 $envir{mailSmtpSender} = $ce->{mail}->{smtpSender};

Legend:
Removed from v.2192  
changed lines
  Added in v.2200

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9