403Webshell
Server IP : 54.36.91.62  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : uxhactp ( 169076)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Helpers/GridItemTemplate.php
<?php

namespace VisualComposer\Helpers;

if (!defined('ABSPATH')) {
    header('Status: 403 Forbidden');
    header('HTTP/1.1 403 Forbidden');
    exit;
}

use VisualComposer\Framework\Container;
use VisualComposer\Framework\Illuminate\Support\Helper;

/**
 * Class GridItemTemplate
 * @package VisualComposer\Helpers
 */
class GridItemTemplate extends Container implements Helper
{
    protected $templateRegexp = '/\{\{\s*([^\}\:\s]+)(?:\:)?([^\}\s]+)?\s*\}\}/';

    /**
     * @param $template
     * @param \WP_Post $post
     *
     * @return mixed
     */
    public function parseTemplate($template, $post)
    {
        return preg_replace_callback(
            $this->templateRegexp,
            function ($matches) use ($post) {
                /** @see \VisualComposer\Helpers\GridItemTemplate::templateCallback */
                return $this->call(
                    'templateCallback',
                    [
                        'matches' => $matches,
                        'post' => $post,
                    ]
                );
            },
            $template
        );
    }

    /**
     * @param $matches
     * @param \WP_Post $post
     *
     * @return string
     */
    protected function templateCallback($matches, $post)
    {
        list($fullMatch, $key, $value) = array_pad($matches, 3, null);

        $result = '';
        if ($key) {
            $result = vcfilter(
                'vcv:elements:grid_item_template:variable:' . $key,
                '',
                [
                    'fullMatch' => $fullMatch,
                    'key' => $key,
                    'value' => $value,
                    'post' => $post,
                ]
            );
        }

        return $result ?: '';
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit