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
#!perl -w # Form-related tests for CGI.pm # If you are adding or updated tests, please put tests for each methods in # their own file, rather than growing this file any larger. use Test::More 'no_plan'; use CGI (':standard','-no_debug','-tabindex'); my $CRLF = "\015\012"; if ($^O eq 'VMS') { $CRLF = "\n"; # via web server carriage is inserted automatically } if (ord("\t") != 9) { # EBCDIC? $CRLF = "\r\n"; } # 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'; is(start_form(-action=>'foobar',-method=>'get'), qq(<form method="get" action="foobar" enctype="multipart/form-data">), "start_form()"); is(submit(), qq(<input type="submit" tabindex="1" name=".submit" />), "submit()"); is(submit(-name => 'foo', -value => 'bar'), qq(<input type="submit" tabindex="2" name="foo" value="bar" />), "submit(-name,-value)"); is(submit({-name => 'foo', -value => 'bar'}), qq(<input type="submit" tabindex="3" name="foo" value="bar" />), "submit({-name,-value})"); is(textfield(-name => 'weather'), qq(<input type="text" name="weather" tabindex="4" value="dull" />), "textfield({-name})"); is(textfield(-name => 'weather', -value => 'nice'), qq(<input type="text" name="weather" tabindex="5" value="dull" />), "textfield({-name,-value})"); is(textfield(-name => 'weather', -value => 'nice', -override => 1), qq(<input type="text" name="weather" tabindex="6" value="nice" />), "textfield({-name,-value,-override})"); is(checkbox(-name => 'weather', -value => 'nice'), qq(<label><input type="checkbox" name="weather" value="nice" tabindex="7" />weather</label>), "checkbox()"); is(checkbox(-name => 'weather', -value => 'nice', -label => 'forecast'), qq(<label><input type="checkbox" name="weather" value="nice" tabindex="8" />forecast</label>), "checkbox()"); is(checkbox(-name => 'weather', -value => 'nice', -label => 'forecast', -checked => 1, -override => 1), qq(<label><input type="checkbox" name="weather" value="nice" tabindex="9" checked="checked" />forecast</label>), "checkbox()"); is(checkbox(-name => 'weather', -value => 'dull', -label => 'forecast'), qq(<label><input type="checkbox" name="weather" value="dull" tabindex="10" checked="checked" />forecast</label>), "checkbox()"); is(radio_group(-name => 'game'), qq(<label><input type="radio" name="game" value="chess" checked="checked" tabindex="11" />chess</label> <label><input type="radio" name="game" value="checkers" tabindex="12" />checkers</label>), 'radio_group()'); is(radio_group(-name => 'game', -labels => {'chess' => 'ping pong'}), qq(<label><input type="radio" name="game" value="chess" checked="checked" tabindex="13" />ping pong</label> <label><input type="radio" name="game" value="checkers" tabindex="14" />checkers</label>), 'radio_group()'); is(checkbox_group(-name => 'game', -Values => [qw/checkers chess cribbage/]), qq(<label><input type="checkbox" name="game" value="checkers" checked="checked" tabindex="15" />checkers</label> <label><input type="checkbox" name="game" value="chess" checked="checked" tabindex="16" />chess</label> <label><input type="checkbox" name="game" value="cribbage" tabindex="17" />cribbage</label>), 'checkbox_group()'); is(checkbox_group(-name => 'game', '-values' => [qw/checkers chess cribbage/], '-defaults' => ['cribbage'], -override=>1), qq(<label><input type="checkbox" name="game" value="checkers" tabindex="18" />checkers</label> <label><input type="checkbox" name="game" value="chess" tabindex="19" />chess</label> <label><input type="checkbox" name="game" value="cribbage" checked="checked" tabindex="20" />cribbage</label>), 'checkbox_group()'); is(popup_menu(-name => 'game', '-values' => [qw/checkers chess cribbage/], -default => 'cribbage', -override => 1), '<select name="game" tabindex="21" > <option value="checkers">checkers</option> <option value="chess">chess</option> <option selected="selected" value="cribbage">cribbage</option> </select>', 'popup_menu()'); is(scrolling_list(-name => 'game', '-values' => [qw/checkers chess cribbage/], -default => 'cribbage', -override=>1), '<select name="game" tabindex="22" size="3"> <option value="checkers">checkers</option> <option value="chess">chess</option> <option selected="selected" value="cribbage">cribbage</option> </select>', 'scrolling_list()'); is(checkbox_group(-name => 'game', -Values => [qw/checkers chess cribbage/], -disabled => ['checkers']), qq(<label><input type="checkbox" name="game" value="checkers" checked="checked" tabindex="23" disabled='1'/><span style="color:gray">checkers</span></label> <label><input type="checkbox" name="game" value="chess" checked="checked" tabindex="24" />chess</label> <label><input type="checkbox" name="game" value="cribbage" tabindex="25" />cribbage</label>), 'checkbox_group()'); my $optgroup = optgroup(-name=>'optgroup_name', -Values => ['moe','catch'], -attributes=>{'catch'=>{'class'=>'red'}}); is($optgroup, qq(<optgroup label="optgroup_name"> <option value="moe">moe</option> <option class="red" value="catch">catch</option> </optgroup>), 'optgroup()'); is(popup_menu(-name=>'menu_name', -Values=>[qw/eenie meenie minie/, $optgroup], -labels=>{'eenie'=>'one', 'meenie'=>'two', 'minie'=>'three'}, -default=>'meenie'), qq(<select name="menu_name" tabindex="26" > <option value="eenie">one</option> <option selected="selected" value="meenie">two</option> <option value="minie">three</option> <optgroup label="optgroup_name"> <option value="moe">moe</option> <option class="red" value="catch">catch</option> </optgroup> </select>), 'popup_menu() + optgroup()'); is(scrolling_list(-name=>'menu_name', -Values=>[qw/eenie meenie minie/, $optgroup], -labels=>{'eenie'=>'one', 'meenie'=>'two', 'minie'=>'three'}, -default=>'meenie'), qq(<select name="menu_name" tabindex="27" size="4"> <option value="eenie">one</option> <option selected="selected" value="meenie">two</option> <option value="minie">three</option> <optgroup label="optgroup_name"> <option value="moe">moe</option> <option class="red" value="catch">catch</option> </optgroup> </select>), 'scrolling_list() + optgroup()'); # ---------- START 22046 ---------- # The following tests were added for # https://rt.cpan.org/Public/Bug/Display.html?id=22046 # SHCOREY at cpan.org # Saved whether working with XHTML because need to test both # with it and without. my $saved_XHTML = $CGI::XHTML; # set XHTML $CGI::XHTML = 1; is(start_form("GET","/foobar"), qq{<form method="get" action="/foobar" enctype="multipart/form-data">}, 'start_form() + XHTML'); is(start_form("GET", "/foobar",&CGI::URL_ENCODED), qq{<form method="get" action="/foobar" enctype="application/x-www-form-urlencoded">}, 'start_form() + XHTML + URL_ENCODED'); is(start_form("GET", "/foobar",&CGI::MULTIPART), qq{<form method="get" action="/foobar" enctype="multipart/form-data">}, 'start_form() + XHTML + MULTIPART'); is(start_multipart_form("GET", "/foobar"), qq{<form method="get" action="/foobar" enctype="multipart/form-data">}, 'start_multipart_form() + XHTML'); is(start_multipart_form("GET", "/foobar","name=\"foobar\""), qq{<form method="get" action="/foobar" enctype="multipart/form-data" name="foobar">}, 'start_multipart_form() + XHTML + additional args'); # set no XHTML $CGI::XHTML = 0; is(start_form("GET","/foobar"), qq{<form method="get" action="/foobar" enctype="application/x-www-form-urlencoded">}, 'start_form() + NO_XHTML'); is(start_form("GET", "/foobar",&CGI::URL_ENCODED), qq{<form method="get" action="/foobar" enctype="application/x-www-form-urlencoded">}, 'start_form() + NO_XHTML + URL_ENCODED'); is(start_form("GET", "/foobar",&CGI::MULTIPART), qq{<form method="get" action="/foobar" enctype="multipart/form-data">}, 'start_form() + NO_XHTML + MULTIPART'); is(start_multipart_form("GET", "/foobar"), qq{<form method="get" action="/foobar" enctype="multipart/form-data">}, 'start_multipart_form() + NO_XHTML'); is(start_multipart_form("GET", "/foobar","name=\"foobar\""), qq{<form method="get" action="/foobar" enctype="multipart/form-data" name="foobar">}, 'start_multipart_form() + NO_XHTML + additional args'); # restoring value $CGI::XHTML = $saved_XHTML;