--- db/prgsrc/db.cgi 2003/01/27 10:58:56 1.84 +++ db/prgsrc/db.cgi 2003/01/27 12:55:55 1.85 @@ -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 { @@ -1636,8 +1640,8 @@ MAIN: -bgcolor=>'#fff0e0', -vlink=>'#800020'); print "\n"; print &Include_virtual("../dimrub/db/reklama.html"); @@ -1654,10 +1658,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;