[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
harris41
lon-capa-cvs@mail.lon-capa.org
Thu, 16 May 2002 17:21:05 -0000
harris41 Thu May 16 13:21:05 2002 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
lonnet.pm needs to read values out of loncapa_apache.conf
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.219 loncom/lonnet/perl/lonnet.pm:1.220
--- loncom/lonnet/perl/lonnet.pm:1.219 Mon May 13 05:32:56 2002
+++ loncom/lonnet/perl/lonnet.pm Thu May 16 13:21:05 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.219 2002/05/13 09:32:56 albertel Exp $
+# $Id: lonnet.pm,v 1.220 2002/05/16 17:21:05 harris41 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2816,6 +2816,17 @@
}
{
my $config=Apache::File->new("/etc/httpd/conf/loncapa.conf");
+
+ while (my $configline=<$config>) {
+ if ($configline =~ /^[^\#]*PerlSetVar/) {
+ my ($dummy,$varname,$varvalue)=split(/\s+/,$configline);
+ chomp($varvalue);
+ $perlvar{$varname}=$varvalue;
+ }
+ }
+}
+{
+ my $config=Apache::File->new("/etc/httpd/conf/loncapa_apache.conf");
while (my $configline=<$config>) {
if ($configline =~ /^[^\#]*PerlSetVar/) {