!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/HttpFoundation/Session/Storage/   drwxr-xr-x
Free 294.04 GB of 429.69 GB (68.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MetadataBag.php (3.63 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
{
    const 
CREATED 'c';
    const 
UPDATED 'u';
    const 
LIFETIME 'l';

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

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

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

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

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

    
/**
     * Constructor.
     *
     * @param string  $storageKey      The key used to store bag in the session.
     * @param integer $updateThreshold The time to wait between two UPDATED updates
     */
    
public function __construct($storageKey '_sf2_meta'$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 integer
     */
    
public function getLifetime()
    {
        return 
$this->meta[self::LIFETIME];
    }

    
/**
     * Stamps a new session's metadata.
     *
     * @param integer $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($lifetime null)
    {
        
$this->stampCreated($lifetime);
    }

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

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

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

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

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

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

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

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0945 ]--