!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/share/phpMyAdmin/libraries/plugins/schema/   drwxr-xr-x
Free 8.93 GB of 93.48 GB (9.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RelationStats.class.php (2.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Contains abstract class to hold relation preferences/statistics
 *
 * @package PhpMyAdmin
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
 * Relations preferences/statistics
 *
 * This class fetches the table master and foreign fields positions
 * and helps in generating the Table references and then connects
 * master table's master field to foreign table's foreign key.
 *
 * @package PhpMyAdmin
 * @abstract
 */
abstract class RelationStats
{
    
/**
     * Defines properties
     */
    
public $xSrc$ySrc;
    public 
$srcDir ;
    public 
$destDir;
    public 
$xDest$yDest;
    public 
$wTick;

    
/**
     * The constructor
     *
     * @param string $master_table  The master table name
     * @param string $master_field  The relation field in the master table
     * @param string $foreign_table The foreign table name
     * @param string $foreign_field The relation field in the foreign table
     */
    
function __construct(
        
$master_table$master_field$foreign_table$foreign_field
    
) {
        
$src_pos  $this->_getXy($master_table$master_field);
        
$dest_pos $this->_getXy($foreign_table$foreign_field);
        
/*
         * [0] is x-left
        * [1] is x-right
        * [2] is y
        */
        
$src_left   $src_pos[0] - $this->wTick;
        
$src_right  $src_pos[1] + $this->wTick;
        
$dest_left  $dest_pos[0] - $this->wTick;
        
$dest_right $dest_pos[1] + $this->wTick;

        
$d1 abs($src_left $dest_left);
        
$d2 abs($src_right $dest_left);
        
$d3 abs($src_left $dest_right);
        
$d4 abs($src_right $dest_right);
        
$d  min($d1$d2$d3$d4);

        if (
$d == $d1) {
            
$this->xSrc    $src_pos[0];
            
$this->srcDir  = -1;
            
$this->xDest   $dest_pos[0];
            
$this->destDir = -1;
        } elseif (
$d == $d2) {
            
$this->xSrc    $src_pos[1];
            
$this->srcDir  1;
            
$this->xDest   $dest_pos[0];
            
$this->destDir = -1;
        } elseif (
$d == $d3) {
            
$this->xSrc    $src_pos[0];
            
$this->srcDir  = -1;
            
$this->xDest   $dest_pos[1];
            
$this->destDir 1;
        } else {
            
$this->xSrc    $src_pos[1];
            
$this->srcDir  1;
            
$this->xDest   $dest_pos[1];
            
$this->destDir 1;
        }
        
$this->ySrc   $src_pos[2];
        
$this->yDest $dest_pos[2];
    }

    
/**
     * Gets arrows coordinates
     *
     * @param string $table  The current table name
     * @param string $column The relation column name
     *
     * @return array Arrows coordinates
     *
     * @access private
     */
    
private function _getXy($table$column)
    {
        
$pos array_search($column$table->fields);
        
// x_left, x_right, y
        
return array(
            
$table->x,
            
$table->$table->width,
            
$table->+ ($pos 1.5) * $table->heightCell
        
);
    }
}
?>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0051 ]--