/[mws]/trunk/httpd.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/httpd.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 16 by dpavlin, Thu May 6 23:06:08 2004 UTC revision 17 by dpavlin, Fri May 7 11:25:01 2004 UTC
# Line 14  use MWS; Line 14  use MWS;
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');
# Line 68  while ( my $c = $d->accept ) { Line 70  while ( my $c = $d->accept ) {
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.';
# Line 99  while ( my $c = $d->accept ) { Line 101  while ( my $c = $d->accept ) {
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                  #                  #

Legend:
Removed from v.16  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC 1.1.26