Almost-minimal filesystem based blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
669 B

17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
17 years ago
  1. #!/usr/bin/perl
  2. =pod
  3. =head1 NAME
  4. display.fcgi - FastCGI wrapper script for Display.pm
  5. =head1 DESCRIPTION
  6. Pulls in Display.pm and CGI::Fast, runs a configuration file, and
  7. loops over FastCGI queries, passing them to Display::handle.
  8. =cut
  9. use strict;
  10. use warnings;
  11. no warnings 'uninitialized';
  12. use lib 'lib';
  13. use lib 'wala';
  14. use CGI::Fast;
  15. use Display;
  16. # Grab configuration:
  17. our (%DISPLAY_CONF, %WalaConf);
  18. do 'conf.pl' if -e 'conf.pl';
  19. $WalaConf{'ShowSearchlinks'} = 0;
  20. my $d = Display->new(%DISPLAY_CONF);
  21. $d->walaconf(%WalaConf);
  22. use Data::Dumper;
  23. # Handle input from FastCGI:
  24. while (my $query = CGI::Fast->new) {
  25. print $d->display($query);
  26. }
  27. exit;