📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: Set.pm
#+############################################################################## # # # File: Directory/Queue/Set.pm # # # # Description: object oriented interface to a set of Directory::Queue objects # # # #-############################################################################## # # module definition # package Directory::Queue::Set; use strict; use warnings; our $VERSION = "2.1"; our $REVISION = sprintf("%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/); # # used modules # use No::Worries::Die qw(dief); # # return true if the given thing is a Directory::Queue object # sub _isdq ($) { my($thing) = @_; return(ref($thing) && $thing->isa("Directory::Queue")); } # # object constructor # sub new : method { my($class, @list) = @_; my($self); $self = {}; bless($self, $class); $self->add(@list); return($self); } # # add one or more queues to the set # sub add : method { my($self, @list) = @_; my($id); foreach my $dirq (@list) { dief("not a Directory::Queue object: %s", $dirq) unless _isdq($dirq); $id = $dirq->id(); dief("duplicate queue in set: %s", $dirq->path()) if $self->{dirq}{$id}; $self->{dirq}{$id} = $dirq->copy(); } # reset our iterator delete($self->{elt}); } # # remove one or more queues from the set # sub remove : method { my($self, @list) = @_; my($id); foreach my $dirq (@list) { dief("not a Directory::Queue object: %s", $dirq) unless _isdq($dirq); $id = $dirq->id(); dief("missing queue in set: %s", $dirq->path()) unless $self->{dirq}{$id}; delete($self->{dirq}{$id}); } # reset our iterator delete($self->{elt}); } # # get the next element of the queue set # sub next : method { ## no critic 'ProhibitBuiltinHomonyms' my($self) = @_; my($name, $min_elt, $min_id); return() unless $self->{elt}; foreach my $id (keys(%{ $self->{elt} })) { $name = substr($self->{elt}{$id}, -14); next if defined($min_elt) and $min_elt le $name; $min_elt = $name; $min_id = $id; } unless ($min_id) { delete($self->{elt}); return(); } $min_elt = $self->{elt}{$min_id}; $self->{elt}{$min_id} = $self->{dirq}{$min_id}->next(); delete($self->{elt}{$min_id}) unless $self->{elt}{$min_id}; return($self->{dirq}{$min_id}, $min_elt); } # # get the first element of the queue set # sub first : method { my($self) = @_; return() unless $self->{dirq}; delete($self->{elt}); foreach my $id (keys(%{ $self->{dirq} })) { $self->{elt}{$id} = $self->{dirq}{$id}->first(); delete($self->{elt}{$id}) unless $self->{elt}{$id}; } return($self->next()); } # # count the elements of the queue set # sub count : method { my($self) = @_; my($count); return(0) unless $self->{dirq}; $count = 0; foreach my $id (keys(%{ $self->{dirq} })) { $count += $self->{dirq}{$id}->count(); } return($count); } 1; __END__ =head1 NAME Directory::Queue::Set - object oriented interface to a set of Directory::Queue objects =head1 SYNOPSIS use Directory::Queue; use Directory::Queue::Set; $dq1 = Directory::Queue->new(path => "/tmp/q1"); $dq2 = Directory::Queue->new(path => "/tmp/q2"); $dqset = Directory::Queue::Set->new($dq1, $dq2); ($dq, $elt) = $dqset->first(); while ($dq) { # you can now process the element $elt of queue $dq... ($dq, $elt) = $dqset->next(); } =head1 DESCRIPTION This module can be used to put different queues into a set and browse them as one queue. The elements from all queues are merged together and sorted independently from the queue they belong to. This works both with L<Directory::Queue::Normal> and L<Directory::Queue::Simple> queues. Queues of different types can even be mixed. =head1 METHODS The following methods are available: =over =item new([DIRQ...]) return a new Directory::Queue::Set object containing the given queue objects (class method) =item add([DIRQ...]) add the given queue objects to the queue set; resetting the iterator =item remove([DIRQ...]) remove the given queue objects from the queue set; resetting the iterator =item first() return the first (queue, element) couple in the queue set, resetting the iterator; return an empty list if the queue is empty =item next() return the next (queue, element) couple in the queue set; return an empty list if there is no next element =item count() return the total number of elements in all the queues of the set =back =head1 SEE ALSO L<Directory::Queue>. =head1 AUTHOR Lionel Cons L<http://cern.ch/lionel.cons> Copyright (C) CERN 2010-2021
Save