ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/cgi/taillog.cgi
(Generate patch)

Comparing misc/scripts/cgi/taillog.cgi (file contents):
Revision 1.1 by tdb, Fri Mar 9 00:22:30 2001 UTC vs.
Revision 1.3 by tdb, Sun May 13 00:01:54 2001 UTC

# Line 23 | Line 23 | if (!defined $n) {
23      $n = 50;
24   }
25  
26 < unless ($n =~ /^[0-9]{1,4}$/) {
26 > unless ($n =~ /^[0-9]{1,6}$/) {
27      $n = 50;
28   }
29  
# Line 52 | Line 52 | text="#000066">
52  
53   <form method="GET" action="taillog.cgi">
54   <font size="+1"><b>
55 < Last <input type="text" name="n" value="$n" size="4" maxlength="5"> lines
55 > Last <input type="text" name="n" value="$n" size="5" maxlength="5"> lines
56   of the server logfile.
57   | grep </b><input type="text" name="grep" value="$grep" size="20" maxlength="40">
58   <input type="submit" value="Enter">
# Line 88 | Line 88 | sub HTML_encode ($){
88      $encoded =~ s/</&lt;/g;
89      $encoded =~ s/>/&gt;/g;
90      $encoded =~ s/^(.{0})(.*core\.loggers\..*: started)$/<hr size=10 color=blue>$2/;
91 <    $encoded =~ s/(.*)] (.*)}:(.*)/$1] <i>$2<\/i>:<b>$3<\/b>/;
91 >    $encoded =~ s/(.*)] (.*)}:(.*)/$1] <i>$2}<\/i>:<b>$3<\/b>/;
92      return $encoded;
93   }
94  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines