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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/symfony/http-foundation/Session/Storage/Handler/   drwxrwxrwx
Free 13 GB of 57.97 GB (22.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SessionHandlerFactory.php (4.41 KB)      -rw-rw-rw-
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\Handler;

use 
Doctrine\DBAL\Configuration;
use 
Doctrine\DBAL\DriverManager;
use 
Doctrine\DBAL\Schema\DefaultSchemaManagerFactory;
use 
Doctrine\DBAL\Tools\DsnParser;
use 
Relay\Relay;
use 
Symfony\Component\Cache\Adapter\AbstractAdapter;

/**
 * @author Nicolas Grekas <p@tchwork.com>
 */
class SessionHandlerFactory
{
    public static function 
createHandler(object|string $connection, array $options = []): AbstractSessionHandler
    
{
        if (
$query \is_string($connection) ? parse_url($connection) : false) {
            
parse_str($query['query'] ?? ''$query);

            if ((
$options['ttl'] ?? null) instanceof \Closure) {
                
$query['ttl'] = $options['ttl'];
            }
        }
        
$options = ($query ?: []) + $options;

        switch (
true) {
            case 
$connection instanceof \Redis:
            case 
$connection instanceof Relay:
            case 
$connection instanceof \RedisArray:
            case 
$connection instanceof \RedisCluster:
            case 
$connection instanceof \Predis\ClientInterface:
                return new 
RedisSessionHandler($connection);

            case 
$connection instanceof \Memcached:
                return new 
MemcachedSessionHandler($connection);

            case 
$connection instanceof \PDO:
                return new 
PdoSessionHandler($connection);

            case !
\is_string($connection):
                throw new 
\InvalidArgumentException(\sprintf('Unsupported Connection: "%s".'get_debug_type($connection)));
            case 
str_starts_with($connection'file://'):
                
$savePath substr($connection7);

                return new 
StrictSessionHandler(new NativeFileSessionHandler('' === $savePath null $savePath));

            case 
str_starts_with($connection'redis:'):
            case 
str_starts_with($connection'rediss:'):
            case 
str_starts_with($connection'memcached:'):
                if (!
class_exists(AbstractAdapter::class)) {
                    throw new 
\InvalidArgumentException('Unsupported Redis or Memcached DSN. Try running "composer require symfony/cache".');
                }
                
$handlerClass str_starts_with($connection'memcached:') ? MemcachedSessionHandler::class : RedisSessionHandler::class;
                
$connection AbstractAdapter::createConnection($connection, ['lazy' => true]);

                return new 
$handlerClass($connectionarray_intersect_key($options, ['prefix' => 1'ttl' => 1]));

            case 
str_starts_with($connection'pdo_oci://'):
                if (!
class_exists(DriverManager::class)) {
                    throw new 
\InvalidArgumentException('Unsupported PDO OCI DSN. Try running "composer require doctrine/dbal".');
                }
                
$connection[3] = '-';
                
$params class_exists(DsnParser::class) ? (new DsnParser())->parse($connection) : ['url' => $connection];
                
$config = new Configuration();
                if (
class_exists(DefaultSchemaManagerFactory::class)) {
                    
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
                }

                
$connection DriverManager::getConnection($params$config);
                
// The condition should be removed once support for DBAL <3.3 is dropped
                
$connection method_exists($connection'getNativeConnection') ? $connection->getNativeConnection() : $connection->getWrappedConnection();
                
// no break;

            
case str_starts_with($connection'mssql://'):
            case 
str_starts_with($connection'mysql://'):
            case 
str_starts_with($connection'mysql2://'):
            case 
str_starts_with($connection'pgsql://'):
            case 
str_starts_with($connection'postgres://'):
            case 
str_starts_with($connection'postgresql://'):
            case 
str_starts_with($connection'sqlsrv://'):
            case 
str_starts_with($connection'sqlite://'):
            case 
str_starts_with($connection'sqlite3://'):
                return new 
PdoSessionHandler($connection$options);
        }

        throw new 
\InvalidArgumentException(\sprintf('Unsupported Connection: "%s".'$connection));
    }
}

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