--- db/prgsrc/db.cgi 2003/05/01 20:46:59 1.118 +++ db/prgsrc/db.cgi 2003/05/25 21:04:33 1.119 @@ -1439,13 +1439,13 @@ sub Get12Random { sub Include_virtual { my ($fn, $output) = (@_, ''); - return "" if ($opt_z); + return "\n\n" if ($opt_z); open F , $fn or return ""; #die "Can't open the file $fn: $!\n"; while () { if (//&Include_virtual($1)/e; + s//&Include_virtual($1)/e; } if (//`$1`/e; @@ -1934,7 +1934,8 @@ th {font-size: x-small; font-family : sa } $tour = (param('tour')) ? param('tour') : 0; my $sth; - if ($tour !~ /^[0-9]*$/) { + my $texttour=$tour; + if ($tour !~ /^[0-9]*$/) { if ($tour=~/\./) { my ($fname,$n)= split /\./ , $tour; @@ -2012,8 +2013,8 @@ EOT print "Content-Type: application/octet-stream\n"; print "Content-Type: application/force-download\n"; print "Content-Type: application/download\n"; - print "Content-Type: application/x-zip-compressed; name=db.zip\n"; - print "Content-Disposition: attachment; filename=db.zip \n\n"; + print "Content-Type: application/x-zip-compressed; name=$texttour.zip\n"; + print "Content-Disposition: attachment; filename=$texttour.zip \n\n"; $tour ||= 0; my (@files) = &PrintArchive($dbh, $tour); WriteFile($dbh,$_) foreach @files;