Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
phpmyadmin /
libraries /
plugins /
schema /
[ HOME SHELL ]
Name
Size
Permission
Action
dia
[ DIR ]
drwxr-xr-x
eps
[ DIR ]
drwxr-xr-x
pdf
[ DIR ]
drwxr-xr-x
svg
[ DIR ]
drwxr-xr-x
ExportRelationSchema.php
6.61
KB
-rw-r--r--
RelationStats.php
3.1
KB
-rw-r--r--
SchemaDia.php
2.69
KB
-rw-r--r--
SchemaEps.php
2.78
KB
-rw-r--r--
SchemaPdf.php
3.65
KB
-rw-r--r--
SchemaSvg.php
2.42
KB
-rw-r--r--
TableStats.php
4.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RelationStats.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Contains abstract class to hold relation preferences/statistics * * @package PhpMyAdmin */ namespace PMA\libraries\plugins\schema; /** * 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 { protected $diagram; /** * Defines properties */ public $xSrc, $ySrc; public $srcDir; public $destDir; public $xDest, $yDest; public $wTick; /** * The constructor * * @param object $diagram The diagram * @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 */ public function __construct( $diagram, $master_table, $master_field, $foreign_table, $foreign_field ) { $this->diagram = $diagram; $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->x + $table->width, $table->y + ($pos + 1.5) * $table->heightCell, ); } }
Close