File: piledriver.cgi.PL

package info (click to toggle)
psp 0.5.5-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 4,820 kB
  • ctags: 2,333
  • sloc: perl: 21,074; ansic: 4,553; sh: 2,407; makefile: 461; php: 11; pascal: 6
file content (50 lines) | stat: -rwxr-xr-x 1,265 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/perl
use strict;
use lib qw(. ..);
use localutils;

my $vars = parse_makefile_vars();
my ($out_fname,$init) = parse_PL_argv(@ARGV);
my ($use_statements,$perl_args) = get_extra_libs($vars,$init);

open_perl_script($out_fname);
print($use_statements,<DATA>);
close_script();

__END__

# Copyright (c) 2000, FundsXpress Financial Network, Inc.
# This library is free software released "AS IS WITH ALL FAULTS"
# and WITHOUT ANY WARRANTIES under the terms of the GNU Lesser
# General Public License, Version 2.1, a copy of which can be
# found in the "COPYING" file of this distribution.

# $Id: piledriver.cgi.PL,v 1.1.1.2 2003/12/06 19:47:26 hartmans Exp $

use strict;

=head1 NAME

piledriver.cgi - executable script to dispatch CGI requests to PSP piles

=head1 SYNOPSIS

=head1 DESCRIPTION

The primary functionality of this executable is found within the
C<dispatch> subroutine which is exported by C<PSP::Driver>. This
script does provide some error checking functionality, however. It
also sets up a few variables and cleans up the CGI headers.

Sites using piles should redirect their web browser so that the
appropriate URLs are handled by this script.

=cut

use CGI;
use PSP::Driver qw(&dispatch);

my $cgi = CGI->new();
dispatch($cgi);

exit 0;