[LON-CAPA-cvs] cvs: loncom /homework convertjme.pl

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 20 Oct 2003 16:25:33 -0000


albertel		Mon Oct 20 12:25:33 2003 EDT

  Modified files:              
    /loncom/homework	convertjme.pl 
  Log:
  - add header to quickly switch between Lon-CAPA and standalone mode
  
  
Index: loncom/homework/convertjme.pl
diff -u loncom/homework/convertjme.pl:1.7 loncom/homework/convertjme.pl:1.8
--- loncom/homework/convertjme.pl:1.7	Mon Oct 20 12:14:08 2003
+++ loncom/homework/convertjme.pl	Mon Oct 20 12:25:33 2003
@@ -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()) {