!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/notification/vendor/illuminate/pagination/   drwxr-xr-x
Free 13.25 GB of 57.97 GB (22.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Pagination;

use 
Illuminate\Contracts\Support\Arrayable;
use 
UnexpectedValueException;

class 
Cursor implements Arrayable
{
    
/**
     * The parameters associated with the cursor.
     *
     * @var array
     */
    
protected $parameters;

    
/**
     * Determine whether the cursor points to the next or previous set of items.
     *
     * @var bool
     */
    
protected $pointsToNextItems;

    
/**
     * Create a new cursor instance.
     *
     * @param  array  $parameters
     * @param  bool  $pointsToNextItems
     */
    
public function __construct(array $parameters$pointsToNextItems true)
    {
        
$this->parameters $parameters;
        
$this->pointsToNextItems $pointsToNextItems;
    }

    
/**
     * Get the given parameter from the cursor.
     *
     * @param  string  $parameterName
     * @return string|null
     *
     * @throws \UnexpectedValueException
     */
    
public function parameter(string $parameterName)
    {
        if (! 
array_key_exists($parameterName$this->parameters)) {
            throw new 
UnexpectedValueException("Unable to find parameter [{$parameterName}] in pagination item.");
        }

        return 
$this->parameters[$parameterName];
    }

    
/**
     * Get the given parameters from the cursor.
     *
     * @param  array  $parameterNames
     * @return array
     */
    
public function parameters(array $parameterNames)
    {
        return 
collect($parameterNames)->map(function ($parameterName) {
            return 
$this->parameter($parameterName);
        })->
toArray();
    }

    
/**
     * Determine whether the cursor points to the next set of items.
     *
     * @return bool
     */
    
public function pointsToNextItems()
    {
        return 
$this->pointsToNextItems;
    }

    
/**
     * Determine whether the cursor points to the previous set of items.
     *
     * @return bool
     */
    
public function pointsToPreviousItems()
    {
        return ! 
$this->pointsToNextItems;
    }

    
/**
     * Get the array representation of the cursor.
     *
     * @return array
     */
    
public function toArray()
    {
        return 
array_merge($this->parameters, [
            
'_pointsToNextItems' => $this->pointsToNextItems,
        ]);
    }

    
/**
     * Get the encoded string representation of the cursor to construct a URL.
     *
     * @return string
     */
    
public function encode()
    {
        return 
str_replace(['+''/''='], ['-''_'''], base64_encode(json_encode($this->toArray())));
    }

    
/**
     * Get a cursor instance from the encoded string representation.
     *
     * @param  string|null  $encodedString
     * @return static|null
     */
    
public static function fromEncoded($encodedString)
    {
        if (! 
is_string($encodedString)) {
            return 
null;
        }

        
$parameters json_decode(base64_decode(str_replace(['-''_'], ['+''/'], $encodedString)), true);

        if (
json_last_error() !== JSON_ERROR_NONE) {
            return 
null;
        }

        
$pointsToNextItems $parameters['_pointsToNextItems'];

        unset(
$parameters['_pointsToNextItems']);

        return new static(
$parameters$pointsToNextItems);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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