!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)

/usr/share/phpmyadmin/libraries/classes/Display/   drwxr-xr-x
Free 13.22 GB of 57.97 GB (22.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Import.php (3.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * functions for displaying import for: server, database and table
 *
 * @package PhpMyAdmin
 */
namespace PhpMyAdmin\Display;

use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\Display\ImportAjax;
use 
PhpMyAdmin\Encoding;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\Plugins;
use 
PhpMyAdmin\Template;

/**
 * PhpMyAdmin\Display\Import class
 *
 * @package PhpMyAdmin
 */
class Import
{
    
/**
     * Gets HTML to display import dialogs
     *
     * @param string $importType    Import type: server|database|table
     * @param string $db            Selected DB
     * @param string $table         Selected Table
     * @param int    $maxUploadSize Max upload size
     *
     * @return string HTML
     */
    
public static function get($importType$db$table$maxUploadSize)
    {
        global 
$cfg;
        global 
$SESSION_KEY;

        list(
            
$SESSION_KEY,
            
$uploadId,
        ) = 
ImportAjax::uploadProgressSetup();

        
/* Scan for plugins */
        /* @var $importList \PhpMyAdmin\Plugins\ImportPlugin[] */
        
$importList Plugins::getPlugins(
            
"import",
            
'libraries/classes/Plugins/Import/',
            
$importType
        
);

        
/* Fail if we didn't find any plugin */
        
if (empty($importList)) {
            
Message::error(
                
__(
                    
'Could not load import plugins, please check your installation!'
                
)
            )->
display();
            exit;
        }

        if (
Core::isValid($_REQUEST['offset'], 'numeric')) {
            
$offset intval($_REQUEST['offset']);
        }
        if (isset(
$_REQUEST['timeout_passed'])) {
            
$timeoutPassed $_REQUEST['timeout_passed'];
        }

        
$localImportFile '';
        if (isset(
$_REQUEST['local_import_file'])) {
            
$localImportFile $_REQUEST['local_import_file'];
        }

        
// zip, gzip and bzip2 encode features
        
$compressions = array();
        if (
$cfg['GZipDump'] && function_exists('gzopen')) {
            
$compressions[] = 'gzip';
        }
        if (
$cfg['BZipDump'] && function_exists('bzopen')) {
            
$compressions[] = 'bzip2';
        }
        if (
$cfg['ZipDump'] && function_exists('zip_open')) {
            
$compressions[] = 'zip';
        }

        return 
Template::get('display/import/import')->render([
            
'upload_id' => $uploadId,
            
'handler' => $_SESSION[$SESSION_KEY]["handler"],
            
'id_key' => $_SESSION[$SESSION_KEY]['handler']::getIdKey(),
            
'pma_theme_image' => $GLOBALS['pmaThemeImage'],
            
'import_type' => $importType,
            
'db' => $db,
            
'table' => $table,
            
'max_upload_size' => $maxUploadSize,
            
'import_list' => $importList,
            
'local_import_file' => $localImportFile,
            
'is_upload' => $GLOBALS['is_upload'],
            
'upload_dir' => isset($cfg['UploadDir']) ? $cfg['UploadDir'] : null,
            
'timeout_passed_global' => isset($GLOBALS['timeout_passed']) ? $GLOBALS['timeout_passed'] : null,
            
'compressions' => $compressions,
            
'is_encoding_supported' => Encoding::isSupported(),
            
'encodings' => Encoding::listEncodings(),
            
'import_charset' => isset($cfg['Import']['charset']) ? $cfg['Import']['charset'] : null,
            
'dbi' => $GLOBALS['dbi'],
            
'disable_is' => $cfg['Server']['DisableIS'],
            
'timeout_passed' => isset($timeoutPassed) ? $timeoutPassed null,
            
'offset' => isset($offset) ? $offset null,
            
'can_convert_kanji' => Encoding::canConvertKanji(),
        ]);
    }
}

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