From caaef2f6fc47d3b44ea28797523a4c104363b513 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Fri, 3 Mar 2000 03:13:11 +0000 Subject: [PATCH] added missing show() function --- src/www-spong-ack.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/www-spong-ack.pl b/src/www-spong-ack.pl index 655920e..e6b6649 100755 --- a/src/www-spong-ack.pl +++ b/src/www-spong-ack.pl @@ -358,6 +358,17 @@ sub header { sub footer { &show( "footer" ) if -f "$main::WWWHTML/footer.html"; } +sub show { + my $file = shift; + my $show = $main::WWWSPONG . "/help"; + + if( -f "$main::WWWHTML/$file.html" ) { + open( FILE, "$main::WWWHTML/$file.html" ); + while( ) { s/!!WWWSHOW!!/$show/g; print $_; } + close( FILE ); + } +} + # Converts a command line representation of a host list to a list of hostnames -- 2.30.2