403Webshell
Server IP : 159.253.20.91  /  Your IP : 216.73.216.111
Web Server : nginx/1.20.2
System : Linux se38c9e53.fastvps-server.com 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64
User : pr11_ru_usr ( 1041)
PHP Version : 8.1.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/fastpanel2-phpmyadmin/libraries/classes/Twig/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/fastpanel2-phpmyadmin/libraries/classes/Twig/UrlExtension.php
<?php

declare(strict_types=1);

namespace PhpMyAdmin\Twig;

use PhpMyAdmin\Url;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

class UrlExtension extends AbstractExtension
{
    /**
     * Returns a list of functions to add to the existing list.
     *
     * @return TwigFunction[]
     */
    public function getFunctions()
    {
        return [
            new TwigFunction(
                'get_hidden_inputs',
                [Url::class, 'getHiddenInputs'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'get_hidden_fields',
                [Url::class, 'getHiddenFields'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'get_common',
                [Url::class, 'getCommon'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'get_common_raw',
                [Url::class, 'getCommonRaw'],
                ['is_safe' => ['html']]
            ),
            new TwigFunction(
                'url',
                [Url::class, 'getFromRoute'],
                ['is_safe' => ['html']]
            ),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit