--- db/prgsrc/db.cgi 2003/01/27 10:58:56 1.84 +++ db/prgsrc/db.cgi 2003/01/27 13:04:25 1.86 @@ -1620,6 +1620,10 @@ MAIN: setlocale(LC_CTYPE,'russian'); my($i, $tour); my($text) = (param('text')) ? 1 : 0; + if ($text) { + print header('text/plain'); + } else {print header;} + my($dbh) = DBI->connect("DBI:mysql:chgk", "piataev", "") or do { @@ -1630,14 +1634,13 @@ MAIN: die "Can't connect to DB chgk\n"; }; if (!param('comp') and !param('sqldump') and !$text) { - print header; print start_html(-"title"=>'Database of the questions', -author=>'dimrub@icomverse.com', -bgcolor=>'#fff0e0', -vlink=>'#800020'); print "\n"; print &Include_virtual("../dimrub/db/reklama.html"); @@ -1654,10 +1657,6 @@ POSIX::setlocale( &POSIX::LC_ALL, $thisl if ((uc 'Á') ne 'á') {print "Koi8-r locale not installed!\n"}; - if ($text) { - print header('text/plain'); - } - if (param('hideequal')) { my ($sth)= $dbh -> prepare("select first, second FROM equalto"); $sth -> execute;