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

#!/usr/bin/perl
=pod
=head1 NAME
display.fcgi - FastCGI wrapper script for Display.pm
=head1 DESCRIPTION
Pulls in Display.pm and CGI::Fast, runs a configuration file, and
loops over FastCGI queries, passing them to Display::handle.
=cut
use strict;
use warnings;
no warnings 'uninitialized';
use lib 'lib';
use lib 'wala';
use CGI::Fast;
use Display qw(%WalaConf %DISPLAY_CONF &handle);
# Grab configuration:
if (-e 'conf.pl') {
do 'conf.pl';
}
$WalaConf{'ShowSearchlinks'} = 0;
# Handle input from FastCGI:
while (my $query = new CGI::Fast) {
print handle($query);
}
exit;