?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
package URI::news; # draft-gilman-news-url-01
require URI::_server;
@ISA=qw(URI::_server);
use strict;
use URI::Escape qw(uri_unescape);
use Carp ();
sub default_port { 119 }
# newsURL = scheme ":" [ news-server ] [ refbygroup | message ]
# scheme = "news" | "snews" | "nntp"
# news-server = "//" server "/"
# refbygroup = group [ "/" messageno [ "-" messageno ] ]
# message = local-part "@" domain
sub _group
{
my $self = shift;
my $old = $self->path;
if (@_) {
my($group,$from,$to) = @_;
if ($group =~ /\@/) {
$group =~ s/^<(.*)>$/$1/; # "<" and ">" should not be part of it
}
$group =~ s,%,%25,g;
$group =~ s,/,%2F,g;
my $path = $group;
if (defined $from) {
$path .= "/$from";
$path .= "-$to" if defined $to;
}
$self->path($path);
}
$old =~ s,^/,,;
if ($old !~ /\@/ && $old =~ s,/(.*),, && wantarray) {
my $extra = $1;
return (uri_unescape($old), split(/-/, $extra));
}
uri_unescape($old);
}
sub group
{
my $self = shift;
if (@_) {
Carp::croak("Group name can't contain '\@'") if $_[0] =~ /\@/;
}
my @old = $self->_group(@_);
return if $old[0] =~ /\@/;
wantarray ? @old : $old[0];
}
sub message
{
my $self = shift;
if (@_) {
Carp::croak("Message must contain '\@'") unless $_[0] =~ /\@/;
}
my $old = $self->_group(@_);
return unless $old =~ /\@/;
return $old;
}
1;