AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.32   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/2388322/task/2388322/cwd/3rdparty/phpMyAdmin/libraries/classes/Twig/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/2388322/task/2388322/cwd/3rdparty/phpMyAdmin/libraries/classes/Twig/RelationExtension.php
<?php

declare(strict_types=1);

namespace PhpMyAdmin\Twig;

use PhpMyAdmin\ConfigStorage\Relation;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

class RelationExtension extends AbstractExtension
{
    /**
     * Returns a list of functions to add to the existing list.
     *
     * @return TwigFunction[]
     */
    public function getFunctions()
    {
        global $dbi;

        $relation = new Relation($dbi);

        return [
            new TwigFunction(
                'foreign_dropdown',
                [$relation, 'foreignDropdown'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'get_display_field',
                [$relation, 'getDisplayField'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'get_foreign_data',
                [$relation, 'getForeignData']
            ),
            new TwigFunction(
                'get_tables',
                [$relation, 'getTables']
            ),
            new TwigFunction(
                'search_column_in_foreigners',
                [$relation, 'searchColumnInForeigners']
            ),
        ];
    }
}

Anon7 - 2022
AnonSec Team