--- db/prgsrc/db.cgi 2001/12/05 00:17:52 1.42 +++ db/prgsrc/db.cgi 2001/12/06 23:39:11 1.45 @@ -152,7 +152,9 @@ sub printform my $inputstring=textfield(-name=>'sstr', -default=>param('sstr')||'', -size=>50); - my $fields=checkbox_group('searchin',['Question','Answer','Comments','Authors','Sources'], [grep $searchin{$_}, keys %searchin], + my @df=keys %searchin; + @df=('Question', 'Answer') unless @df; + my $fields=checkbox_group('searchin',['Question','Answer','Comments','Authors','Sources'], [@df], 'false',\%rusfieldname); my $metod=radio_group(-name=>'metod',-values=>['old','rus'], @@ -193,7 +195,7 @@ sub proxy $text=~s/p(${RLrl})/Ò$1/gom; $text=~s/(${RLrl})p/$1Ò/gom; $text=~s/\s+/ /gmo; - $text=~s/[^ÊÃÕËÅÎÇÛÝÚÈßÆÙ×ÁÐÒÏÌÄÖÜÑÞÓÍÉÔØÂÀêãõëåîçûýúèÿæù÷áðòïìäöüñþóíéôøâàQWERTYUIOPASDFGHJKLZXCVBNM]/ /g; + $text=~s/[^ÊÃÕËÅÎÇÛÝÚÈßÆÙ×ÁÐÒÏÌÄÖÜÑÞÓÍÉÔØÂÀêãõëåîçûýúèÿæù÷áðòïìäöüñþóíéôøâàQWERTYUIOPASDFGHJKLZXCVBNM0-9]/ /g; $text=uc $text; my @list= $text=~m/(?:(?:${RLrl})+)|(?:[A-Za-z0-9]+)/gom; my (%c, %good,$sstr); @@ -995,8 +997,8 @@ sub PrintQuestion { $output .= &PrintField("ëÏÍÍÅÎÔÁÒÉÉ", $Question{'Comments'}, $text); } } - $output.=br.a({href=> url."?metod=proxy&qid=$Id"}, 'âÌÉÚËÉÅ ×ÏÐÒÏÓÙ').p - if $answer; +# $output.=br.a({href=> url."?metod=proxy&qid=$Id"}, 'âÌÉÚËÉÅ ×ÏÐÒÏÓÙ').p +# if $answer; return $output; }