Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
HTML /
Mason /
[ HOME SHELL ]
Name
Size
Permission
Action
Apache
[ DIR ]
drwxr-xr-x
Cache
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
Component
[ DIR ]
drwxr-xr-x
Plugin
[ DIR ]
drwxr-xr-x
Resolver
[ DIR ]
drwxr-xr-x
Admin.pod
38.91
KB
-rw-r--r--
ApacheHandler.pm
35.64
KB
-rw-r--r--
ApacheUserDirHandler.pm
3.5
KB
-rw-r--r--
CGIHandler.pm
18.75
KB
-rw-r--r--
Compiler.pm
28.23
KB
-rw-r--r--
Component.pm
17
KB
-rw-r--r--
ComponentSource.pm
5.27
KB
-rw-r--r--
Devel.pod
75.65
KB
-rw-r--r--
Escapes.pm
2.82
KB
-rw-r--r--
Exceptions.pm
16.24
KB
-rw-r--r--
FAQ.pod
56.01
KB
-rw-r--r--
FakeApache.pm
11.72
KB
-rw-r--r--
Handler.pm
970
B
-rw-r--r--
Interp.pm
45.93
KB
-rw-r--r--
Lexer.pm
18.47
KB
-rw-r--r--
MethodMaker.pm
5.68
KB
-rw-r--r--
Params.pod
33.54
KB
-rw-r--r--
Parser.pm
483
B
-rw-r--r--
Plugin.pm
5.41
KB
-rw-r--r--
Request.pm
77.58
KB
-rw-r--r--
Resolver.pm
3.38
KB
-rw-r--r--
Subclassing.pod
9.78
KB
-rw-r--r--
Tests.pm
24.22
KB
-rw-r--r--
Tools.pm
9.43
KB
-rw-r--r--
Utils.pm
2.46
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Utils.pm
# Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved. # This program is free software; you can redistribute it and/or modify it # under the same terms as Perl itself. # # Miscellaneous Mason-related utilities expected to be used by # external applications. # package HTML::Mason::Utils; $HTML::Mason::Utils::VERSION = '1.59'; use HTML::Mason::Tools qw(compress_path); use strict; use warnings; require Exporter; use vars qw(@ISA @EXPORT_OK); @ISA = qw(Exporter); @EXPORT_OK = qw(data_cache_namespace cgi_request_args); sub data_cache_namespace { my ($comp_id) = @_; return compress_path($comp_id); } sub cgi_request_args { my ($q, $method) = @_; my %args; # Checking that there really is no query string when the method is # not POST is important because otherwise ->url_param returns a # parameter named 'keywords' with a value of () (empty array). # This is apparently a feature related to <ISINDEX> queries or # something (see the CGI.pm) docs. It makes my head hurt. - dave my @methods = $method ne 'POST' || ! $ENV{QUERY_STRING} ? ( 'param' ) : ( 'param', 'url_param' ); foreach my $key ( map { $q->$_() } @methods ) { next if exists $args{$key}; local $CGI::LIST_CONTEXT_WARN = 0; my @values = map { $q->$_($key) } @methods; $args{$key} = @values == 1 ? $values[0] : \@values; } return wantarray ? %args : \%args; } 1; __END__ =head1 NAME HTML::Mason::Utils - Publicly available functions useful outside of Mason =head1 DESCRIPTION The functions in this module are useful when you need to interface code you have written with Mason. =head1 FUNCTIONS =over 4 =item data_cache_namespace ($comp_id) Given a component id, this method returns its default C<Cache::Cache> namespace. This can be useful if you want to access the cached data outside of Mason. With a single component root, the component id is just the component path. With multiple component roots, the component id is C<key>/C<path>, where C<key> is the key corresponding to the root that the component falls under. =item cgi_request_args ($cgi, $method) This function expects to receive a C<CGI.pm> object and the request method (GET, POST, etc). Given these two things, it will return a hash in list context or a hashref in scalar context. The hash(ref) will contain all the arguments passed via the CGI request. The keys will be argument names and the values will be either scalars or array references. =back =cut
Close