Jelajahi Sumber

Put some information on what options pisg is run with to outputfile

Torbjorn Svensson 20 tahun lalu
induk
melakukan
e1d7210db4
2 mengubah file dengan 15 tambahan dan 0 penghapusan
  1. 1 0
      docs/Changelog
  2. 14 0
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
docs/Changelog

@@ -38,6 +38,7 @@ pisg (0.69) - ??
    * Features:
      + Add "+CVS" to versionstring and remove it in Makefile when running
        'make release'. This makes snapshot easier.
+     + Added some information about options pisg is run with to outputfile.
    * Parsers:
      + Add support for both the 1.0.5(stable) and the 1.1.0(devel) log format 
        of dircproxy.

+ 14 - 0
modules/Pisg/HTMLGenerator.pm

@@ -335,6 +335,20 @@ $stats_text
 </span>
 HTML
 
+    _html( sprintf( qq(<!-- NFiles = "%s"; Format = "%s"; Lang = "%s"; LangFile = "%s"; Charset = "%s"; LogCharset = "%s"; LogCharsetFallback = "%s"; LogPrefix = "%s"; LogSuffix = "%s"; NickTracking = "%s"; TimeOffset = "%s" -->),
+        $self->{cfg}->{nfiles},
+        $self->{cfg}->{format},
+        $self->{cfg}->{lang},
+        $self->{cfg}->{langfile},
+        $self->{cfg}->{charset},
+        $self->{cfg}->{logcharset},
+        $self->{cfg}->{logcharsetfallback},
+        $self->{cfg}->{logprefix},
+        $self->{cfg}->{logsuffix},
+        $self->{cfg}->{nicktracking},
+        $self->{cfg}->{timeoffset}
+    ));
+    
     if($self->{cfg}->{colorscheme} ne "none") {
         _html( <<HTML );
 </div>