view release on metacpan or search on metacpan
! Add protection of static pages with the require_login config
attribute. (Boris Zentner)
- Fix two cases where a filehandle can be used even if open failed
(Boris Zentner)
- Fix uri_prefix so that the url did not grow anymore (Boris Zentner)
- Remove unused modules Data::Dumper and Carp from View.pm (Boris Zentner)
- Fix to deliver static pages unzipped if desired (Anton Permyakov)
- Fix case where wrong cached file is used for xsl files with
reload="no" and first called without parameters in the
URL (Boris Zentner, Ben Ausden)
1.08
view all matches for this distribution
view release on metacpan or search on metacpan
ProxyStuff.pm view on Meta::CPAN
use Apache::Constants qw(:common);
use Apache::Log;
use Apache::Table;
use HTML::TokeParser;
use LWP::UserAgent;
use Data::Dumper;
@ISA = qw(LWP::UserAgent);
$VERSION = '0.10';
my $UA = __PACKAGE__->new;
view all matches for this distribution
view release on metacpan or search on metacpan
t/Mock/Apache/Request.pm view on Meta::CPAN
my $mock_r = new Mock::Apache:Request( 'cookie_id' => $cookie_id );
my $cookie = $mock_r->header_in( 'Cookie' );
use Data::Dumper;
print Dumper( $cookie );
=head1 AUTHOR
view all matches for this distribution
view release on metacpan or search on metacpan
t/response/TestApReqI18N/dump.pm view on Meta::CPAN
use strict;
use warnings FATAL => 'all';
use Apache::Constants 'OK';
use Apache::Request::I18N;
use Data::Dumper;
sub handler {
my $r = shift;
$r = Apache::Request::I18N->instance($r);
t/response/TestApReqI18N/dump.pm view on Meta::CPAN
$r->send_http_header('text/plain');
my %vars = map +($_, [ $r->param($_) ]), $r->param;
my @uploads = map [$_->name, $_->filename, $_->size], $r->upload;
print Data::Dumper->Dump([\%vars, \@uploads], [qw(*vars *uploads)]);
OK;
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bundle/Apache/Roaming.pm view on Meta::CPAN
=head1 CONTENTS
File::Spec
Data::Dumper
Apache
Apache::Roaming
lib/Bundle/Apache/Roaming.pm view on Meta::CPAN
specified in the Perl README file.
=head1 SEE ALSO
L<CPAN(3)>, L<File::Spec(3)>, L<Data::Dumper(3)>, L<Apache(3)>,
L<Apache::Roaming(3)>
=cut
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SWIT/Security/Maker.pm view on Meta::CPAN
}
package Apache::SWIT::Security::Maker;
use base 'Apache::SWIT::Subsystem::Maker';
use Apache::SWIT::Security::Role::Loader;
use Data::Dumper;
use YAML;
use Apache::SWIT::Maker::Config;
use Apache::SWIT::Maker::Manifest;
use Apache::SWIT::Maker::Conversions;
use File::Slurp;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SWIT.pm view on Meta::CPAN
use strict;
use warnings FATAL => 'all';
package Apache::SWIT;
use Carp;
use Data::Dumper;
use File::Slurp;
our $VERSION = 0.54;
sub swit_startup {}
lib/Apache/SWIT.pm view on Meta::CPAN
}
=head2 $class->swit_die($msg, $r, @data_to_dump)
Dies with first line of C<$msg> using Carp::croak and dumps request C<$r> and
C<@data_to_dump> with Data::Dumper into /tmp/swit_<time>.err file.
=cut
sub swit_die {
my ($class, $msg, $r, @more) = @_;
my $err = (split(/\n/, $msg))[0];
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SdnFw.pm view on Meta::CPAN
my $s;
eval {
$s = Apache::SdnFw::lib::Core->new(%options);
$s->process();
#croak "test".Data::Dumper->Dump([$s]);
};
if ($options{env}{DBDEBUG}) {
_end_dbdebug($s);
}
view all matches for this distribution
view release on metacpan or search on metacpan
utils/minstren view on Meta::CPAN
# This is open-source software.
# See file 'COPYING' in original distribution for complete details.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
use Getopt::Std;
use Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Terse = 1;
$usage = "usage: $0 [-c <cipher_string>]\n";
getopts('c:') || die $usage;
$ciphercmd = '/usr/bin/openssl ciphers -v';
view all matches for this distribution
view release on metacpan or search on metacpan
t/Apache-Session-Browseable-Redis.t view on Meta::CPAN
# Choose your browseable fileds
Index => 'uid sn mail int2',
};
use Data::Dumper;
my $id;
my $json;
is( keys %{ $r->keys('*') }, 0, "Make sure database is empty" );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/Memcached.pm view on Meta::CPAN
readonly => $session->{args}->{ReadOnly},
debug => $session->{args}->{Debug},
compress_threshold => $session->{args}->{CompressThreshold} || 10_000,
);
#use Data::Dumper;
#print STDERR Dumper $session->{args};
my $memd = new Cache::Memcached \%opts;
$self->{cache} = $memd;
bless $self,$class;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/Memorycached.pm view on Meta::CPAN
package Apache::Session::Store::Memorycached;
use strict;
use Symbol;
use Data::Dumper;
use Cache::Memcached;
use Digest::MD5 qw(md5_hex);
use vars qw($VERSION);
$VERSION = '2.2';
view all matches for this distribution
view release on metacpan or search on metacpan
#############################################################################
#
# Apache::Session::Serialize::Dumper
# Serializes session objects using Data::Dumper
# Copyright(c) 2000 Pascal Fleury (fleury@users.sourceforge.net)
# Distribute under the Artistic License
#
############################################################################
package Apache::Session::Serialize::Dumper;
use strict;
use vars qw($VERSION);
use Data::Dumper;
$VERSION = "0.90";
sub serialize {
my $session = shift;
local $Data::Dump::Purity = 1;
local $Data::Dumper::Varname = "ASSD";
$session->{serialized} = Dumper( $session->{data} );
}
sub unserialize {
my $session = shift;
=pod
=head1 NAME
Apache::Session::Serialize::Dumper - Use Data::Dumper to zip up persistent data
=head1 SYNOPSIS
use Apache::Session::Serialize::Dumper;
$ref = Apache::Session::Serialize::Dumper::unserialize($zipped);
=head1 DESCRIPTION
This module fulfills the serialization interface of Apache::Session.
It serializes the data in the session object by use of Data::Dumper's
C<dump()> and Perl's C<eval()> functions. The result is a text object
ready for storage.
=head1 AUTHOR
This module was written by Pascal Fleury <fleury@users.sourceforge.net>.
=head1 SEE ALSO
L<Data::Dumper>
L<Apache::Session::Serialize::Base64>,
L<Apache::Session::Serialize::Storable>,
L<Apache::Session>
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/MyAuth.pm view on Meta::CPAN
}
sub verifiy_cred {
my %cred = @_;
#use Data::Dumper;
#print STDERR Dumper(\%cred);
# Check correct username and password
return 1 if ( $cred{'username'} eq 'foo' && $cred{'password'} eq 'baz' );
return 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SharedMem.pm view on Meta::CPAN
{
my $self = shift;
_init_dumper();
my $root_record = $self->_get_root || return undef;
return Data::Dumper::Dumper($root_record);
}
sub dump
{
my $self = shift;
my $namespace = defined $_[0] ? shift : croak('too few arguments');
_init_dumper();
if(my $ns_obj = $self->_get_namespace_ipcobj($self->_get_root, $namespace))
{
return Data::Dumper::Dumper($self->_get_record($ns_obj));
}
else
{
carp("can't read namespace $namespace: ", $self->error);
return undef;
lib/Apache/SharedMem.pm view on Meta::CPAN
$self->_root_lock(LOCK_SH);
$record = $self->_get_root;
$self->_root_unlock;
unless(ref $record && ref($record) eq 'HASH' && exists $record->{'map'})
{
$self->_debug("map dump: ", $record, Data::Dumper::Dumper($record)) if($options->{debug});
confess("Apache::SharedMem object initialization: wrong root map type")
}
# checking map version
unless(exists $record->{'version'} && $record->{'version'} >= 2)
lib/Apache/SharedMem.pm view on Meta::CPAN
{
# record not initialized
$record = {};
}
$self->_debug(4, 'dump: ', Data::Dumper::Dumper($record)) if($self->{options}->{debug});
return($record);
}
sub _store_namespace { $_[0]->_debug; $_[0]->_store_record($_[1], $_[0]->{namespace}) }
lib/Apache/SharedMem.pm view on Meta::CPAN
$self->_set_error('can\'t store any data in readonly mode');
$self->_set_status(FAILURE);
return undef;
}
$self->_debug(4, 'dump: ', Data::Dumper::Dumper($share)) if($self->{options}->{debug});
my $serialized;
# freeze the shared block
eval { $serialized = freeze($share) };
lib/Apache/SharedMem.pm view on Meta::CPAN
$self->_debug("setting status to $_[0]");
}
sub _init_dumper
{
require Data::Dumper;
$Data::Dumper::Indent = 2;
$Data::Dumper::Terse = 1;
$Data::Dumper::Quotekeys = 0;
}
sub _cleanup
{
if(defined $Apache::SharedMem::ROOTKEY)
lib/Apache/SharedMem.pm view on Meta::CPAN
Revision 1.45 2001/08/28 10:17:00 rs
little documentation fix
Revision 1.44 2001/08/28 08:45:12 rs
stop using autouse for Data::Dumper, mod_perl don't like it
add auto unlock on DESTROY, seem to work under mod_perl with Apache::Registry
TODO test with mod_perl handlers
Revision 1.43 2001/08/27 15:42:02 rs
bugfix in release method, on root map cleanup, ipc_mode must be defined
lib/Apache/SharedMem.pm view on Meta::CPAN
- Default IPC mode is now 0600
- We now keep ipc_mode and ipc_segment_size in the root map for calling IPC::ShareLite
with same values.
- Add "readonly" parameter to constructor
- Feature enhancement, add "dump" and "dump_map" methods
- Data::Dumper is now autoused
- Feature enhancement, release method now release root map when it go empty
- Feature enhancement, add a "destroy" method, that call "release" method on all root-map's
namespaces. Usefull for cleaning shared memory on Apache shutdown.
- Misc bugfixes
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SiteControl/UserFactory.pm view on Meta::CPAN
use 5.008;
use strict;
use warnings;
use Carp;
use Data::Dumper;
use Apache::SiteControl::User;
use Crypt::CBC;
our $VERSION = "1.0";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Sling/LDAPSynch.pm view on Meta::CPAN
use Getopt::Long qw(:config bundling);
use Apache::Sling;
use Apache::Sling::Authn;
use Apache::Sling::Content;
use Apache::Sling::User;
use Data::Dumper;
use Fcntl ':flock';
use File::Temp;
use Net::LDAP;
require Exporter;
lib/Apache/Sling/LDAPSynch.pm view on Meta::CPAN
{
my ( $tmp_cache_file_handle, $tmp_cache_file_name ) =
File::Temp::tempfile();
my %synch_cache;
print {$tmp_cache_file_handle}
Data::Dumper->Dump( [ \%synch_cache ], [qw( synch_cache )] )
or croak q(Unable to print initial data dump of synch cache to file!);
close $tmp_cache_file_handle
or croak
q(Problem closing temporary file handle when initializing synch cache);
${ $class->{'Content'} }
lib/Apache/Sling/LDAPSynch.pm view on Meta::CPAN
sub update_synch_cache {
my ( $class, $synch_cache ) = @_;
my ( $tmp_cache_file_handle, $tmp_cache_file_name ) =
File::Temp::tempfile();
print {$tmp_cache_file_handle}
Data::Dumper->Dump( [$synch_cache], [qw( synch_cache )] )
or croak q(Unable to print data dump of synch cache to file!);
close $tmp_cache_file_handle
or croak
q(Problem closing temporary file handle when updating synch cache);
${ $class->{'Content'} }
lib/Apache/Sling/LDAPSynch.pm view on Meta::CPAN
sub update_synch_user_list {
my ( $class, $synch_user_list ) = @_;
my ( $tmp_user_list_file_handle, $tmp_user_list_file_name ) =
File::Temp::tempfile();
print {$tmp_user_list_file_handle}
Data::Dumper->Dump( [$synch_user_list], [qw( synch_user_list )] )
or croak q(Unable to print data dump of synch user list to file!);
close $tmp_user_list_file_handle
or croak
q(Problem closing temporary file handle when writing synch user list);
${ $class->{'Content'} }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Solr/Result.pm view on Meta::CPAN
use Time::HiRes qw/time/;
use Scalar::Util qw/weaken/;
use Apache::Solr::Document ();
use Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Quotekeys = 0;
#--------------------
use overload
'""' => 'endpoint',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Syntax/Highlight/Perl.pm view on Meta::CPAN
}
# We have already in cache
else {
$str = get_cache( file => $key, dir => $r->dir_config('HighlightCacheDir') || '/tmp', debug => $debug );
}
use Data::Dumper;
print STDERR ("[$$] " . $r->filename . "\n" . Dumper(\%stat)) if $debug;
}
# When we must highlight?
if ( $have_to_cache || ! $str ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/TestConfig.pm view on Meta::CPAN
my $class = shift;
$class->new({thaw => 1, @_});
}
sub freeze {
require Data::Dumper;
local $Data::Dumper::Terse = 1;
my $data = Data::Dumper::Dumper(shift);
chomp $data;
$data;
}
sub sync_vars {
view all matches for this distribution
view release on metacpan or search on metacpan
bin/script.pl view on Meta::CPAN
GetOptions(
'jar|j=s' => \my $tika_path,
);
use Data::Dumper;
if( ! $tika_path ) {
my $tika_glob = File::Spec->rel2abs( dirname($0) ) . '/../jar/*.jar';
$tika_path = Apache::Tika::Async->best_jar_file(glob $tika_glob);
die "Tika not found in '$tika_glob'" unless $tika_path and -f $tika_path;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/UploadSvr.pm view on Meta::CPAN
$self->dispatch;
}
sub as_string {
my($self) = @_;
require Data::Dumper;
join "", "<PRE>", Data::Dumper::Dumper($self), "</PRE>\n";
}
sub dispatch {
my($self) = @_;
my $r = $self->{R};
view all matches for this distribution
view release on metacpan or search on metacpan
UpnpImgBrowser.pm view on Meta::CPAN
use File::Basename qw(fileparse);
use Net::UPnP::ControlPoint;
use Net::UPnP::AV::MediaServer;
use SOAP::Lite maptype => {};
use XML::Simple;
use Data::Dumper;
use POSIX qw(strftime);
use Cache::FileCache;
use URI::Escape;
use LWP::Simple;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Voodoo.pm view on Meta::CPAN
$VERSION = "3.0200";
use strict;
use warnings;
use Data::Dumper;
use Time::HiRes;
use Apache::Voodoo::Exception;
sub new {
my $class = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/WebDAV.pm view on Meta::CPAN
our $VERSION = '0.01';
use Apache;
use Apache::Constants qw(:response :http);
use Apache::Util qw(unescape_uri escape_uri);
use Data::Dumper;
use Encode;
use File::Spec;
use File::Find::Rule::Filesys::Virtual;
use URI;
use URI::Escape;
view all matches for this distribution
view release on metacpan or search on metacpan
Wyrd/Chart.pm view on Meta::CPAN
use base qw(Apache::Wyrd::Interfaces::Setter Apache::Wyrd);
use GD::Graph;
use GD::Graph::colour qw(:colours :convert :lists);
use Apache::Wyrd::Services::SAK qw(:tag :file token_parse token_hash);
use Digest::SHA qw(sha1_hex);
use Data::Dumper;
=pod
=head1 NAME
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/XPP.pm view on Meta::CPAN
At present there are only 4 levels of debugging :
0 - no debugging (default)
1 - some debugging
2 - verbose debugging
3 - adds some Data::Dumper calls
=item C<$debuglines>
Optionally, you can activate the $debuglines, which will cause all
debugging output to include the line numbers (in this file) of the debugging.
lib/Apache/XPP.pm view on Meta::CPAN
warn "xpp: parsing source" . ($debuglines ? '' : "\n") if ($debug);
my @codesrc;
{
if ($debug >= 3) {
eval "use Data::Dumper;";
local($Data::Dumper::Indent) = 0;
}
warn "xpp: parsing source:\n<<\n$string\n>>" . ($debuglines ? '' : "\n") if ($debug);
# The regex in the while() statement below is somewhat complex. It was placed in one line for efficiency,
# but this is how it came to be:
lib/Apache/XPP.pm view on Meta::CPAN
# while (($string =~ s/^(.*?)\<\?(?:xpp)?(=)?(.*?\s*)\?\>//so) || ($string =~ s/^(.+)$//so)) {
while (($string =~ s/^((?:(?!<\?).)*)<\?(?:xpp)?(=)?((?:(?!<\?|\?>).)*(?:<\?(?:xpp)?(?:=)?(?:(?!<\?|\?>).)*(?:(?!\?>).)*\?>)?(?:(?!\?>).)*)\?>//so) || ($string =~ s/^(.+)$//so)) {
my $text = $1;
my $print = $2 ? 1 : 0;
my $code = $3;
warn Data::Dumper->Dump([$text,$code], [qw(text code)]) if ($debug >= 3);
$text =~ s#\\#\\\\#gso;
$text =~ s#\'#\\\'#gso;
if ($text) {
lib/Apache/XPP.pm view on Meta::CPAN
Revision 1.27 2002/01/16 21:06:01 kasei
Updated VERSION variables to 2.01
Revision 1.26 2002/01/16 21:00:02 kasei
- Added PREREQ_PM arguments to Makefile.PL
- XPP.pm now only uses Data::Dumper if $debug >= 3 (not listed as a prereq)
Revision 1.25 2000/09/23 01:22:06 dweimer
Fixed VHostIncludeDir's, thanks david.
Revision 1.24 2000/09/20 00:33:18 zhobson
view all matches for this distribution
view release on metacpan or search on metacpan
eg/printenv.cgi view on Meta::CPAN
##
use threads;
use threads::shared;
use Data::Dumper;
use Benchmark qw(:all);
print "Content-type: text/plain\n\n";
### print environment details ###
view all matches for this distribution
view release on metacpan or search on metacpan
* lib/DBIx/UserDB.pm (group_get): $gid renamed to $gidorname.
* lib/Apache/iNcom/OrderManager.pm (checkout): Variable $profile
is really variable $order. items is an array ref. Remove
Data::Dumper reference.
(order_report): %fdat of calling page was overwritten. Order data
is now passed into the %order global hash.
* lib/Apache/iNcom/CartManager.pm (apply_charges): Didn't
deference array.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/API/Request.pm view on Meta::CPAN
#
# # Send warning with headers to explain bad cookie
# else {
# warn( "COOKIE ERROR: "
# . $req->jar_status . "\n"
# . Data::Dumper::Dumper( $self->r->headers_in() ) );
# }
sub cookies
{
my $self = shift( @_ );
view all matches for this distribution