version 1.131, 2004/03/16 12:03:38
|
version 1.132, 2004/03/17 10:26:31
|
Line 4 use DBI;
|
Line 4 use DBI;
|
use CGI ':all'; |
use CGI ':all'; |
#use strict; |
#use strict; |
use Time::Local; |
use Time::Local; |
my $proxyredirect=0; |
my $proxyredirect=1; |
use POSIX qw(locale_h); |
use POSIX qw(locale_h); |
use locale; |
use locale; |
use vars qw($opt_z); |
use vars qw($opt_z); |
Line 26 open STDERR, ">/var/tmp/errors1";
|
Line 26 open STDERR, ">/var/tmp/errors1";
|
my $newsurl='http://news.chgk.info/'; |
my $newsurl='http://news.chgk.info/'; |
my $reklama="../dimrub/db/reklama.html"; |
my $reklama="../dimrub/db/reklama.html"; |
my $footer="../dimrub/db/footer.html"; |
my $footer="../dimrub/db/footer.html"; |
|
$footer="../../chgk/footer.html" if $url=~/zaba/; |
|
$reklama="../../chgk/reklama.html" if $url=~/zaba/; |
my $datefooter="../dimrub/db/date"; |
my $datefooter="../dimrub/db/date"; |
$datefooter="../../chgk/date" if $url=~/zaba/; |
$datefooter="../../chgk/date" if $url=~/zaba/; |
|
|
Line 289 sub tourhref {
|
Line 290 sub tourhref {
|
return $res; |
return $res; |
} else { |
} else { |
$res=$url; |
$res=$url; |
$res.="?tour=$t"; |
$res.=$a?"?answers=1&":"?"; |
$res.=$a?"&answers=1":""; |
$res.="tour=$t"; |
|
|
return $res; |
return $res; |
} |
} |
|
|
Line 468 sub makeproxysstr {
|
Line 470 sub makeproxysstr {
|
# $good{$words[$_]}=1 foreach 0..4; |
# $good{$words[$_]}=1 foreach 0..4; |
foreach (@words) |
foreach (@words) |
{ |
{ |
$good{$_}=1 if $c{$_}<200; |
$good{$_}=1 if $c{$_}<200 && length $_>2; |
} |
} |
|
|
$good{$words[$_]}=0 foreach 16..$#words; |
$good{$words[$_]}=0 foreach 16..$#words; |
Line 2057 MAIN:
|
Line 2059 MAIN:
|
my $title="Результаты поиска на \"". ($proxysstr||$sstr) .'"' |
my $title="Результаты поиска на \"". ($proxysstr||$sstr) .'"' |
if ($proxysstr||$sstr); |
if ($proxysstr||$sstr); |
$title||="База вопросов"; |
$title||="База вопросов"; |
if ($url=~/zaba/) { |
|
$globaloutput.= |
|
"<head> |
|
<title>$title</title> |
|
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=koi8-r'> |
|
</head><HTML><body bgcolor=#fff0e0 vlink=#800020>"; |
|
} else { |
|
$globaloutput.=start_html(-"title"=>$title, |
$globaloutput.=start_html(-"title"=>$title, |
-author=>'dimrub@icomverse.com', |
-author=>'dimrub@icomverse.com', |
-bgcolor=>'#fff0e0', |
-bgcolor=>'#fff0e0', |
-vlink=>'#800020');} |
-vlink=>'#800020');#} |
$globaloutput.="<style> |
$globaloutput.="<style> |
td {font-size: x-small; font-family : sans-serif} |
td {font-size: x-small; font-family : sans-serif} |
th {font-size: x-small; font-family : sans-serif} |
th {font-size: x-small; font-family : sans-serif} |