!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/notification/vendor/illuminate/database/Schema/   drwxr-xr-x
Free 13.33 GB of 57.97 GB (22.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Database\Schema;

use 
Illuminate\Database\Connection;

class 
SqliteSchemaState extends SchemaState
{
    
/**
     * Dump the database's schema into a file.
     *
     * @param  \Illuminate\Database\Connection  $connection
     * @param  string  $path
     * @return void
     */
    
public function dump(Connection $connection$path)
    {
        
with($process $this->makeProcess(
            
$this->baseCommand().' .schema'
        
))->setTimeout(null)->mustRun(nullarray_merge($this->baseVariables($this->connection->getConfig()), [
            
//
        
]));

        
$migrations collect(preg_split("/\r\n|\n|\r/"$process->getOutput()))->filter(function ($line) {
            return 
stripos($line'sqlite_sequence') === false &&
                   
strlen($line) > 0;
        })->
all();

        
$this->files->put($pathimplode(PHP_EOL$migrations).PHP_EOL);

        
$this->appendMigrationData($path);
    }

    
/**
     * Append the migration data to the schema dump.
     *
     * @param  string  $path
     * @return void
     */
    
protected function appendMigrationData(string $path)
    {
        
with($process $this->makeProcess(
            
$this->baseCommand().' ".dump \''.$this->migrationTable.'\'"'
        
))->mustRun(nullarray_merge($this->baseVariables($this->connection->getConfig()), [
            
//
        
]));

        
$migrations collect(preg_split("/\r\n|\n|\r/"$process->getOutput()))->filter(function ($line) {
            return 
preg_match('/^\s*(--|INSERT\s)/iu'$line) === &&
                   
strlen($line) > 0;
        })->
all();

        
$this->files->append($pathimplode(PHP_EOL$migrations).PHP_EOL);
    }

    
/**
     * Load the given schema file into the database.
     *
     * @param  string  $path
     * @return void
     */
    
public function load($path)
    {
        
$process $this->makeProcess($this->baseCommand().' < "${:LARAVEL_LOAD_PATH}"');

        
$process->mustRun(nullarray_merge($this->baseVariables($this->connection->getConfig()), [
            
'LARAVEL_LOAD_PATH' => $path,
        ]));
    }

    
/**
     * Get the base sqlite command arguments as a string.
     *
     * @return string
     */
    
protected function baseCommand()
    {
        return 
'sqlite3 "${:LARAVEL_LOAD_DATABASE}"';
    }

    
/**
     * Get the base variables for a dump / load command.
     *
     * @param  array  $config
     * @return array
     */
    
protected function baseVariables(array $config)
    {
        return [
            
'LARAVEL_LOAD_DATABASE' => $config['database'],
        ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--