--- db/prgsrc/db.cgi 2003/04/20 12:48:48 1.113 +++ db/prgsrc/db.cgi 2003/04/22 10:49:32 1.114 @@ -9,6 +9,7 @@ use locale; use vars qw($opt_z); use Getopt::Std; getopts('z'); +my $withanswers=param('answer')||param('answers'); open STDERR, ">/var/tmp/errors1"; my $newsurl='http://news.chgk.info/'; my $reklama="../dimrub/db/reklama.html"; @@ -21,7 +22,7 @@ if ($^O =~ /win/i) { { $realHTMLDIR="/home/znatoki/public_html/dimrub/db/baza/"; } -my $usehtml=1; +my $usehtml=0; my $usewas=0; my $cashednumber=500; my $outputnumber=10; @@ -232,7 +233,7 @@ sub tourhref { } else { $res=$url; $res.="?tour=$t"; - $res.=$a?"?answers=1":""; + $res.=$a?"&answers=1":""; return $res; } @@ -2021,10 +2022,10 @@ EOT $QuestionNumber=($sth->fetchrow)[0]||0; } if ($QuestionNumber) { - $globaloutput.= &PrintQuestion($dbh, $QuestionNumber, param('answer')||0, $qnum, 1,0,0); + $globaloutput.= &PrintQuestion($dbh, $QuestionNumber, $withanswers||0, $qnum, 1,0,0); # $dbh, $Id, $answer, $qnum, $title, $text } else { - $globaloutput.=&PrintTournament($dbh, $tour, param('answer')); + $globaloutput.=&PrintTournament($dbh, $tour, $withanswers); } } else {