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.

38 lines
596 B

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 qw(%WalaConf %DISPLAY_CONF &handle);
  16. # Grab configuration:
  17. if (-e 'conf.pl') {
  18. do 'conf.pl';
  19. }
  20. $WalaConf{'ShowSearchlinks'} = 0;
  21. # Handle input from FastCGI:
  22. while (my $query = new CGI::Fast) {
  23. print handle($query);
  24. }
  25. exit;