--- loncom/homework/convertjme.pl 2003/10/20 16:14:08 1.7 +++ loncom/homework/convertjme.pl 2003/10/20 16:25:33 1.8 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Dynamically converts JME strings into either a png or ps file. # -# $Id: convertjme.pl,v 1.7 2003/10/20 16:14:08 albertel Exp $ +# $Id: convertjme.pl,v 1.8 2003/10/20 16:25:33 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -28,13 +28,17 @@ # Coded by Guy Ashkenazi, guy@fh.huji.ac.il # Based on the work of Peter Ertl, peter.ertl@pharma.novartis.com - - use strict; + +### FOR LON-CAPA set $loncapa to 1 and uncomment both uses +### For standalone operation, set $loncapa to 0, and comment out both uses +my $loncapa=1; use lib '/home/httpd/lib/perl'; +use LONCAPA::loncgi(); + + use GD; use PostScript::Simple; -use LONCAPA::loncgi(); if ($loncapa) { if (! &LONCAPA::loncgi::check_cookie_and_load_env()) {