14 |
|
|
15 |
use Data::Dumper; |
use Data::Dumper; |
16 |
|
|
17 |
|
my $debug = 1; |
18 |
|
|
19 |
my $d = HTTP::Daemon->new( Reuse => 1, LocalPort => 6969 ) || die; |
my $d = HTTP::Daemon->new( Reuse => 1, LocalPort => 6969 ) || die; |
20 |
my $cgi = new CGI::Lite; |
my $cgi = new CGI::Lite; |
21 |
my $mws = MWS->new('global.conf'); |
my $mws = MWS->new('global.conf'); |
70 |
my $url = $r->url->path; |
my $url = $r->url->path; |
71 |
|
|
72 |
# XXX LOG |
# XXX LOG |
73 |
print $r->method," ",$url,Dumper($param); |
print $r->method," ",$url,"\n",Dumper($param),"\n" if ($debug); |
74 |
|
|
75 |
# template file name (use ?format=html as default) |
# template file name (use ?format=html as default) |
76 |
my $tpl_file = 'master.'; |
my $tpl_file = 'master.'; |
101 |
my @res = $mws->fetch_all_results(); |
my @res = $mws->fetch_all_results(); |
102 |
|
|
103 |
$tpl_var->{results} = \@res; |
$tpl_var->{results} = \@res; |
104 |
|
$tpl_var->{total_hits} = $mws->{total_hits}; |
105 |
|
|
106 |
|
|
107 |
# |
# |