ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/web/cgi-bin/cvslog.cgi
(Generate patch)

Comparing web/cgi-bin/cvslog.cgi (file contents):
Revision 1.31 by tdb, Wed Mar 24 20:57:27 2004 UTC vs.
Revision 1.33 by tdb, Wed Mar 24 23:29:21 2004 UTC

# Line 58 | Line 58 | my ($footer) = "$incdir/footer.inc";
58   my ($menu) = "$incdir/menu.inc" ;
59  
60   # Section markers
61 my ($sec) = 0;
61   my ($secwho) = 1;
62   my ($secfiles) = 2;
63   my ($seclog) = 3;
# Line 106 | Line 105 | my(@modules) = split (/\s+/, $modulelist);
105  
106   foreach my $module (@modules) {
107      my($firstentry) = 1;
108 +    my($sec) = 0;
109      print <<"END";
110              <div>
111                <h3>
# Line 135 | Line 135 | END
135                          @log = &trim_array(@log);
136                          foreach my $logline (@log) {
137                              $logline =~ s/^\t//;
138 <                            print "$logline\n";
138 >                            print escapeHTML("$logline\n");
139                          }
140                          @log = ();
141                          print <<"END";
# Line 251 | Line 251 | END
251              @log = &trim_array(@log);
252              foreach my $logline (@log) {
253                  $logline =~ s/^\t//;
254 <                print "$logline\n";
254 >                print escapeHTML("$logline\n");
255              }
256              @log = ();
257              print <<"END";
# Line 291 | Line 291 | exit 0;
291   # Print the contents of a file containing html
292   sub print_html {
293      my ($filename) = @_;
294 +    my($virtual) = '<!--#include virtual="/cgi-bin/logo.cgi" -->';
295 +    my(@virtualresponse) = `/web/i-scream/nwww.cgi-bin/logo.cgi`;
296      open(FILE, $filename);
297      while(<FILE>) {
298 +        if(/$virtual/) {
299 +            s/$virtual/$virtualresponse[@virtualresponse-1]/;
300 +        }
301          print;
302      }
303      close FILE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines