| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK Online Homework Delivery System |
2 | # WeBWorK Online Homework Delivery System |
| 3 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
3 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
| 4 | # $CVSHeader: webwork2/lib/WeBWorK/PG.pm,v 1.65 2006/05/23 20:47:27 gage Exp $ |
4 | # $CVSHeader: webwork2/lib/WeBWorK/PG.pm,v 1.66 2006/08/14 18:15:11 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. |
| … | |
… | |
| 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 | asciimath => "HTML_asciimath", |
|
|
39 | LaTeXMathML => "HTML_LaTeXMathML", |
| 39 | }; |
40 | }; |
| 40 | |
41 | |
| 41 | sub new { |
42 | sub new { |
| 42 | shift; # throw away invocant -- we don't need it |
43 | shift; # throw away invocant -- we don't need it |
| 43 | my ($ce, $user, $key, $set, $problem, $psvn, $formFields, |
44 | my ($ce, $user, $key, $set, $problem, $psvn, $formFields, |
| … | |
… | |
| 137 | # ADDED: dvipngTempDir |
138 | # ADDED: dvipngTempDir |
| 138 | # ADDED: jsMathURL |
139 | # ADDED: jsMathURL |
| 139 | # ADDED: asciimathURL |
140 | # ADDED: asciimathURL |
| 140 | # ADDED: macrosPath |
141 | # ADDED: macrosPath |
| 141 | # REMOVED: macrosDirectory, courseScriptsDirectory |
142 | # REMOVED: macrosDirectory, courseScriptsDirectory |
|
|
143 | # ADDED: LaTeXMathML |
| 142 | |
144 | |
| 143 | $envir{cgiDirectory} = undef; |
145 | $envir{cgiDirectory} = undef; |
| 144 | $envir{cgiURL} = undef; |
146 | $envir{cgiURL} = undef; |
| 145 | $envir{classDirectory} = undef; |
147 | $envir{classDirectory} = undef; |
| 146 | $envir{macrosPath} = $ce->{pg}->{directories}{macrosPath}; |
148 | $envir{macrosPath} = $ce->{pg}->{directories}{macrosPath}; |
| … | |
… | |
| 154 | $envir{scriptDirectory} = undef; |
156 | $envir{scriptDirectory} = undef; |
| 155 | $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/"; |
157 | $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/"; |
| 156 | $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/"; |
158 | $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/"; |
| 157 | $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath}; |
159 | $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath}; |
| 158 | $envir{asciimathURL} = $ce->{webworkURLs}->{asciimath}; |
160 | $envir{asciimathURL} = $ce->{webworkURLs}->{asciimath}; |
|
|
161 | $envir{LaTeXMathMLURL} = $ce->{webworkURLs}->{LaTeXMathML}; |
| 159 | $envir{server_root_url} = $ce->{apache_root_url}; |
162 | $envir{server_root_url} = $ce->{apache_root_url}; |
| 160 | |
163 | |
| 161 | # Information for sending mail |
164 | # Information for sending mail |
| 162 | |
165 | |
| 163 | $envir{mailSmtpServer} = $ce->{mail}->{smtpServer}; |
166 | $envir{mailSmtpServer} = $ce->{mail}->{smtpServer}; |