X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/0dbf6bc1fe5cd28c532994d13836e9509fcbe194..a4dab1e4ec41edfa4ba07128f9ee5ff97a53c3ee:/PLP/CGI.pm diff --git a/PLP/CGI.pm b/PLP/CGI.pm index 817a552..698c34b 100644 --- a/PLP/CGI.pm +++ b/PLP/CGI.pm @@ -65,11 +65,62 @@ sub read ($) { return $data; } -# This is run by the CGI script. (#!perl \n use PLP::CGI; PLP::CGI::everything;) sub everything { PLP::clean(); $_[0]->init() and PLP::start(); } +# This is run by the CGI script. (#!perl \n use PLP::CGI;) +sub import { + $_[0]->everything(); +} + 1; +=head1 NAME + +PLP::CGI - CGI interface for PLP + +=head1 SYNOPSIS + +For most servers you'll need a script executable. +Example F: + + #!/usr/bin/perl + use PLP::CGI; + +Or install the C included with PLP. + +=head2 Lighttpd + +Usually in F: +enable I (add/outcomment in server.modules), and add: + + cgi.assign = ( + ".plp" => "/foo/bar/plp.cgi", + ) + +=head2 Apache + +Enable I and setup F +(often just create a F) with: + + + ScriptAlias /PLP_COMMON/ /foo/bar/ + + Options +ExecCGI + Order allow,deny + Allow from all + + AddHandler plp-document plp + Action plp-document /PLP_COMMON/plp.cgi + + +=head1 AUTHOR + +Mischa POSLAWSKY + +=head1 SEE ALSO + +L, L +