]> i-scream Git - www.i-scream.org.git/blobdiff - cgi-bin/docs.cgi
Urg - now the image is generated using SSI the things that include the
[www.i-scream.org.git] / cgi-bin / docs.cgi
index 479adc995d23bdcee3180bc504dddbf41d61c8e5..ee22b7b9ed4c8f05aeda8a797f03484ec286a06c 100755 (executable)
@@ -136,8 +136,13 @@ my ($urls) = '(' . join ('|', qw{
 # Print the contents of a file containing html
 sub print_html ($) {
     my ($filename) = @_;
+    my($virtual) = '<!--#include virtual="/cgi-bin/logo.cgi" -->';
+    my(@virtualresponse) = `/web/i-scream/nwww.cgi-bin/logo.cgi`;
     open(FILE, $filename);
     while(<FILE>) {
+        if(/$virtual/) {
+            s/$virtual/$virtualresponse[@virtualresponse-1]/;
+        }
         print;
     }
     close FILE;