# | Line 136 | Line 136 | my ($urls) = '(' . join ('|', qw{ | |
---|---|---|
136 | # Print the contents of a file containing html | |
137 | sub print_html ($) { | |
138 | my ($filename) = @_; | |
139 | + | my($virtual) = '<!--#include virtual="/cgi-bin/logo.cgi" -->'; |
140 | + | my(@virtualresponse) = `/web/i-scream/nwww.cgi-bin/logo.cgi`; |
141 | open(FILE, $filename); | |
142 | while(<FILE>) { | |
143 | + | if(/$virtual/) { |
144 | + | s/$virtual/$virtualresponse[@virtualresponse-1]/; |
145 | + | } |
146 | print; | |
147 | } | |
148 | close FILE; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |