From: Stephen L Johnson Date: Wed, 1 Mar 2000 22:07:34 +0000 (+0000) Subject: defaulting $WWW_DEFAULT_VIEW to 'HOSTS' is value is not defined in spong.conf X-Git-Tag: spong-2_7-alpha5~62 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca9edaf6d66e387bf7c89238850d33c68941aa3;p=spong.git defaulting $WWW_DEFAULT_VIEW to 'HOSTS' is value is not defined in spong.conf --- diff --git a/src/www-spong.pl b/src/www-spong.pl index e41dc7b..eb00eff 100755 --- a/src/www-spong.pl +++ b/src/www-spong.pl @@ -104,6 +104,7 @@ $cmd = $ENV{'PATH_INFO'}; # These commands control the frame interface, etc... if( $cmd eq "" || $cmd eq "/" ) { + $main::SPONG_DEFAULT_VIEW = "HOST" unless $main::SPONG_DEFAULT_VIEW; &interactive( "all" ) if $main::SPONG_DEFAULT_VIEW eq "HOST"; &ovinteractive( "all" ) if $main::SPONG_DEFAULT_VIEW eq "OVERVIEW"; exit;