!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/phpmyadmin/libraries/classes/Plugins/Schema/   drwxr-xr-x
Free 83.26 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     TableStats.php (6.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Contains abstract class to hold table preferences/statistics
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Plugins\Schema;

use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Font;
use 
PhpMyAdmin\Index;
use 
PhpMyAdmin\Relation;
use 
PhpMyAdmin\Util;
use function 
array_flip;
use function 
array_keys;
use function 
array_merge;
use function 
rawurldecode;
use function 
sprintf;

/**
 * Table preferences/statistics
 *
 * This class preserves the table co-ordinates,fields
 * and helps in drawing/generating the tables.
 *
 * @abstract
 */
abstract class TableStats
{
    
/** @var Dia\Dia|Eps\Eps|Pdf\Pdf|Svg\Svg */
    
protected $diagram;

    
/** @var string */
    
protected $db;

    
/** @var int */
    
protected $pageNumber;

    
/** @var string */
    
protected $tableName;

    
/** @var bool */
    
protected $showKeys;

    
/** @var bool */
    
protected $tableDimension;

    
/** @var mixed */
    
public $displayfield;

    
/** @var array */
    
public $fields = [];

    
/** @var array */
    
public $primary = [];

    
/** @var int|float */
    
public $x;

    
/** @var int|float */
    
public $y;

    
/** @var int */
    
public $width 0;

    
/** @var int */
    
public $heightCell 0;

    
/** @var bool */
    
protected $offline;

    
/** @var Relation */
    
protected $relation;

    
/** @var Font */
    
protected $font;

    
/**
     * @param Pdf\Pdf|Svg\Svg|Eps\Eps|Dia\Dia|Pdf\Pdf $diagram        schema diagram
     * @param string                                  $db             current db name
     * @param int                                     $pageNumber     current page number (from the
     *                                                                $cfg['Servers'][$i]['table_coords'] table)
     * @param string                                  $tableName      table name
     * @param bool                                    $showKeys       whether to display keys or not
     * @param bool                                    $tableDimension whether to display table position or not
     * @param bool                                    $offline        whether the coordinates are sent
     *                                                                from the browser
     */
    
public function __construct(
        
$diagram,
        
$db,
        
$pageNumber,
        
$tableName,
        
$showKeys,
        
$tableDimension,
        
$offline
    
) {
        global 
$dbi;

        
$this->diagram    $diagram;
        
$this->db         $db;
        
$this->pageNumber $pageNumber;
        
$this->tableName  $tableName;

        
$this->showKeys   $showKeys;
        
$this->tableDimension   $tableDimension;

        
$this->offline    $offline;

        
$this->relation = new Relation($dbi);
        
$this->font = new Font();

        
// checks whether the table exists
        // and loads fields
        
$this->validateTableAndLoadFields();
        
// load table coordinates
        
$this->loadCoordinates();
        
// loads display field
        
$this->loadDisplayField();
        
// loads primary keys
        
$this->loadPrimaryKey();
    }

    
/**
     * Validate whether the table exists.
     *
     * @return void
     */
    
protected function validateTableAndLoadFields()
    {
        global 
$dbi;

        
$sql 'DESCRIBE ' Util::backquote($this->tableName);
        
$result $dbi->tryQuery(
            
$sql,
            
DatabaseInterface::CONNECT_USER,
            
DatabaseInterface::QUERY_STORE
        
);
        if (! 
$result || ! $dbi->numRows($result)) {
            
$this->showMissingTableError();
        }

        if (
$this->showKeys) {
            
$indexes Index::getFromTable($this->tableName$this->db);
            
$all_columns = [];
            foreach (
$indexes as $index) {
                
$all_columns array_merge(
                    
$all_columns,
                    
array_flip(array_keys($index->getColumns()))
                );
            }
            
$this->fields array_keys($all_columns);
        } else {
            while (
$row $dbi->fetchRow($result)) {
                
$this->fields[] = $row[0];
            }
        }
    }

    
/**
     * Displays an error when the table cannot be found.
     *
     * @return void
     *
     * @abstract
     */
    
abstract protected function showMissingTableError();

    
/**
     * Loads coordinates of a table
     *
     * @return void
     */
    
protected function loadCoordinates()
    {
        if (! isset(
$_POST['t_h'])) {
            return;
        }

        foreach (
$_POST['t_h'] as $key => $value) {
            
$db rawurldecode($_POST['t_db'][$key]);
            
$tbl rawurldecode($_POST['t_tbl'][$key]);
            if (
$this->db '.' $this->tableName === $db '.' $tbl) {
                
$this->= (float) $_POST['t_x'][$key];
                
$this->= (float) $_POST['t_y'][$key];
                break;
            }
        }
    }

    
/**
     * Loads the table's display field
     *
     * @return void
     */
    
protected function loadDisplayField()
    {
        
$this->displayfield $this->relation->getDisplayField($this->db$this->tableName);
    }

    
/**
     * Loads the PRIMARY key.
     *
     * @return void
     */
    
protected function loadPrimaryKey()
    {
        global 
$dbi;

        
$result $dbi->query(
            
'SHOW INDEX FROM ' Util::backquote($this->tableName) . ';',
            
DatabaseInterface::CONNECT_USER,
            
DatabaseInterface::QUERY_STORE
        
);
        if (
$dbi->numRows($result) <= 0) {
            return;
        }

        while (
$row $dbi->fetchAssoc($result)) {
            if (
$row['Key_name'] !== 'PRIMARY') {
                continue;
            }

            
$this->primary[] = $row['Column_name'];
        }
    }

    
/**
     * Returns title of the current table,
     * title can have the dimensions/co-ordinates of the table
     *
     * @return string title of the current table
     */
    
protected function getTitle()
    {
        return (
$this->tableDimension
            
sprintf('%.0fx%0.f'$this->width$this->heightCell)
            : 
''
        
)
        . 
' ' $this->tableName;
    }
}

:: 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 HackingTool | HackingTool | Generation time: 0.0049 ]--