Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
CGI /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
Dump.t
221
B
-r--r--r--
2014-12-27 11:49
apache.t
164
B
-r--r--r--
2014-12-27 11:49
autoescape.t
6.13
KB
-r--r--r--
2014-12-27 11:49
can.t
112
B
-r--r--r--
2014-12-27 11:49
carp.t
11.04
KB
-r--r--r--
2014-12-27 11:49
charset.t
722
B
-r--r--r--
2014-12-27 11:49
checkbox_group.t
992
B
-r--r--r--
2014-12-27 11:49
cookie.t
15.64
KB
-r--r--r--
2014-12-27 11:49
delete.t
2.08
KB
-r--r--r--
2014-12-27 11:49
end_form.t
188
B
-r--r--r--
2014-12-27 11:49
form.t
8.83
KB
-r--r--r--
2014-12-27 11:49
function.t
4.79
KB
-r--r--r--
2014-12-27 11:49
headers.t
1.94
KB
-r--r--r--
2014-12-27 11:49
hidden.t
2.14
KB
-r--r--r--
2014-12-27 11:49
html.t
4.75
KB
-r--r--r--
2014-12-27 11:49
http.t
1.44
KB
-r--r--r--
2014-12-27 11:49
init.t
227
B
-r--r--r--
2014-12-27 11:49
init_test.txt
12
B
-r--r--r--
2014-12-27 11:49
multipart_init.t
741
B
-r--r--r--
2014-12-27 11:49
no_tabindex.t
4.08
KB
-r--r--r--
2014-12-27 11:49
param_fetch.t
838
B
-r--r--r--
2014-12-27 11:49
popup_menu.t
627
B
-r--r--r--
2014-12-27 11:49
pretty.t
2.12
KB
-r--r--r--
2014-12-27 11:49
push.t
2.04
KB
-r--r--r--
2014-12-27 11:49
query_string.t
308
B
-r--r--r--
2014-12-27 11:49
request.t
4.02
KB
-r--r--r--
2014-12-27 11:49
rt-52469.t
184
B
-r--r--r--
2014-12-27 11:49
save_read_roundtrip.t
583
B
-r--r--r--
2014-12-27 11:49
start_end_asterisk.t
2.86
KB
-r--r--r--
2014-12-27 11:49
start_end_end.t
2.91
KB
-r--r--r--
2014-12-27 11:49
start_end_start.t
2.94
KB
-r--r--r--
2014-12-27 11:49
switch.t
164
B
-r--r--r--
2014-12-27 11:49
tmpdir.t
1.25
KB
-r--r--r--
2014-12-27 11:49
unescapeHTML.t
875
B
-r--r--r--
2014-12-27 11:49
upload.t
4.69
KB
-r--r--r--
2014-12-27 11:49
uploadInfo.t
2.52
KB
-r--r--r--
2014-12-27 11:49
upload_post_text.txt
3.21
KB
-r--r--r--
2014-12-27 11:49
url.t
3.71
KB
-r--r--r--
2014-12-27 11:49
user_agent.t
362
B
-r--r--r--
2014-12-27 11:49
utf8.t
721
B
-r--r--r--
2014-12-27 11:49
util-58.t
1.03
KB
-r--r--r--
2014-12-27 11:49
util.t
1.22
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!/usr/local/bin/perl use strict; use warnings; use Test::More tests => 41; use CGI (); use Config; my $loaded = 1; $| = 1; ######################### End of black magic. # Set up a CGI environment $ENV{REQUEST_METHOD} = 'GET'; $ENV{QUERY_STRING} = 'game=chess&game=checkers&weather=dull'; $ENV{PATH_INFO} = '/somewhere/else'; $ENV{PATH_TRANSLATED} = '/usr/local/somewhere/else'; $ENV{SCRIPT_NAME} = '/cgi-bin/foo.cgi'; $ENV{SERVER_PROTOCOL} = 'HTTP/1.0'; $ENV{SERVER_PORT} = 8080; $ENV{SERVER_NAME} = 'the.good.ship.lollypop.com'; $ENV{REQUEST_URI} = "$ENV{SCRIPT_NAME}$ENV{PATH_INFO}?$ENV{QUERY_STRING}"; $ENV{HTTP_LOVE} = 'true'; my $q = new CGI; ok $q,"CGI::new()"; is $q->request_method => 'GET',"CGI::request_method()"; is $q->query_string => 'game=chess;game=checkers;weather=dull',"CGI::query_string()"; is $q->param(), 2,"CGI::param()"; is join(' ',sort $q->param()), 'game weather',"CGI::param()"; is $q->param('game'), 'chess',"CGI::param()"; is $q->param('weather'), 'dull',"CGI::param()"; is join(' ',$q->param('game')), 'chess checkers',"CGI::param()"; ok $q->param(-name=>'foo',-value=>'bar'),'CGI::param() put'; is $q->param(-name=>'foo'), 'bar','CGI::param() get'; is $q->query_string, 'game=chess;game=checkers;weather=dull;foo=bar',"CGI::query_string() redux"; is $q->http('love'), 'true',"CGI::http()"; is $q->script_name, '/cgi-bin/foo.cgi',"CGI::script_name()"; is $q->url, 'http://the.good.ship.lollypop.com:8080/cgi-bin/foo.cgi',"CGI::url()"; is $q->self_url, 'http://the.good.ship.lollypop.com:8080/cgi-bin/foo.cgi/somewhere/else?game=chess;game=checkers;weather=dull;foo=bar', "CGI::url()"; is $q->url(-absolute=>1), '/cgi-bin/foo.cgi','CGI::url(-absolute=>1)'; is $q->url(-relative=>1), 'foo.cgi','CGI::url(-relative=>1)'; is $q->url(-relative=>1,-path=>1), 'foo.cgi/somewhere/else','CGI::url(-relative=>1,-path=>1)'; is $q->url(-relative=>1,-path=>1,-query=>1), 'foo.cgi/somewhere/else?game=chess;game=checkers;weather=dull;foo=bar', 'CGI::url(-relative=>1,-path=>1,-query=>1)'; $q->delete('foo'); ok !$q->param('foo'),'CGI::delete()'; $q->_reset_globals; $ENV{QUERY_STRING}='mary+had+a+little+lamb'; ok $q=new CGI,"CGI::new() redux"; is join(' ',$q->keywords), 'mary had a little lamb','CGI::keywords'; is join(' ',$q->param('keywords')), 'mary had a little lamb','CGI::keywords'; ok $q=new CGI('foo=bar&foo=baz'),"CGI::new() redux"; is $q->param('foo'), 'bar','CGI::param() redux'; ok $q=new CGI({'foo'=>'bar','bar'=>'froz'}),"CGI::new() redux 2"; is $q->param('bar'), 'froz',"CGI::param() redux 2"; # test tied interface my $p = $q->Vars; is $p->{bar}, 'froz',"tied interface fetch"; $p->{bar} = join("\0",qw(foo bar baz)); is join(' ',$q->param('bar')), 'foo bar baz','tied interface store'; ok exists $p->{bar}; # test posting $q->_reset_globals; { my $test_string = 'game=soccer&game=baseball&weather=nice'; local $ENV{REQUEST_METHOD}='POST'; local $ENV{CONTENT_LENGTH}=length($test_string); local $ENV{QUERY_STRING}='big_balls=basketball&small_balls=golf'; local *STDIN; open STDIN, '<', \$test_string; ok $q=new CGI,"CGI::new() from POST"; is $q->param('weather'), 'nice',"CGI::param() from POST"; is $q->url_param('big_balls'), 'basketball',"CGI::url_param()"; } # test url_param { local $ENV{QUERY_STRING} = 'game=chess&game=checkers&weather=dull'; CGI::_reset_globals; my $q = CGI->new; # params present, param and url_param should return true ok $q->param, 'param() is true if parameters'; ok $q->url_param, 'url_param() is true if parameters'; $ENV{QUERY_STRING} = ''; CGI::_reset_globals; $q = CGI->new; ok !$q->param, 'param() is false if no parameters'; ok !$q->url_param, 'url_param() is false if no parameters'; $ENV{QUERY_STRING} = 'tiger dragon'; CGI::_reset_globals; $q = CGI->new; is_deeply [$q->$_] => [ 'keywords' ], "$_ with QS='$ENV{QUERY_STRING}'" for qw/ param url_param /; is_deeply [ sort $q->$_( 'keywords' ) ], [ qw/ dragon tiger / ], "$_ keywords" for qw/ param url_param /; }