!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Batch/   drwxr-xr-x
Free 15.57 GB of 61.93 GB (25.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BatchCommandTransfer.php (2.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Guzzle\Batch;

use 
Guzzle\Batch\BatchTransferInterface;
use 
Guzzle\Batch\BatchDivisorInterface;
use 
Guzzle\Common\Exception\InvalidArgumentException;
use 
Guzzle\Service\Command\CommandInterface;
use 
Guzzle\Service\Exception\InconsistentClientTransferException;

/**
 * Efficiently transfers multiple commands in parallel per client
 * This class is to be used with {@see Guzzle\Batch\BatchInterface}
 */
class BatchCommandTransfer implements BatchTransferInterfaceBatchDivisorInterface
{
    
/** @var int Size of each command batch */
    
protected $batchSize;

    
/**
     * @param int $batchSize Size of each batch
     */
    
public function __construct($batchSize 50)
    {
        
$this->batchSize $batchSize;
    }

    
/**
     * Creates batches by grouping commands by their associated client
     * {@inheritdoc}
     */
    
public function createBatches(\SplQueue $queue)
    {
        
$groups = new \SplObjectStorage();
        foreach (
$queue as $item) {
            if (!
$item instanceof CommandInterface) {
                throw new 
InvalidArgumentException('All items must implement Guzzle\Service\Command\CommandInterface');
            }
            
$client $item->getClient();
            if (!
$groups->contains($client)) {
                
$groups->attach($client, new \ArrayObject(array($item)));
            } else {
                
$groups[$client]->append($item);
            }
        }

        
$batches = array();
        foreach (
$groups as $batch) {
            
$batches array_merge($batchesarray_chunk($groups[$batch]->getArrayCopy(), $this->batchSize));
        }

        return 
$batches;
    }

    public function 
transfer(array $batch)
    {
        if (empty(
$batch)) {
            return;
        }

        
// Get the client of the first found command
        
$client reset($batch)->getClient();

        
// Keep a list of all commands with invalid clients
        
$invalid array_filter($batch, function ($command) use ($client) {
            return 
$command->getClient() !== $client;
        });

        if (!empty(
$invalid)) {
            throw new 
InconsistentClientTransferException($invalid);
        }

        
$client->execute($batch);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2815 ]--