CGI-apacheSSI
view release on metacpan or search on metacpan
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"Date::Format" : "0",
"File::Spec::Functions" : "0",
"HTTP::Cookies" : "0",
"HTTP::Response" : "0"
}
}
},
"release_status" : "stable",
"version" : "0.96"
}
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: CGI-apacheSSI
no_index:
directory:
- t
- inc
requires:
Date::Format: 0
File::Spec::Functions: 0
HTTP::Cookies: 0
HTTP::Response: 0
version: 0.96
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'CGI::apacheSSI',
VERSION_FROM => 'lib/CGI/apacheSSI.pm', # finds $VERSION
# PREREQ_PM => {}, # e.g., Module::Name => 1.1
PREREQ_PM => {
'File::Spec::Functions' => '0',
'HTTP::Response' => '0',
'HTTP::Cookies' => '0',
'Date::Format' => '0',
},
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/CGI/apacheSSI.pm', # retrieve abstract from module
AUTHOR => 'insaner <apacheSSI-PLEASE-NOSPAM@insaner.com>') : ()),
);
make install
DEPENDENCIES
This module requires these other modules and libraries:
use File::Spec::Functions;
use FindBin;
use LWP::UserAgent;
use HTTP::Response;
use HTTP::Cookies;
use URI;
use Date::Format;
COPYRIGHT AND LICENCE
Copyright (C) 2014 by insaner
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.12.4 or,
lib/CGI/apacheSSI.pm view on Meta::CPAN
# TODO:
# move up the %allowed_tag_count;
# $allowed_tag_count{'if'}=["expr"]; should use arrays: @allowed_tag_count{'if'}=("expr");
# handle encoding in echo()
# PROPER VIRTUAL CALLS TO CGI SCRIPTS AND mod_rewrite URLS
use File::Spec::Functions; # catfile()
use HTTP::Response;
use HTTP::Cookies;
use Date::Format;
use Cwd;
our $VERSION = '0.96';
our $DEBUG = 0;
sub import {
my($class,%args) = @_;
return unless exists $args{'autotie'};
lib/CGI/apacheSSI.pm view on Meta::CPAN
_enable_exec_cmd => ($args{'_enable_exec_cmd'} || 0),
_verbose_errors => ($args{'_verbose_errors'} || 0)
};
$self->{'_variables'}->{LAST_MODIFIED} = $lmod; # needs to be specified after the above, since it requires DOCUMENT_ROOT to be populated
$self->{_max_recursions} = $args{MAX_RECURSIONS} || 100; # no "infinite" loops
$self->{_recursions} = {};
$self->{_cookie_jar} = $args{COOKIE_JAR} || HTTP::Cookies->new();
$self->{'_in_if'} = 0;
$self->{'_suspend'} = [0];
$self->{'_seen_true'} = [1];
return $self;
}
sub _enable_exec_cmd {
my $self = shift;
lib/CGI/apacheSSI.pm view on Meta::CPAN
Creates a new CGI::apacheSSI object. The following are valid (optional) arguments:
DOCUMENT_URI => $doc_uri,
DOCUMENT_NAME => $doc_name,
DOCUMENT_ROOT => $doc_root,
errmsg => $oops,
sizefmt => ('bytes' || 'abbrev'),
timefmt => $time_fmt,
MAX_RECURSIONS => $default_100, # when to stop infinite loops w/ error msg
COOKIE_JAR => HTTP::Cookies->new,
_verbose_errors => 0 || 1,
=item C<_verbose_errors>
The C<_verbose_errors> option was introduced to enable the output of more verbose
errors directly to the browser (instead of the standard
C<[an error occurred while processing this directive]> message),
which can be quite useful when debugging. This can be changed during
script execution via $ssi->config('_verbose_errors', 1) to enable or
$ssi->config('_verbose_errors', 0) to disable. Default is 0.
lib/CGI/apacheSSI.pm view on Meta::CPAN
=item $ssi->fsize($type, $filename)
Same as C<flastmod>.
=item $ssi->printenv
Returns the environment similar to Apache's mod_include.
=item $ssi->cookie_jar([$jar])
Returns the currently-used HTTP::Cookies object. You may optionally
pass in a new HTTP::Cookies object. The jar is used for web requests
in exec cgi and include virtual directives.
=back
=head2 FLOW-CONTROL METHODS
The following methods may be used to test expressions. During a C<block>
where the test $expr is false, nothing will be returned (or printed,
if tied).
( run in 0.564 second using v1.01-cache-2.11-cpan-e9199f4ba4c )