ispman/lib http.lib,1.60,1.61

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22805/lib

Modified Files:
	http.lib 
Log Message:
revived apacheVhostsHeader/-Footer confVars

Index: http.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/http.lib,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- http.lib	30 Dec 2004 04:35:56 -0000	1.60
+++ http.lib	7 Feb 2005 19:01:03 -0000	1.61
@@ -287,7 +287,11 @@
     } until sysopen( VHOSTS, $name, O_RDWR | O_CREAT | O_EXCL );
 
     print "Writing to tmpfile $name\n";
-
+    
+    if ( $apacheVhostsHeader && -e $apacheVhostsHeader ) {
+    	print VHOSTS cat($apacheVhostsHeader);
+    }
+    
     for my $domain ( keys %$vhostHash ) {
         for my $vh ( keys %{ $vhostHash->{$domain} } ) {
             next unless $vh =~ /\S/;
@@ -443,6 +447,11 @@
         }
     }
     print VHOSTS "\n$vhostText\n";
+
+    if ( $apacheVhostsFooter && -e $apacheVhostsFooter ) {
+    	print VHOSTS cat($apacheVhostsFooter);
+    }
+
     close("VHOSTS");
 
     ### uncomment this if you want checking of the generated file and



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.