}
}
+our $r;
+
# mod_perl initializer: returns 0 on success, Apache error code on failure
sub init {
- our $r = shift;
+ $r = shift;
$PLP::print = 'PLP::Apache::print';
$PLP::read = \&read;
$ENV{PLP_NAME} = $r->uri;
- our $use_cache = $r->dir_config('PLPcache') !~ /^off$/i;
-#S our $use_safe = $r->dir_config('PLPsafe') =~ /^on$/i;
+ $PLP::use_cache = $r->dir_config('PLPcache') !~ /^off$/i;
+#S $PLP::use_safe = $r->dir_config('PLPsafe') =~ /^on$/i;
my $path = $r->filename();
my ($file, $dir) = File::Basename::fileparse($path);
chdir $dir;
sub print {
return unless grep length, @_;
PLP::sendheaders() unless $PLP::sentheaders;
- $PLP::Apache::r->print(@_);
+ $r->print(@_);
}
# This is the mod_perl handler.