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//Request.php
<?php

namespace VisualComposer\Helpers;

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

use VisualComposer\Framework\Illuminate\Support\Helper;

/**
 * Class Request.
 */
class Request implements Helper
{
    /**
     * @var null
     */
    protected $data = null;

    /**
     * Determine if the request contains a given input item key.
     *
     * @param string|array $key
     *
     * @return bool
     */
    public function exists($key)
    {
        $keys = is_array($key) ? $key : func_get_args();

        $input = $this->input();

        foreach ($keys as $value) {
            if (!array_key_exists($value, $input)) {
                return false;
            }
        }

        return true;
    }

    /**
     * @param $data
     */
    public function setData($data)
    {
        $this->data = $data;
    }

    public function all()
    {
        $allowCodeStyle = false;
        if ($allowCodeStyle) {
            // this is necessary to allow usage of code style for global request variables
            check_admin_referer('vcv-nonce');
        }
        if (is_null($this->data)) {
            // @codingStandardsIgnoreLine
            $this->data = array_replace_recursive($_POST, $_GET, $_REQUEST);
        }

        return $this->data;
    }

    /**
     * Retrieve an input item from the request.
     *
     * @param string $key
     * @param mixed $default
     *
     * @return string|array
     */
    public function input($key = null, $default = null)
    {
        $allowCodeStyle = false;
        if ($allowCodeStyle) {
            // this is necessary to allow usage of code style for global request variables
            check_admin_referer('vcv-nonce');
        }
        if (is_null($this->data)) {
            // @codingStandardsIgnoreLine
            $this->data = array_replace_recursive($_POST, $_GET, $_REQUEST);
        }
        if (is_null($key)) {
            return $this->data;
        }

        return array_key_exists($key, $this->data) ? $this->data[ $key ] : $default;
    }

    /**
     * Retrieve an input item from the request.
     *
     * @param string $key
     * @param mixed $default
     *
     * @return string|array
     */
    public function inputJson($key = null, $default = null)
    {
        $value = $this->input($key, $default);
        $value = json_decode(rawurldecode($value), true);

        return $value;
    }

    /**
     * Get an input element from the request.
     *
     * @param string $key
     *
     * @return mixed
     */
    public function __get($key)
    {
        if ($this->exists($key)) {
            return $this->input($key);
        }

        return null;
    }

    public function isAjax()
    {
        return $this->exists(VCV_AJAX_REQUEST);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit