403Webshell
Server IP : 172.67.133.75  /  Your IP : 162.159.115.10
Web Server : nginx/1.26.1
System : Linux HE9229 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/jl3_ph_com/wp-content/plugins/elementor/vendor_prefixed/twig/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/jl3_ph_com/wp-content/plugins/elementor/vendor_prefixed/twig/src/TemplateWrapper.php
<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace ElementorDeps\Twig;

/**
 * Exposes a template to userland.
 *
 * @author Fabien Potencier <[email protected]>
 */
final class TemplateWrapper
{
    private $env;
    private $template;
    /**
     * This method is for internal use only and should never be called
     * directly (use Twig\Environment::load() instead).
     *
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
    public function render(array $context = []) : string
    {
        return $this->template->render($context);
    }
    public function display(array $context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_get_args()[1] ?? []);
    }
    public function hasBlock(string $name, array $context = []) : bool
    {
        return $this->template->hasBlock($name, $context);
    }
    /**
     * @return string[] An array of defined template block names
     */
    public function getBlockNames(array $context = []) : array
    {
        return $this->template->getBlockNames($context);
    }
    public function renderBlock(string $name, array $context = []) : string
    {
        return $this->template->renderBlock($name, $this->env->mergeGlobals($context));
    }
    public function displayBlock(string $name, array $context = [])
    {
        $context = $this->env->mergeGlobals($context);
        foreach ($this->template->yieldBlock($name, $context) as $data) {
            echo $data;
        }
    }
    public function getSourceContext() : Source
    {
        return $this->template->getSourceContext();
    }
    public function getTemplateName() : string
    {
        return $this->template->getTemplateName();
    }
    /**
     * @internal
     *
     * @return Template
     */
    public function unwrap()
    {
        return $this->template;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit