X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/756d5de12d15296e7689a7c5c7b5e35bd0bccb0e..7f913ac37060cadb76782acdc0a2df30484c40c2:/plp.cgi diff --git a/plp.cgi b/plp.cgi old mode 100755 new mode 100644 index e9961f6..0b64457 --- a/plp.cgi +++ b/plp.cgi @@ -1,35 +1,7 @@ -#!/usr/local/bin/perl -use v5.6.0; -use PLP; -use strict; +#!/usr/bin/perl -die 'Wrong module version' if $PLP::VERSION ne '3.04'; +# This script is not installed automatically, and is not needed for mod_perl +# installations. -{ - $PLP::code = ''; - $PLP::sentheaders = 0; - $PLP::inA = 0; - $PLP::inB = 0; - $PLP::DEBUG = 1; - delete @ENV{ grep /^PLP_/, keys %ENV }; -} - -PLP::start(); - -{ - no strict; - PLP::Fields::doit(); - { - package PLP::Script; - *headers = \%header; - *cookies = \%cookie; - PLP::Functions->import(); - # No lexicals may exist at this point. - eval qq{package PLP::Script; $PLP::code}; - } - PLP::error($@, 1) if $@; - select STDOUT; - undef *{"PLP::Script::$_"} for keys %PLP::Script::; - PLP::sendheaders() unless $PLP::sentheaders; -} +use PLP::CGI;