From 82eecd04982dcc9371801264b05acb8ab67bd73e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 16 Jul 2002 00:54:12 +0000 Subject: Have echolot version in HTML output --- Echolot/Globals.pm | 7 +++++-- Echolot/Stats.pm | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'Echolot') diff --git a/Echolot/Globals.pm b/Echolot/Globals.pm index bd374da..0a1dabb 100644 --- a/Echolot/Globals.pm +++ b/Echolot/Globals.pm @@ -1,7 +1,7 @@ package Echolot::Globals; # (c) 2002 Peter Palfrader -# $Id: Globals.pm,v 1.2 2002/06/20 04:27:37 weasel Exp $ +# $Id: Globals.pm,v 1.3 2002/07/16 00:53:33 weasel Exp $ # =pod @@ -20,12 +20,15 @@ use Carp; my $GLOBALS; -sub init { +sub init(%) { + my (%args) = @_; + my $hostname = `hostname`; $hostname =~ /^([a-zA-Z0-9_-]*)$/; $hostname = $1 || 'unknown'; $GLOBALS->{'hostname'} = $hostname; $GLOBALS->{'internalcounter'} = 1; + $GLOBALS->{'version'} = $args{'version'}; }; sub initStorage { diff --git a/Echolot/Stats.pm b/Echolot/Stats.pm index 5493436..5dfc17d 100644 --- a/Echolot/Stats.pm +++ b/Echolot/Stats.pm @@ -1,7 +1,7 @@ package Echolot::Stats; # (c) 2002 Peter Palfrader -# $Id: Stats.pm,v 1.19 2002/07/13 20:42:51 weasel Exp $ +# $Id: Stats.pm,v 1.20 2002/07/16 00:53:33 weasel Exp $ # =pod @@ -282,6 +282,7 @@ sub write_file($$;$) { $template->param ( SITE_NAME => Echolot::Config::get()->{'sitename'} ); $template->param ( seperate_rlist => Echolot::Config::get()->{'seperate_rlists'} ); $template->param ( combined_list => Echolot::Config::get()->{'combined_list'} ); + $template->param ( version => Echolot::Globals::get()->{'version'} ); $filename = $filebasename.'.html'; open(F, '>'.$filename) or -- cgit v1.2.3